﻿:root {
  --font-display: "Space Grotesk", "Sora", "Poppins", sans-serif;
  --font-body: "Spline Sans", "Manrope", "Sora", sans-serif;
  --font-mono: "Space Mono", "Fira Code", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  --space-10: 96px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --color-bg: #080414;
  --color-bg-alt: #0f0822;
  --color-surface: rgba(20, 10, 35, 0.92);
  --color-surface-alt: rgba(30, 16, 52, 0.92);
  --color-card: rgba(22, 12, 40, 0.95);
  --color-text: #f7f0ff;
  --color-muted: #c9b7e6;
  --color-muted-2: #9a86c9;
  --color-border: rgba(160, 122, 255, 0.18);
  --color-border-strong: rgba(160, 122, 255, 0.4);
  --color-primary: #ff4fd8;
  --color-secondary: #47e6ff;
  --color-accent: #a855f7;
  --color-success: #2de3a2;
  --color-warning: #f6c453;
  --color-danger: #ff6b6b;
  --gradient-primary: linear-gradient(135deg, #ff4fd8 0%, #b56bff 45%, #47e6ff 100%);
  --gradient-surface: linear-gradient(160deg, rgba(28, 14, 54, 0.9), rgba(14, 7, 30, 0.9));
  --shadow-soft: 0 12px 40px rgba(6, 0, 18, 0.45);
  --shadow-glow: 0 0 40px rgba(255, 79, 216, 0.2);
  --shadow-outline: 0 0 0 2px rgba(71, 230, 255, 0.35);
  --focus-ring: 0 0 0 2px rgba(71, 230, 255, 0.65);
  --transition-base: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(140, 94, 255, 0.22), transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(255, 79, 216, 0.18), transparent 40%),
    linear-gradient(180deg, #070310 0%, #0b0621 50%, #090414 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(rgba(71, 230, 255, 0.18) 1px, transparent 1px);
  background-size: 120px 120px, 200px 200px;
  background-position: 20px 40px, 80px 140px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255, 79, 216, 0.08) 65%, rgba(71, 230, 255, 0.12) 80%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer,
section,
nav {
  position: relative;
  z-index: 1;
}

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

a:hover,
a:focus-visible {
  color: var(--color-secondary);
}

code {
  font-family: var(--font-mono);
}

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  transform: translateY(-200%);
  transition: transform var(--transition-base);
  z-index: 10;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: var(--space-9) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  margin: 0 0 var(--space-2);
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 720px;
  line-height: 1.6;
  margin: 0 0 var(--space-6);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 79, 216, 0.12);
  color: #ffd6f3;
  border: 1px solid rgba(255, 79, 216, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #120016;
  box-shadow: var(--shadow-glow);
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 79, 216, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 79, 216, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 79, 216, 0.5), inset 0 0 25px rgba(255, 255, 255, 0.15);
  animation: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(71, 230, 255, 0.12);
  color: #aef5ff;
  border-color: rgba(71, 230, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(71, 230, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-discord-login {
  --discord-btn-bg: linear-gradient(180deg, #6677ff 0%, #5865f2 100%);
  background: var(--discord-btn-bg);
  color: #f8f9ff;
  border-color: rgba(167, 177, 255, 0.34);
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  box-shadow: 0 0 0 1px rgba(99, 116, 255, 0.24), 0 0 28px rgba(88, 101, 242, 0.52), 0 12px 28px rgba(7, 10, 30, 0.45);
}

.btn-discord-login:hover,
.btn-discord-login:focus-visible {
  color: #ffffff;
  border-color: rgba(198, 207, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(122, 138, 255, 0.36), 0 0 36px rgba(88, 101, 242, 0.72), 0 16px 32px rgba(7, 10, 30, 0.52);
}

.discord-login-icon-wrap {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-login-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.btn-discord-invite {
  background: linear-gradient(135deg, #7f8dff 0%, #5865f2 46%, #4c5af0 100%);
  color: #ffffff;
  border-color: rgba(194, 204, 255, 0.52);
  border-radius: 16px;
  font-weight: 700;
  padding: 11px 20px;
  font-size: 0.96rem;
  box-shadow: 0 10px 28px rgba(30, 43, 160, 0.42), 0 0 30px rgba(88, 101, 242, 0.4);
}

.btn-discord-invite:hover,
.btn-discord-invite:focus-visible {
  color: #ffffff;
  border-color: rgba(230, 236, 255, 0.85);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px rgba(30, 43, 160, 0.5), 0 0 40px rgba(88, 101, 242, 0.56);
}

.btn-discord-invite .icon {
  stroke: currentColor;
}

.btn-discord-invite--compact {
  padding: 9px 15px;
  border-radius: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(30, 43, 160, 0.34), 0 0 22px rgba(88, 101, 242, 0.28);
}

.btn-header-login {
  background: rgba(20, 15, 44, 0.72);
  border-color: rgba(153, 166, 255, 0.46);
  color: #e3e9ff;
  border-radius: 14px;
  padding: 10px 15px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(101, 118, 240, 0.2);
}

.btn-header-login:hover,
.btn-header-login:focus-visible {
  color: #f8faff;
  border-color: rgba(203, 212, 255, 0.74);
  background: rgba(41, 34, 82, 0.85);
  box-shadow: 0 0 0 1px rgba(140, 156, 255, 0.34), 0 8px 24px rgba(15, 16, 48, 0.42);
  transform: translateY(-1px);
}

.nav-actions .btn {
  min-height: 46px;
}

.btn-hero-login {
  background: rgba(11, 21, 44, 0.58);
  color: #d5f5ff;
  border-color: rgba(99, 214, 255, 0.45);
  border-radius: 999px;
  font-weight: 650;
  padding: 10px 18px;
  font-size: 0.95rem;
}

.btn-hero-login:hover,
.btn-hero-login:focus-visible {
  color: #ecfcff;
  background: rgba(24, 41, 82, 0.7);
  border-color: rgba(148, 232, 255, 0.72);
}

.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta-group .btn {
  min-height: 50px;
}

.hero-invite-trust {
  margin-top: var(--space-9);
  margin-bottom: 0;
  color: #d7e0ff;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(8, 4, 20, 0.75);
  border-bottom: 1px solid rgba(160, 122, 255, 0.18);
  z-index: 5;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--color-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(16, 8, 30, 0.7);
}

.language-switch a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.language-switch a.active {
  background: rgba(255, 79, 216, 0.2);
  color: var(--color-text);
}

.hero {
  padding: var(--space-10) 0 var(--space-9);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: var(--space-3) 0;
  line-height: 1.1;
}

.hero p {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-5);
}

.hero-card {
  background: var(--gradient-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.discord-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-muted-2);
  gap: var(--space-3);
}

.discord-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.discord-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 216, 0.4);
  background: rgba(255, 79, 216, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-name {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.discord-badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(71, 230, 255, 0.4);
  color: #baf6ff;
  background: rgba(71, 230, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discord-timestamp {
  white-space: nowrap;
}

.discord-embed {
  margin-top: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(160, 122, 255, 0.3);
  background: rgba(8, 4, 20, 0.55);
  padding: var(--space-4);
  padding-left: calc(var(--space-4) + 6px);
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: var(--space-4);
  position: relative;
}

.discord-embed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: linear-gradient(180deg, #47e6ff 0%, #ff4fd8 100%);
}

.embed-title {
  font-weight: 600;
  color: var(--color-text);
}

.embed-subtitle {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.embed-track {
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.4;
}

.embed-meta {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.embed-label {
  color: var(--color-muted-2);
  font-weight: 600;
}

.embed-art {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  border: 1px solid rgba(160, 122, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 79, 216, 0.7), rgba(71, 230, 255, 0.2)),
    radial-gradient(circle at 70% 70%, rgba(71, 230, 255, 0.8), rgba(8, 4, 20, 0.8));
  box-shadow: var(--shadow-glow);
}

.hero-card .track {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 var(--space-1);
}

.hero-card .artist {
  color: var(--color-muted-2);
  margin-bottom: var(--space-4);
}

.hero-card .meta {
  display: grid;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  font-family: var(--font-display);
  margin: var(--space-3) 0 var(--space-2);
}

.feature-card p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Feature card hover */
.feature-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-glow);
}

/* Highlight card (for main feature) */
.feature-card--highlight {
  border-color: rgba(255, 79, 216, 0.4);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.08), rgba(71, 230, 255, 0.05));
}

.feature-card--highlight .icon {
  color: var(--color-primary);
}

/* New feature card styling */
.feature-card--new {
  border-color: rgba(45, 227, 162, 0.45);
  background: linear-gradient(135deg, rgba(45, 227, 162, 0.08), rgba(71, 230, 255, 0.05));
}

.feature-card--new .feature-badge {
  background: rgba(45, 227, 162, 0.2);
  color: #b6ffe5;
  border-color: rgba(45, 227, 162, 0.45);
}

/* Coming Soon card styling */
.feature-card--soon {
  position: relative;
  opacity: 0.85;
}

.feature-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(71, 230, 255, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(71, 230, 255, 0.3);
}

/* Icon sizes */
.icon-lg {
  width: 28px;
  height: 28px;
}

.steps {
  display: grid;
  gap: var(--space-4);
}

.step-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(18, 9, 34, 0.85);
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.command-list {
  background: rgba(12, 6, 26, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.command-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(160, 122, 255, 0.12);
}

.command-item:last-child {
  border-bottom: none;
}

.command-item code {
  font-family: var(--font-mono);
  color: #ffd6f3;
}

.preview-card {
  background: rgba(18, 9, 34, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(160, 122, 255, 0.3);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.preview-metric {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(255, 79, 216, 0.08);
}

.faq-grid {
  display: grid;
  gap: var(--space-4);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: rgba(18, 9, 34, 0.75);
}

.footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid rgba(160, 122, 255, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}

.footer p {
  color: var(--color-muted);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: var(--space-2);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

body[data-sidebar-collapsed="true"] .app-shell {
  grid-template-columns: 92px 1fr;
}

.app-sidebar {
  background: rgba(10, 6, 24, 0.95);
  border-right: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-4);
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-sidebar .brand {
  margin-bottom: var(--space-6);
}

.sidebar-nav {
  display: grid;
  gap: var(--space-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  transition: background var(--transition-base), color var(--transition-base);
}

.sidebar-link:hover {
  background: rgba(71, 230, 255, 0.08);
  color: var(--color-text);
}

body[data-sidebar-collapsed="true"] .app-sidebar .sidebar-link span,
body[data-sidebar-collapsed="true"] .app-sidebar .brand span {
  display: none;
}

body[data-sidebar-collapsed="true"] .app-sidebar {
  padding: var(--space-5) var(--space-3);
}

.sidebar-link.active {
  background: rgba(255, 79, 216, 0.12);
  color: var(--color-text);
  border: 1px solid rgba(255, 79, 216, 0.3);
}

.sidebar-link[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(160, 122, 255, 0.18);
  backdrop-filter: blur(18px);
  background: rgba(8, 4, 20, 0.7);
  position: sticky;
  top: 0;
  z-index: 4;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(160, 122, 255, 0.3);
  background: rgba(18, 9, 34, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(71, 230, 255, 0.6);
  color: var(--color-secondary);
}

.app-content {
  padding: var(--space-6);
  flex: 1;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  margin: 0;
}

.page-header p {
  color: var(--color-muted);
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.stat-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: var(--space-1);
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.card p {
  color: var(--color-muted);
}

.list-grid {
  display: grid;
  gap: var(--space-3);
}

.guild-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(16, 8, 30, 0.8);
}

.guild-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guild-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(160, 122, 255, 0.35);
  background: rgba(20, 10, 35, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(71, 230, 255, 0.3);
  color: #baf6ff;
  background: rgba(71, 230, 255, 0.08);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-field {
  display: grid;
  gap: var(--space-1);
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field label {
  font-weight: 600;
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(160, 122, 255, 0.3);
  background: rgba(10, 5, 22, 0.85);
  color: var(--color-text);
  font-family: var(--font-body);
}

.input:focus,
select:focus,
textarea:focus {
  border-color: rgba(71, 230, 255, 0.6);
  box-shadow: var(--focus-ring);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"] {
  accent-color: var(--color-primary);
}

.switch {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.switch input {
  width: 44px;
  height: 24px;
  appearance: none;
  border-radius: 999px;
  background: rgba(160, 122, 255, 0.2);
  border: 1px solid rgba(160, 122, 255, 0.5);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-base);
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition-base);
}

.switch input:checked {
  background: rgba(255, 79, 216, 0.6);
}

.switch input:checked::after {
  transform: translateX(20px);
}

.check-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 0;
}

.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 79, 216, 0.3);
  background: rgba(255, 79, 216, 0.1);
  color: #ffd6f3;
}

.alert.error {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd0d0;
}

.alert.success {
  border-color: rgba(45, 227, 162, 0.5);
  background: rgba(45, 227, 162, 0.12);
  color: #ccffe9;
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  display: grid;
  gap: var(--space-2);
  z-index: 10;
}

.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(20, 10, 35, 0.95);
  border: 1px solid rgba(71, 230, 255, 0.4);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

form.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.12), rgba(71, 230, 255, 0.12), rgba(255, 79, 216, 0.12));
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

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

.sidebar-overlay {
  display: none;
}

/* ===== ANIMATIONS ===== */

/* Hero entrance animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 216, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 79, 216, 0); }
}

.hero h1 {
  animation: heroFadeIn 0.6s ease-out;
}

.hero > .container > div:first-child > p:first-of-type {
  animation: heroFadeIn 0.6s ease-out 0.1s backwards;
}

.hero .badge {
  animation: heroFadeIn 0.5s ease-out, heroBadgePulse 2s ease-in-out 1s 3;
}

.hero-card {
  animation: heroFadeIn 0.7s ease-out 0.2s backwards;
}

/* Scroll reveal (generic) */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section titles animation - only animate if JS adds the class */
.section-title.is-animatable,
.section-subtitle.is-animatable {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.is-visible,
.section-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature card stagger animation */
.feature-card.is-animatable {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }

/* Step cards stagger */
.step-card.is-animatable {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.step-card:nth-child(1) { transition-delay: 0.1s; }
.step-card:nth-child(2) { transition-delay: 0.2s; }
.step-card:nth-child(3) { transition-delay: 0.3s; }

/* FAQ items stagger */
.faq-item.is-animatable {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.1s; }
.faq-item:nth-child(3) { transition-delay: 0.15s; }
.faq-item:nth-child(4) { transition-delay: 0.2s; }

/* Button hover enhancement */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ===== DASHBOARD ANIMATIONS ===== */

/* Sidebar link hover animation */
.sidebar-link {
  transition: background var(--transition-base), color var(--transition-base), transform 0.15s ease;
}

.sidebar-link:hover {
  transform: translateX(4px);
}

.sidebar-link.active {
  transform: translateX(0);
}

/* Card hover micro-interactions */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: 0 8px 24px rgba(6, 0, 18, 0.4);
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(6, 0, 18, 0.35);
}

/* Guild card hover */
.guild-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guild-card:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 230, 255, 0.4);
  box-shadow: 0 8px 24px rgba(71, 230, 255, 0.1);
}

/* What's New banner */
.whats-new-banner {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.12), rgba(71, 230, 255, 0.08));
  border: 1px solid rgba(255, 79, 216, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  animation: fadeSlideDown 0.4s ease;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whats-new-banner .icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.whats-new-banner p {
  margin: 0;
  flex: 1;
}

.whats-new-banner button {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.whats-new-banner button:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  /* Features grid: 2 columns on tablet */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Landing page header mobile */
  .site-nav {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
  }

  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .nav-actions .btn-discord-login {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.82rem;
  }

  .nav-actions .btn-discord-invite--compact {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .nav-actions .btn-header-login {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .nav-actions .btn-discord-login .discord-login-icon-wrap {
    width: 20px;
    height: 20px;
  }

  /* Dashboard topbar mobile */
  .app-topbar {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .topbar-left {
    flex: 1;
    min-width: 0;
  }

  .topbar-left .brand span {
    display: none;
  }

  .topbar-right {
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-end;
  }

  .topbar-right .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .topbar-right .form-field {
    order: 10;
    flex: 1 1 100%;
  }

  .topbar-right .form-field .input {
    min-width: 100% !important;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-110%);
    transition: transform var(--transition-base);
    z-index: 6;
    width: min(280px, 80vw);
  }

  body[data-sidebar-open="true"] .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 2, 16, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 5;
  }

  body[data-sidebar-open="true"] .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .app-topbar {
    padding: var(--space-3);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: var(--space-8);
  }

  .command-item {
    grid-template-columns: 1fr;
  }

  .discord-embed {
    grid-template-columns: 1fr;
  }

  .embed-art {
    width: 64px;
    height: 64px;
  }

  .app-content {
    padding: var(--space-4);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    gap: var(--space-5);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Header compacto em tablet/mobile */
  .site-nav {
    padding: var(--space-3) 0;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .language-switch {
    padding: 2px;
  }

  .language-switch a {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    gap: var(--space-3);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card .value {
    font-size: 1.3rem;
  }
  
  .page-header h1 {
    font-size: 1.6rem;
  }
  
  .whats-new-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .guild-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .guild-card .btn {
    width: 100%;
  }

  /* Esconder avatar do usuário no topbar em tablet */
  .topbar-right .guild-info {
    display: none;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .hero-card {
    padding: var(--space-4);
  }
  
  .discord-embed {
    padding: var(--space-3);
  }

  /* Header ultra compacto */
  .site-nav {
    padding: var(--space-2) 0;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .brand span {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .nav-actions {
    gap: var(--space-1);
  }

  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 36px;
  }

  .nav-actions .btn-discord-login {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .nav-actions .btn-header-login {
    padding: 8px 10px;
    font-size: 0.74rem;
    border-radius: 12px;
  }

  .nav-actions .btn-discord-invite--compact {
    display: none;
  }

  .nav-actions .btn-discord-login .discord-login-icon-wrap {
    width: 18px;
    height: 18px;
  }

  .language-switch {
    display: none;
  }
  
  /* Features grid: 1 column on mobile */
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero > .container > div:first-child > div {
    flex-direction: column;
  }
  
  .feature-card {
    padding: var(--space-4);
  }
  
  .section {
    padding: var(--space-6) 0;
  }
  
  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .footer-grid {
    text-align: center;
  }
  
  .footer .brand {
    justify-content: center;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
  
  .app-content {
    padding: var(--space-3);
  }
  
  .app-topbar {
    padding: var(--space-2) var(--space-3);
  }

  .topbar-left .brand img {
    width: 28px;
    height: 28px;
  }

  .topbar-right .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .topbar-user {
    display: none;
  }
  
  .guild-info {
    flex-direction: column;
    text-align: center;
  }

  .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* Touch-friendly spacing */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
  }
  
  .nav-links a {
    padding: 12px 8px;
  }
  
  .language-switch a {
    padding: 10px 14px;
  }
  
  .sidebar-link {
    padding: 14px 12px;
  }
}

@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;
  }
}
