:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: rgba(21, 25, 35, 0.82);
  --card-strong: #151923;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #929bad;
  --accent: #7c5cff;
  --accent-2: #9c7cff;
  --success: #31d17c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 92, 255, 0.10), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(86, 120, 255, 0.08), transparent 35%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  z-index: -2;
}

.bg-orb-1 {
  background: var(--accent);
  top: -120px;
  left: -100px;
}

.bg-orb-2 {
  background: #4468ff;
  right: -140px;
  top: 320px;
}

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 18px;
  background: rgba(11, 13, 18, 0.74);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  z-index: 1000;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent), #4c6fff);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.28);
}

.brand div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: #c4cad6;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.menu-btn {
  display: none;
  border: 0;
  background: rgba(255,255,255,0.06);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 19px;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
  scroll-margin-top: 110px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 70px;
  padding-top: 150px;
}

.eyebrow {
  color: #a998ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 13px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -4px;
  margin-bottom: 26px;
}

.hero h1 span {
  background: linear-gradient(90deg, #8f76ff, #5f83ff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5875ff);
  box-shadow: 0 12px 34px rgba(124, 92, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mini-badge {
  color: #c1c8d5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.09), transparent 40%),
    rgba(18, 21, 29, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.16);
  filter: blur(60px);
  right: -70px;
  bottom: -70px;
}

.status-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(49, 209, 124, 0.09);
}

.status-line > span:nth-child(2) {
  font-weight: 700;
  font-size: 12px;
}

.status-line small {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
}

.bot-avatar {
  margin-top: 28px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #272d3a, #1a1e28);
  border: 1px solid var(--border);
}

.hero-card h2 {
  margin-top: 18px;
  font-size: 28px;
}

.hero-card > p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.bot-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bot-grid div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-grid strong {
  font-size: 13px;
}

.bot-grid span {
  color: var(--muted);
  font-size: 10px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -2px;
}

.section-heading p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, 0.32);
  background: rgba(25, 29, 40, 0.92);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.09);
  border: 1px solid rgba(124, 92, 255, 0.16);
  font-size: 22px;
}

.feature-card h3 {
  margin-top: 22px;
  font-size: 18px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 12px;
}

.commands-section {
  position: relative;
}

.commands-panel {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(17, 20, 27, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.command-tabs {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.command-tab {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.command-tab.active,
.command-tab:hover {
  color: white;
  background: rgba(124, 92, 255, 0.12);
}

.command-list {
  display: none;
}

.command-list.active {
  display: block;
}

.command-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.command-row:last-child {
  border-bottom: 0;
}

.command-row code {
  color: #b6a8ff;
  font-size: 12px;
  font-weight: 700;
}

.command-row span {
  color: var(--muted);
  font-size: 12px;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rule {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(20, 23, 32, 0.75);
  border: 1px solid var(--border);
}

.rule > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #a998ff;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
}

.rule h3 {
  font-size: 15px;
}

.rule p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 11px;
}

.event-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 38px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(75, 104, 255, 0.08)),
    #131720;
  border: 1px solid rgba(124, 92, 255, 0.18);
}

.event-banner h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.6px;
}

.event-banner p {
  max-width: 700px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

/* =========================================================
   REDES
   ========================================================= */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.social-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  background: rgba(20, 23, 32, 0.82);
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.social-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -45px;
  bottom: -45px;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.24;
}

.social-card:hover {
  transform: translateY(-6px);
  background: rgba(25, 29, 40, 0.96);
}

.social-card.tiktok:hover {
  border-color: rgba(255, 255, 255, 0.20);
}

.social-card.instagram:hover {
  border-color: rgba(229, 76, 127, 0.45);
}

.social-card.spotify:hover {
  border-color: rgba(30, 215, 96, 0.42);
}

.social-card.tiktok::after {
  background: #4de8f4;
}

.social-card.instagram::after {
  background: #e54c7f;
}

.social-card.spotify::after {
  background: #1ed760;
}

.social-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  font-size: 29px;
  font-weight: 800;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--border);
  z-index: 1;
}

.social-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.social-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-copy strong {
  font-size: 18px;
}

.social-copy small {
  color: #aeb6c5;
  font-size: 11px;
  margin-top: 5px;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

footer strong {
  color: white;
  font-size: 13px;
}

footer span,
footer p {
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 160px;
  }

  .feature-grid,
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(11, 13, 18, 0.96);
    border: 1px solid var(--border);
    border-radius: 15px;
  }

  .nav-links.open {
    display: flex;
  }

  .event-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 150px;
  }

  .hero h1 {
    letter-spacing: -2.7px;
  }

  .feature-grid,
  .rules-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px;
  }

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

  .status-line {
    grid-template-columns: auto 1fr;
  }

  .status-line small {
    grid-column: 1 / -1;
    justify-self: start;
  }

  footer {
    flex-direction: column;
  }
}


/* =========================================================
   V3 - IMÁGENES DEL SERVIDOR Y BOT
   ========================================================= */

.brand-image {
  background:
    linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)),
    url("assets/el_aguantadero.gif") center / cover no-repeat;
  color: transparent;
}

.server-cover {
  position: relative;
  height: 170px;
  margin: -28px -28px 22px;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.08), rgba(7, 8, 12, 0.82)),
    url("assets/el_aguantadero.gif") center 46% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.server-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.15), transparent 45%),
    linear-gradient(180deg, transparent 25%, rgba(11, 13, 18, 0.76));
}

.server-cover-overlay {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.server-cover-overlay span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.server-cover-overlay small {
  color: #c4cad6;
  font-size: 10px;
}

.bot-status {
  padding-bottom: 18px;
}

.bot-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.bot-avatar-img {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.bot-profile h2 {
  margin-top: 0;
}

.bot-profile p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 12px;
}

.discord-join-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.discord-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 36px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(88, 101, 242, 0.18), rgba(124, 92, 255, 0.10)),
    rgba(18, 21, 29, 0.88);
  border: 1px solid rgba(114, 123, 255, 0.22);
}

.discord-strip h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.4px;
}

.discord-strip p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

@media (max-width: 720px) {
  .discord-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .bot-profile {
    align-items: flex-start;
  }
}


/* =========================================================
   V4 - DISCORD EN VIVO
   ========================================================= */

.discord-live-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.discord-widget-card,
.discord-info-card {
  border-radius: 24px;
  background: rgba(18, 21, 29, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.discord-widget-card {
  overflow: hidden;
}

.discord-widget-header {
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.discord-widget-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.discord-widget-header strong {
  font-size: 12px;
  letter-spacing: 0.4px;
}

.discord-widget-header small {
  color: var(--muted);
  font-size: 10px;
}

.discord-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31d17c;
  box-shadow: 0 0 0 5px rgba(49, 209, 124, 0.09);
}

.discord-widget-wrapper {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.discord-widget-wrapper iframe {
  width: 100%;
  max-width: 350px;
  min-height: 500px;
  border-radius: 14px;
}

.discord-info-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.discord-info-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.20);
  filter: blur(70px);
  pointer-events: none;
}

.discord-info-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  font-size: 30px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.20);
}

.discord-info-card h3 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.4px;
}

.discord-info-card > p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}

.discord-info-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.discord-info-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.discord-info-list > div > span {
  font-size: 22px;
}

.discord-info-list > div > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.discord-info-list strong {
  font-size: 12px;
}

.discord-info-list small {
  color: var(--muted);
  font-size: 10px;
}

.discord-big-button {
  position: relative;
  z-index: 2;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .discord-live-grid {
    grid-template-columns: 1fr;
  }

  .discord-widget-wrapper iframe {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .discord-info-list {
    grid-template-columns: 1fr;
  }

  .discord-widget-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .discord-widget-wrapper {
    padding: 14px;
  }
}


/* =========================================================
   V5 - DATOS EN VIVO DEL WIDGET DE DISCORD
   ========================================================= */

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.live-stat-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(18, 21, 29, 0.84);
  border: 1px solid var(--border);
}

.live-stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 20px;
}

.live-stat-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-stat-card strong {
  font-size: 22px;
  letter-spacing: -0.6px;
}

.live-stat-card small {
  color: var(--muted);
  font-size: 10px;
}

.voice-channels-panel {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(18, 21, 29, 0.84);
  border: 1px solid var(--border);
}

.voice-channels-heading {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.voice-channels-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.voice-channels-heading strong {
  font-size: 12px;
}

.voice-channels-heading small {
  color: var(--muted);
  font-size: 10px;
}

.voice-channels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.voice-channel-pill,
.voice-channel-placeholder {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  color: #c7ceda;
  font-size: 10px;
  font-weight: 600;
}

.live-ok {
  color: #53e291;
}

.live-error {
  color: #ff8e8e;
}

@media (max-width: 760px) {
  .live-stats-grid {
    grid-template-columns: 1fr;
  }

  .voice-channels-heading {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}


/* =========================================================
   V6 - RANKING, EVENTOS Y ESTADO REAL DE AGUUSTIN.977
   ========================================================= */

.bot-live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.bot-live-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
}

.bot-live-stats > div > span {
  grid-row: 1 / 3;
  font-size: 18px;
}

.bot-live-stats strong {
  font-size: 14px;
}

.bot-live-stats small {
  color: var(--muted);
  font-size: 9px;
}

.ranking-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(18, 21, 29, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.live-panel-header {
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.live-panel-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-panel-header strong {
  font-size: 12px;
}

.live-panel-header small {
  color: var(--muted);
  font-size: 10px;
}

.live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31d17c;
  box-shadow: 0 0 0 5px rgba(49, 209, 124, 0.09);
}

.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-position {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.09);
  border: 1px solid rgba(124, 92, 255, 0.15);
  color: #b8acff;
  font-size: 12px;
  font-weight: 800;
}

.ranking-row.top-1 .ranking-position {
  background: rgba(255, 201, 71, 0.12);
  border-color: rgba(255, 201, 71, 0.22);
  color: #ffd56d;
}

.ranking-row.top-2 .ranking-position {
  background: rgba(201, 209, 220, 0.09);
  color: #d9dfe8;
}

.ranking-row.top-3 .ranking-position {
  background: rgba(205, 127, 50, 0.10);
  color: #e5a46a;
}

.ranking-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 15px;
  background: #1b202b;
  border: 1px solid var(--border);
}

.ranking-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranking-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ranking-user small {
  color: var(--muted);
  font-size: 10px;
}

.ranking-level,
.ranking-xp {
  text-align: right;
}

.ranking-level strong,
.ranking-xp strong {
  display: block;
  font-size: 13px;
}

.ranking-level small,
.ranking-xp small {
  color: var(--muted);
  font-size: 9px;
}

.events-live-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.event-live-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.08), transparent 48%),
    rgba(18, 21, 29, 0.84);
  border: 1px solid var(--border);
  transition: 0.25s ease;
}

.event-live-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.28);
}

.event-live-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b5a8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.event-live-card h3 {
  margin-top: 18px;
  font-size: 20px;
}

.event-live-card p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 12px;
}

.event-countdown {
  margin-top: 20px;
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 10px;
  color: #d5daE5;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
}

.events-footer {
  margin-top: 20px;
}

.live-loading,
.live-empty,
.live-error-box {
  width: 100%;
  padding: 24px;
  border-radius: 18px;
  background: rgba(18, 21, 29, 0.84);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.live-error-box {
  color: #ffaaaa;
  border-color: rgba(255, 100, 100, 0.18);
}

@media (max-width: 760px) {
  .events-live-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 48px minmax(0, 1fr) auto;
  }

  .ranking-xp {
    display: none;
  }
}

@media (max-width: 520px) {
  .ranking-row {
    grid-template-columns: 40px 44px minmax(0, 1fr);
  }

  .ranking-level {
    display: none;
  }

  .bot-live-stats {
    grid-template-columns: 1fr;
  }
}
