

:root {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  color-scheme: dark;
  --bg: #06070b;
  --bg-soft: #0b0d14;
  --panel: rgba(13, 14, 20, 0.84);
  --panel-strong: rgba(17, 19, 28, 0.9);
  --text: #f7f9ff;
  --muted: #b7bccd;
  --line: rgba(255, 255, 255, 0.15);
  --danger: #d63946;
  --danger-soft: #f1606e;
  --link: #d63946;
  --accent: #ff5a42;
  --accent-2: #5cc6c6;
  --accent-3: #f47b9a;
  --glow: rgba(255, 90, 66, 0.4);
  --glow-soft: rgba(92, 198, 198, 0.3);
}

body {
  margin: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 90, 66, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(92, 198, 198, 0.08) 0%, transparent 50%),
    radial-gradient(circle at top, #0d1120 0%, var(--bg) 42%, #040509 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.landing-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.landing-body > main {
  flex: 1 0 auto;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(255, 90, 66, 0.03) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(92, 198, 198, 0.03) 50%, transparent 52%);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

body.panel-page {
  background: radial-gradient(circle at 20% 20%, rgba(92, 198, 198, 0.2), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(255, 90, 66, 0.16), transparent 38%),
    linear-gradient(140deg, #0b0e17 0%, #090a12 50%, #080a12 100%);
}

header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  background: rgba(7, 8, 12, 0.72);
}

main {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 8, 12, 0.75);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  height: 64px;
  padding: 0;
}


.topbar-content {
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 90, 66, 0.3);
  transition: all 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 90, 66, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: auto;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 11;
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 90, 66, 0.05), transparent 50%, rgba(92, 198, 198, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 90, 66, 0.1) inset;
}

.card:hover::before {
  opacity: 1;
}

button, input, select, textarea {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  font-size: 1rem;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
.form-control-error {
  border-color: var(--danger) !important;
  background-color: rgba(214, 57, 70, 0.05);
  box-shadow: 0 0 0 3px rgba(214, 57, 70, 0.1) !important;
}

input:valid:not(:placeholder-shown) {
  border-color: var(--accent-2);
  background-color: rgba(92, 198, 198, 0.05);
}

textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  padding: 0.62rem 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  min-width: 44px;
  position: relative;
  cursor: pointer;
  font-size: 1rem;
}

.btn::before {
  content: none;
}



.btn-primary {
  background: transparent;
  border: 1px solid var(--danger-soft);
  box-shadow: none;
  position: relative;
}

.btn-primary::after {
  content: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}



a {
  color: var(--link);
}

.grid {
  display: grid;
  gap: 0.75rem;
}

/* ── Footer simple ── */
footer.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
  background: rgba(7, 8, 12, 0.55);
}

footer.site-footer p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  footer.site-footer {
    padding: 1rem 0.75rem;
    font-size: 0.84rem;
  }
}

/* ── Scroll-to-top ── */
.scroll-top-btn {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(17, 19, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.18s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: rgba(255, 90, 66, 0.18);
  border-color: rgba(255, 90, 66, 0.4);
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Active nav link ── */
.nav a.nav-active {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ── btn-5 effect ── */
.btn-5 {
  border: 0 solid;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0);
  outline: 1px solid;
  outline-color: rgba(255, 255, 255, 0.5);
  outline-offset: 0px;
  text-shadow: none;
  transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-5:hover {
  border: 1px solid;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5),
      0 0 20px rgba(255, 255, 255, 0.2);
  outline-color: rgba(255, 255, 255, 0);
  outline-offset: 15px;
  text-shadow: 1px 1px 2px #427388;
}

.nav a.btn-5 {
  border-radius: 12px;
  padding: 0.62rem 1rem;
}


.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0 4rem;
}

.hero section {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #e2b8c4;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.hero-title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.hero-logo {
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 90, 66, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: logoGlow 4s ease-in-out infinite, logoFloat 6s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.5),
      0 0 60px rgba(255, 90, 66, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.5),
      0 0 80px rgba(255, 90, 66, 0.6),
      0 0 40px rgba(92, 198, 198, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffdbe8 35%, #ff8ea7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 123, 156, 0.35)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  animation: titleShine 4s ease-in-out infinite, titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero p {
  max-width: 46ch;
  margin: 0.9rem auto 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero .subline {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ffd7e3;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  animation: pulseButton 2.4s ease-in-out infinite;
}

.info-main {
  padding: 2.3rem 0 2.5rem;
}

.page-hero {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
}

.section-title-sm {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

.section-gap-top {
  margin-top: 1.7rem;
  margin-bottom: 0.4rem;
}

.lead {
  margin: 0.8rem auto 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
  text-align: center;
}

.stats-row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-chip {
  background: linear-gradient(180deg, rgba(17, 19, 28, 0.84), rgba(12, 14, 22, 0.92));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.stat-chip b {
  display: block;
  color: #e3bdc9;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #b55672;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.55;
}

.info-list {
  margin: 0;
  padding-left: 1.15rem;
}

.timeline {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a63c5c, transparent);
}

.step b {
  color: #b85f79;
  display: block;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(22px) scale(1.06);
  }
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle at top left, #17090f 0%, var(--bg) 40%, #040509 100%);
}

.auth-box {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(13, 14, 22, 0.92), rgba(8, 9, 14, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem 2rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--danger), var(--danger-soft), var(--danger));
  opacity: 0.8;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e8cad3 54%, #b55672 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(17, 19, 28, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.4rem;
  gap: 0.3rem;
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 0.68rem 0.5rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s ease;
}

.auth-tab.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(138, 21, 56, 0.92), rgba(176, 42, 78, 0.92));
  box-shadow: 0 8px 20px rgba(138, 21, 56, 0.38);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 0.9rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input {
  width: 100%;
  height: 46px;
  background: rgba(17, 19, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  padding: 0 1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(176, 42, 78, 0.6);
  box-shadow: 0 0 0 3px rgba(176, 42, 78, 0.14);
}

.auth-button {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, var(--danger), var(--danger-soft));
  border: none;
  border-radius: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.6rem;
  box-shadow: 0 10px 28px rgba(138, 21, 56, 0.4);
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(138, 21, 56, 0.5);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-footer a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.status-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 0;
  display: none;
}

.status-message.active {
  display: block;
}

.status-message.error {
  background: rgba(138, 21, 56, 0.18);
  border: 1px solid rgba(138, 21, 56, 0.4);
  color: #f0bccb;
}

.status-message.success {
  background: rgba(74, 222, 128, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.oauth-divider span {
  flex: 1;
}

.oauth-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(17, 19, 28, 0.8);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  min-height: 44px;
}

.oauth-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(17, 19, 28, 0.95);
  transform: translateY(-1px);
}

.oauth-button.discord {
  color: #5865f2;
}

.oauth-button.google {
  color: var(--danger-soft);
}

.oauth-button.riot {
  color: #ff4655;
}

@media (max-width: 320px) {

}

@media (max-width: 768px) {
  .topbar {
    position: sticky;
    top: 0;
    height: 64px;
  }

  .topbar-content {
    height: 64px;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .brand span {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding: 0.75rem 0 1rem;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(7, 8, 12, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    z-index: 999;
    backdrop-filter: blur(14px);
  }

  .nav.active {
    display: flex !important;
  }

  .nav > .btn,
  .nav > .btn-primary,
  .nav > a,
  .nav > button,
  .user-menu-container,
  .btn-user-menu {
    width: 100%;
  }

  .nav a,
  .nav button,
  .btn-user-menu,
  .menu-item {
    justify-content: flex-start;
    text-align: left;
  }

  .nav > a,
  .nav > button,
  .btn-user-menu {
    min-height: 48px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .user-menu-container {
    position: static;
  }

  .user-menu-dropdown {
    position: static;
    right: auto;
    margin-top: 0;
    min-width: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    border-left: 0;
    border-right: 0;
  }

  .user-menu-dropdown.open {
    max-height: 420px;
  }

  .social-icons {
    display: none;
  }

  .panel-main,
  .info-main,
  main {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .panel-hero,
  .panel-hero-main,
  .panel-card-head,
  .page-hero,
  .hero,
  .hero-actions,
  .flex-gap {
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .flex-gap {
    width: 100%;
  }

  .flex-gap .btn,
  .flex-gap button,
  .hero-actions .btn,
  .hero-actions button {
    width: 100%;
  }

  .panel-meta {
    justify-content: center;
  }

  .stats-grid,
  .panel-grid.two-col,
  .info-grid,
  .timeline,
  .results-grid,
  .streams-grid,
  .ranking-content,
  .profile-form-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .panel-span-2 {
    grid-column: auto;
  }

  .table-wrap,
  .ranking-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel-table,
  .ranking-table {
    min-width: 560px;
  }

  .card {
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .topbar {
    height: 60px;
  }

  .topbar-content {
    height: 60px;
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.75rem;
    gap: 0.3rem;
    min-width: max-content;
  }

  .brand img {
    width: 20px;
    height: 20px;
  }

  .hamburger-menu {
    display: flex !important;
    width: 40px;
    height: 40px;
    padding: 0.25rem;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 12, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    display: none !important;
    z-index: 999;
    border-radius: 0;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
  }

  .nav.active {
    display: flex !important;
  }

  .nav a,
  .nav button {
    width: 100%;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    text-align: left;
    font-size: 0.9rem;
    min-height: 44px;
    justify-content: flex-start;
  }

  .nav a:hover,
  .nav a:focus,
  .nav button:hover {
    background: rgba(255, 90, 66, 0.15);
  }

  .social-icons {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 80px);
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.85rem;
    margin: 0.75rem 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero .btn {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-chip {
    padding: 0.5rem;
  }

  .stat-chip b {
    font-size: 0.8rem;
  }

  .stat-chip span {
    font-size: 0.7rem;
  }

  button, input, select, textarea {
    font-size: 16px;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
  }

  .auth-box {
    width: 100%;
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  .auth-form {
    width: 100%;
  }

  .form-group input {
    min-height: 44px;
    font-size: 16px;
  }

  .auth-button {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .panel-hero {
    flex-direction: column;
    text-align: center;
  }

  .panel-title {
    font-size: 1.3rem;
  }

  .panel-meta {
    justify-content: center;
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-grid.two-col {
    grid-template-columns: 1fr;
  }

  .panel-span-2 {
    grid-column: auto;
  }

  .card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .form-group {
    margin-bottom: 0.7rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .streams-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stream-card {
    padding: 1rem;
  }

  .discord-cta {
    padding: 1.5rem;
    flex-direction: column;
  }

  .discord-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .hamburger-menu {
    display: flex !important;
  }

  .nav {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 12, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    z-index: 999;
    border-radius: 0;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
  }

  .nav.active {
    display: flex !important;
  }

  .auth-box {
    width: 100%;
    padding: 1.6rem 1.2rem;
  }

  .oauth-buttons {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 0.5rem;
    flex-direction: column-reverse;
  }

  .hero .btn {
    width: 100%;
  }

  .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    order: 2;
  }

  .ranking-content {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar-content {
    min-height: 60px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .hamburger-menu {
    display: flex !important;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 12, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    display: none !important;
    z-index: 999;
    border-radius: 0;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
  }

  .nav.active {
    display: flex !important;
  }

  .nav a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    text-align: left;
    min-height: 44px;
  }

  .nav a:hover,
  .nav a:focus {
    background: rgba(255, 90, 66, 0.15);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .panel-grid.two-col {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .ranking-content {
    grid-template-columns: 1fr;
  }

  .ranking-table {
    min-width: 100%;
    font-size: 0.85rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .topbar-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    min-height: 60px;
    gap: 0.5rem;
  }

  .hamburger-menu {
    display: flex !important;
    order: 2;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 12, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    display: none !important;
    z-index: 999;
    border-radius: 0;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
  }

  .nav.active {
    display: flex !important;
  }

  .nav a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    text-align: left;
    min-height: 44px;
  }

  .nav a:hover,
  .nav a:focus {
    background: rgba(255, 90, 66, 0.15);
  }

  .hero {
    min-height: calc(100vh - 80px);
    padding: 2rem 0 2.5rem;
  }

  .timeline,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-grid.two-col {
    grid-template-columns: 1fr;
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .ranking-content {
    grid-template-columns: 1fr;
  }
}

.panel-main {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.panel-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.panel-hero::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 160%;
  background: radial-gradient(circle, rgba(92, 198, 198, 0.22), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}

.panel-hero-main {
  position: relative;
  z-index: 1;
  flex: 1 1 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.panel-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: 0.01em;
}

.panel-subtitle {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.panel-meta {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.panel-meta span {
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 9, 16, 0.5);
}

.stats-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-card {
  margin-bottom: 0;
  background: linear-gradient(145deg, rgba(16, 20, 32, 0.9), rgba(10, 12, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(92, 198, 198, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stat-value {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.panel-grid {
  display: grid;
  gap: 0.9rem;
}

.panel-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card {
  margin-bottom: 0;
  background: rgba(12, 14, 22, 0.9);
}

.panel-card--table {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f2c464;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(242, 196, 100, 0.4);
  border-radius: 999px;
  background: rgba(242, 196, 100, 0.08);
}

.panel-span-2 {
  grid-column: span 2;
}

.table-wrap {
  overflow: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.panel-table th,
.panel-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.93rem;
}

.panel-table th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.panel-table td {
  color: var(--text);
}

.table-empty {
  color: var(--muted);
}

.form-grid {
  gap: 0.65rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.78rem;
  color: var(--muted);
}

.message {
  margin-top: 1rem;
  color: var(--muted);
}

.panel-page .card {
  animation: cardRise 0.45s ease both;
}

.panel-page .card:nth-child(2) {
  animation-delay: 0.05s;
}

.panel-page .card:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes cardRise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  text-transform: lowercase;
}

.role-admin {
  background: var(--panel-strong);
}

.role-user {
  background: var(--panel);
}

.role-banned {
  background: var(--panel-strong);
  border-color: var(--danger);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.profile-name {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.profile-meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-extra-info {
  margin-top: 1rem;
}

.profile-table-spacer {
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-grid.two-col {
    grid-template-columns: 1fr;
  }

  .panel-span-2 {
    grid-column: auto;
  }

  .panel-hero-main,
  .panel-card-head {
    text-align: center;
  }

  .panel-card-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-meta,
  .flex-gap,
  .social-icons {
    justify-content: center;
  }
}


.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  grid-column: 1 / -1;
}

.field-full-width {
  grid-column: 1 / -1;
}

.btn-full-width {
  grid-column: 1 / -1;
}

.word-counter {
  font-size: 0.8rem;
  color: #666;
}


.stats-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-value {
  margin: 0.5rem 0;
  font-weight: bold;
}

.stat-value-large {
  font-size: 1.2rem;
}

.stat-value-wins {
  color: #4ECB71;
}

.stat-value-losses {
  color: #FF6B6B;
}

.stat-value-rate {
  color: #4ECDC4;
}

.system-status {
  margin: 0.5rem 0;
}

.ranking-table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.hidden-section {
  display: none;
}

.notifications-list {
  max-height: 300px;
  overflow-y: auto;
}

.visible-section {
  display: block;
}

.form-control-error {
  border-color: #FF6B6B !important;
}

.text-center {
  text-align: center;
  padding: 1rem;
}

.modal-visible {
  display: block !important;
}

.modal-hidden {
  display: none !important;
}

.tab-visible {
  display: block !important;
}

.tab-hidden {
  display: none !important;
}

.center-text {
  text-align: center;
}

.search-tabs-margin {
  margin: 2rem 0;
}

.flex-gap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ranking-table thead {
  background: var(--panel-strong);
  border-bottom: 2px solid var(--line);
}

.ranking-table th {
  padding: 1.2rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.ranking-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.ranking-table tbody tr:hover {
  background: var(--panel-strong);
  transition: background 0.2s ease;
}

.ranking-table tbody tr.ranking-top {
  background: rgba(255, 90, 66, 0.05);
}

.rank-position {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 50px;
}

.ranking-table tbody tr:nth-child(-n+3) .rank-position {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255, 90, 66, 0.5);
}


.ranking-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .ranking-content {
    grid-template-columns: 2fr 1fr;
  }
}

.ranking-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 1.1rem;
}


.filters-section {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.form-control {
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-control:hover {
  border-color: var(--accent-2);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 66, 0.1);
}


.modal {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--panel-strong);
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h2 {
  margin-top: 0;
  color: var(--accent);
}

.modal-content h4 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.modal-content li:last-child {
  border-bottom: none;
}

.join-template-card,
.join-template-form {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.join-template-title {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.join-template-subtitle,
.join-request-modal-subtitle {
  margin: 0.35rem 0 0.9rem;
  text-align: center;
  color: var(--muted);
}

.join-template-confirm-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  text-align: left;
}

.join-template-confirm-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  min-height: unset;
}

.join-template-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.join-template-actions.centered-actions {
  justify-content: center;
}

.join-request-modal-content {
  max-width: 680px;
  width: min(680px, calc(100% - 1.5rem));
}


.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-icon:hover {
  background: var(--line);
}


.user-menu-container {
  position: relative;
}

.btn-user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.62rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 100;
}

.btn-user-menu:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-user-menu:hover .dropdown-arrow {
  transform: translateY(2px);
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 99;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.user-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  padding-left: 1.25rem;
}

.menu-item .icon {
  font-size: 1.1rem;
  min-width: 1.2rem;
}

.btn-logout {
  color: var(--danger-soft);
}

.btn-logout:hover {
  background-color: rgba(212, 57, 70, 0.15);
  color: var(--danger);
}

.menu-divider {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid var(--line);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-secondary {
  background: var(--line);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--muted);
}


.loading-row td {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

.text-muted {
  color: var(--muted);
  font-style: italic;
}

.text-secondary {
  color: var(--muted);
}

.page-hero {
  margin: 2rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: var(--accent);
}

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0.8rem auto 0;
  max-width: 62ch;
  text-align: center;
}


.notifications-card {
  margin: 2rem 0;
  background: var(--panel);
  border-radius: 12px;
  padding: 1.5rem;
}

.notifications-card .panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-block;
  background: var(--danger-soft);
  color: white;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--panel-strong);
}

.notification-item.unread {
  background: rgba(255, 90, 66, 0.05);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-content {
  flex: 1;
}

.notification-message {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

.notification-time {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.notification-actions {
  display: flex;
  gap: 0.5rem;
}

.notification-actions button {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-close {
  background: var(--danger-soft);
  color: white;
}

.notification-close:hover {
  background: var(--danger);
}


.upcoming-matches-card {
  margin: 2rem 0;
  background: var(--panel);
  border-radius: 12px;
  padding: 1.5rem;
}

.upcoming-matches-card .panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}


.recent-matches-section {
  margin: 2rem 0;
}

.recent-match-item {
  background: var(--panel);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--muted);
  transition: all 0.2s ease;
}

.recent-match-item.win {
  border-left-color: #4ecb71;
  background: rgba(78, 203, 113, 0.05);
}

.recent-match-item.loss {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
}

.recent-match-item.draw {
  border-left-color: var(--accent-2);
  background: rgba(92, 198, 198, 0.05);
}

.recent-match-item:hover {
  transform: translateX(4px);
}

.match-info {
  flex: 1;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.match-score {
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 60px;
  text-align: center;
}

.match-score.win {
  color: #4ecb71;
}

.match-score.loss {
  color: #ff6b6b;
}

.match-score.draw {
  color: var(--accent-2);
}

.team-name {
  font-weight: 600;
  color: var(--text);
}

.team-name.opponent {
  color: var(--muted);
}

.match-tournament {
  color: var(--muted);
  font-size: 0.85rem;
}

.match-result-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-result-badge.win {
  background: rgba(78, 203, 113, 0.2);
  color: #4ecb71;
}

.match-result-badge.loss {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.match-result-badge.draw {
  background: rgba(92, 198, 198, 0.2);
  color: var(--accent-2);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  margin-right: 0.5rem;
  background: transparent;
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.tab-btn:hover {
  border-color: var(--accent);
}

.search-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.search-filters .form-control {
  flex: 1;
  min-width: 150px;
}

.search-filters .btn {
  margin-top: auto;
}

.results-container {
  margin-top: 2rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: var(--panel-strong);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(230, 178, 74, 0.1);
}

.result-logo,
.result-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 2px solid var(--line);
}

.result-avatar {
  border-radius: 50%;
}

.result-logo-placeholder,
.result-avatar-placeholder {
  width: 100px;
  height: 100px;
  background: var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.result-avatar-placeholder {
  border-radius: 50%;
}

.result-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.result-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.search-card h2 {
  color: var(--accent);
  margin-top: 0;
}

.team-members-list {
  list-style: none;
  padding: 0;
}

.team-members-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.team-member-rank {
  color: var(--muted);
}

.team-logo,
.player-avatar {
  max-width: 100px;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.player-avatar {
  border-radius: 50%;
}

.message-success {
  color: #4ecb71;
}

.message-error {
  color: #ff6b6b;
}


.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-icon {
  padding: 0.65rem;
  min-height: auto;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.social-icon svg {
  display: block;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-icon::before {
  content: none;
}


.social-icon[title="Discord"]::before {
  content: none;
}

.social-icon[title="Discord"]:hover {
  border-color: #5865F2;
  transform: translateY(-2px);
  box-shadow: none;
}

.social-icon[title="Discord"]:hover svg {
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.8));
  transform: scale(1.1) rotate(-5deg);
}


.social-icon[title*="Twitch"]::before {
  content: none;
}

.social-icon[title*="Twitch"]:hover {
  border-color: #9146FF;
  transform: translateY(-2px);
  box-shadow: none;
}

.social-icon[title*="Twitch"]:hover svg {
  filter: drop-shadow(0 0 12px rgba(145, 70, 255, 0.8));
  transform: scale(1.1) rotate(5deg);
}


.social-icon[title="TikTok"]::before {
  content: none;
}

.social-icon[title="TikTok"]:hover {
  border-color: #FE2C55;
  transform: translateY(-2px);
  box-shadow: none;
}

.social-icon[title="TikTok"]:hover svg {
  filter: drop-shadow(0 0 12px rgba(254, 44, 85, 0.6)) drop-shadow(0 0 8px rgba(0, 242, 234, 0.4));
  transform: scale(1.1) rotate(-5deg);
}


.social-icon:hover::before {
  content: none;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.04);
}

.social-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.8);
  transform: scale(0.95);
}


.live-streams-section {
  padding: 3rem 1rem;
  margin-top: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.live-indicator {
  width: 14px;
  height: 14px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px var(--danger);
  position: relative;
}

.live-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--danger);
  transform: translate(-50%, -50%);
  animation: pulseRing 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 20px var(--danger);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--danger);
  }
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stream-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stream-card::before {
  content: none;
}

.stream-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 90, 66, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.stream-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px var(--glow),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.stream-card:hover::before {
  content: none;
}

.stream-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.stream-offline {
  opacity: 0.8;
}

.stream-online {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(255, 90, 66, 0.08));
  border-color: rgba(255, 90, 66, 0.4);
  box-shadow: 0 0 40px rgba(255, 90, 66, 0.2);
}

.stream-online::before {
  opacity: 1 !important;
  animation: pulse-glow 2s ease-in-out infinite;
}

.stream-online .status-dot {
  background: #ff5a42;
  animation: pulse 1.5s ease-in-out infinite;
}

.stream-link {
  margin-top: 1.8rem !important;
  padding: 0.3rem 0.6rem !important;
  font-size: 0.75rem !important;
  min-height: 30px !important;
  min-width: 30px !important;
}

.stream-online .stream-link {
  display: inline-block !important;
  margin-top: 1.8rem;
  background: linear-gradient(135deg, #ff5a42, #ff7a60);
  border: none;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  min-height: 30px;
  min-width: 30px;
}

.stream-online .stream-link:hover {
  background: linear-gradient(135deg, #ff7a60, #ff9080);
  box-shadow: 0 0 20px rgba(255, 90, 66, 0.5);
}

.stream-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stream-platform-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.stream-card:hover .stream-platform-badge::before {
  left: 100%;
}

.twitch-badge {
  background: rgba(145, 70, 255, 0.2);
  color: #b794ff;
  border: 1px solid rgba(145, 70, 255, 0.4);
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.3);
}

.stream-card:hover .twitch-badge {
  background: rgba(145, 70, 255, 0.3);
  box-shadow: 0 0 30px rgba(145, 70, 255, 0.5);
  transform: scale(1.05);
}

.tiktok-badge {
  background: rgba(255, 0, 80, 0.2);
  color: #ff4d8f;
  border: 1px solid rgba(255, 0, 80, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 80, 0.3);
}

.stream-card:hover .tiktok-badge {
  background: rgba(255, 0, 80, 0.3);
  box-shadow: 0 0 30px rgba(255, 0, 80, 0.5);
  transform: scale(1.05);
}

.stream-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  transition: all 0.3s ease;
}

.status-dot.offline {
  background: var(--muted);
}

.status-dot.online {
  background: #ff5a42;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px #ff5a42;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.stream-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.stream-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}


.discord-cta {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.08));
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.2);
}

.discord-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.discord-cta:hover {
  transform: scale(1.02);
  box-shadow: 
    0 12px 48px rgba(88, 101, 242, 0.3),
    0 0 60px rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.6);
}

.discord-cta-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.discord-cta-content svg {
  color: #5865f2;
  flex-shrink: 0;
}

.discord-cta-content > div {
  flex: 1;
  min-width: 250px;
}

.discord-cta h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: var(--text);
}

.discord-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.discord-cta .btn {
  flex-shrink: 0;
}


@media (max-width: 768px) {
  .social-icons {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }

  .discord-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .discord-cta-content svg {
    margin: 0 auto;
  }
}




@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

main > section {
  animation: fadeInUp 0.7s ease-out;
}

.hero {
  animation: fadeIn 0.8s ease-out !important;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading,
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 7, 11, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.loading-overlay .spinner {
  width: 60px;
  height: 60px;
  border-width: 4px;
}


input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 
    0 0 0 3px rgba(255, 90, 66, 0.15),
    0 4px 12px rgba(255, 90, 66, 0.2);
  background: rgba(17, 19, 28, 0.95);
}


input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 57, 70, 0.1);
}

input:valid:not(:placeholder-shown) {
  border-color: rgba(92, 198, 198, 0.5);
}


button,
.btn {
  position: relative;
}

button::after,
.btn::after {
  content: none;
}

button:active::after,
.btn:active::after {
  content: none;
}


.card {
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}


@media (min-width: 768px) {
  body::before {
    animation: parallaxBg 60s ease-in-out infinite;
  }
}

@keyframes parallaxBg {
  0%, 100% { 
    transform: translateY(0) scale(1); 
  }
  50% { 
    transform: translateY(-20px) scale(1.05); 
  }
}


.nav a {
  position: relative;
  transition: all 0.3s ease;
}

.nav a::before {
  content: none;
}


@keyframes shimmerSkeleton {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 1000px 100%;
  animation: shimmerSkeleton 2s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 16px;
  margin: 8px 0;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin: 12px 0;
}


a {
  transition: all 0.2s ease;
}

a:hover {
  transform: translateX(2px);
  text-shadow: 0 0 8px rgba(255, 90, 66, 0.4);
}


html {
  scroll-behavior: smooth;
}


[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: rgba(17, 19, 28, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}


button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}


@keyframes successPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(92, 198, 198, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(92, 198, 198, 0);
  }
}

.success-feedback {
  animation: successPulse 1s ease-out;
  border-color: var(--accent-2) !important;
}




::selection {
  background: rgba(255, 90, 66, 0.3);
  color: var(--text);
}

::-moz-selection {
  background: rgba(255, 90, 66, 0.3);
  color: var(--text);
}


body {
  animation: fadeIn 0.4s ease-in;
}


@media (max-width: 768px) {
  .card:hover {
    transform: translateY(-2px);
  }

  button:active::after,
  .btn:active::after {
    width: 200px;
    height: 200px;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


@media (max-width: 640px) {
  @supports (backdrop-filter: none) {
    .nav {
      backdrop-filter: blur(5px);
    }
  }

  
  .card {
    animation: none !important;
  }

  .stream-card::before,
  .stream-card::after {
    animation: none !important;
  }

  .hero h1 {
    animation: none !important;
  }

  .hero-logo {
    animation: none !important;
  }

  
  .card:hover {
    box-shadow: none;
    transform: translateY(-2px) !important;
  }

  button:active::after {
    animation: none !important;
  }

  
  header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .container {
    width: calc(100% - 1rem);
  }

  
  button, .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1rem;
  }

  a {
    padding: 0.25rem;
  }

  
  nav {
    gap: 0.5rem;
  }

  nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  
  input, textarea, select {
    font-size: 16px; 
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  
  body, html {
    overflow-x: hidden;
  }

  
  .modal, dialog {
    width: 95vw;
    max-width: 100%;
    margin: auto;
  }

  
  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }

  
  .card {
    padding: 1rem;
  }

  
  body {
    font-size: 16px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }

  
  section {
    padding: 1.5rem 0;
  }

  
  video, iframe {
    max-width: 100%;
    height: auto;
  }

  
  ul, ol {
    padding-left: 1.5rem;
  }

  li {
    margin-bottom: 0.5rem;
  }

  
  code {
    font-size: 0.9rem;
    word-break: break-word;
  }

  pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


@media (max-width: 360px) {
  header {
    padding: 0.5rem;
  }

  main {
    margin: 0.75rem auto;
  }

  .container {
    width: calc(100% - 0.5rem);
  }

  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 0.95rem; }

  body {
    font-size: 14px;
  }

  button, .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}


@media (max-height: 500px) and (orientation: landscape) {
  header, .topbar {
    padding: 0.5rem;
  }

  main {
    margin: 0.5rem auto;
  }

  h1, h2 {
    margin: 0.5rem 0;
  }

  button, .btn {
    padding: 0.4rem 0.8rem;
  }
}


#baneado-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 4, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.baneado-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  
  transform: rotate(-35deg);
  user-select: none;
}

.baneado-text {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 4px #d63946;
  text-shadow:
    0 0 60px rgba(214, 57, 70, 0.7),
    0 0 120px rgba(214, 57, 70, 0.3);
  line-height: 1;
  
  padding: 0.2em 0.5em;
  border: 6px solid #d63946;
  outline: 3px solid rgba(214, 57, 70, 0.35);
  outline-offset: 6px;
  border-radius: 4px;
  background: rgba(214, 57, 70, 0.06);
  animation: ban-pulse 2.5s ease-in-out infinite;
  white-space: nowrap;
}

.baneado-sub {
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  color: rgba(247, 249, 255, 0.6);
  text-align: center;
  max-width: 40ch;
  line-height: 1.6;
  
  transform: rotate(35deg);
  letter-spacing: 0.02em;
}

@keyframes ban-pulse {
  0%, 100% {
    text-shadow:
      0 0 60px rgba(214, 57, 70, 0.7),
      0 0 120px rgba(214, 57, 70, 0.3);
    border-color: #d63946;
  }
  50% {
    text-shadow:
      0 0 80px rgba(214, 57, 70, 1),
      0 0 160px rgba(214, 57, 70, 0.5);
    border-color: #f1606e;
  }
}

/* Navbar global final overrides */
.topbar {
  overflow: visible;
}

.topbar-content {
  width: 100%;
}

@media (min-width: 769px) {
  .topbar {
    height: 64px;
  }

  .topbar-content {
    height: 64px;
    padding: 0 1.25rem;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav {
    position: static !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0;
    margin-left: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
  }

  .hamburger-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .topbar {
    height: 64px;
  }

  .topbar-content {
    height: 64px;
    padding: 0 0.85rem;
  }

  .nav {
    top: 64px !important;
    max-height: calc(100dvh - 64px);
    padding-bottom: 1rem;
  }

  .nav > .btn,
  .nav > .btn-primary,
  .nav > a,
  .nav > button,
  .user-menu-container,
  .btn-user-menu {
    min-height: 48px;
  }

  .user-menu-dropdown {
    max-height: 0;
    transition: max-height 0.24s ease;
  }

  .user-menu-dropdown.open {
    max-height: 420px;
  }
}

@media (max-width: 360px) {
  .topbar {
    height: 60px;
  }

  .topbar-content {
    height: 60px;
    padding: 0 0.65rem;
  }

  .nav {
    top: 60px !important;
    max-height: calc(100dvh - 60px);
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 64px;
    z-index: 3000;
  }

  .topbar-content {
    position: relative;
    height: 64px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .hamburger-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex: 0 0 44px;
    position: relative;
    z-index: 3002;
    line-height: 0;
  }

  .hamburger-menu span {
    display: block !important;
    width: 24px;
    height: 2px;
    margin: 0 !important;
    background: var(--text);
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.7);
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    width: 100vw;
    background: rgba(7, 8, 12, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 3001;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav.active > a,
  .nav.active > .btn,
  .nav.active > .btn-primary,
  .nav.active > button,
  .nav.active .btn-user-menu,
  .nav.active .menu-item {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-height: 48px;
    padding: 0.9rem 1rem;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    color: var(--text) !important;
    text-align: left;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    line-height: 1.2;
    font-size: 1rem;
    letter-spacing: normal !important;
    transform: none !important;
  }

  .nav.active > a,
  .nav.active > .btn,
  .nav.active > .btn-primary,
  .nav.active > button,
  .nav.active .btn-user-menu {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}

@media (max-width: 768px) {
  .topbar .nav {
    display: none !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 64px) !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    background: rgba(7, 8, 12, 0.985) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42) !important;
    overflow-y: auto !important;
    z-index: 3001 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
  }

  .topbar .nav.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .topbar .nav > a,
  .topbar .nav > .btn,
  .topbar .nav > .btn-primary,
  .topbar .nav > button,
  .topbar .nav .btn-user-menu,
  .topbar .nav .menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    width: 100% !important;
    min-width: 100% !important;
    min-height: 52px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important;
    color: var(--text) !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: background 0.18s ease, color 0.18s ease !important;
  }

  .topbar .nav > a:hover,
  .topbar .nav > .btn:hover,
  .topbar .nav > .btn-primary:hover,
  .topbar .nav > button:hover,
  .topbar .nav .btn-user-menu:hover,
  .topbar .nav .menu-item:hover,
  .topbar .nav > a:active,
  .topbar .nav > .btn:active,
  .topbar .nav > .btn-primary:active,
  .topbar .nav > button:active,
  .topbar .nav .btn-user-menu:active,
  .topbar .nav .menu-item:active {
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .topbar .nav .social-icons {
    display: none !important;
  }
}

