:root {
  --font-body: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #050505;
  --surface: #0f0f0f;
  --surface-muted: #161616;
  --text: #f7f7f7;
  --muted: #a7a7a7;
  --accent: #f7f7f7;
  --accent-soft: rgba(247, 247, 247, 0.1);
  --accent-neon: #c174ff;
  --accent-neon-soft: rgba(193, 116, 255, 0.15);
  --accent-neon-glow: rgba(193, 116, 255, 0.35);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  --grain-highlight: rgba(255, 255, 255, 0.08);
  --grain-shadow: rgba(0, 0, 0, 0.5);
  --btn-text: #050505;
  --scroll-track: rgba(255, 255, 255, 0.08);
  --scroll-thumb: rgba(247, 247, 247, 0.8);
  --bg-grid: rgba(255, 255, 255, 0.08);
  --bg-noise: rgba(0, 0, 0, 0.35);
  --loader-bg: color-mix(in srgb, var(--bg) 88%, black);
  --loader-star-color: rgba(255, 255, 255, 0.2);
  --loader-glow-color: rgba(255, 255, 255, 0.28);
  --loader-orbit-color: rgba(255, 255, 255, 0.35);
  --loader-orbit-dot: #c174ff;
  --loader-message-color: var(--muted);
}

[data-theme='light'] {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-muted: #f2f4f8;
  --text: #050505;
  --muted: #4f4f56;
  --accent: #050505;
  --accent-soft: rgba(5, 5, 10, 0.08);
  --accent-neon: #9b45ff;
  --accent-neon-soft: rgba(155, 69, 255, 0.12);
  --accent-neon-glow: rgba(155, 69, 255, 0.25);
  --border: rgba(5, 5, 15, 0.12);
  --shadow: 0 18px 30px rgba(0, 0, 0, 0.1);
  --grain-highlight: rgba(0, 0, 0, 0.04);
  --grain-shadow: rgba(255, 255, 255, 0.65);
  --btn-text: #fdfdfd;
  --scroll-track: rgba(5, 5, 5, 0.08);
  --scroll-thumb: rgba(5, 5, 5, 0.6);
  --bg-grid: rgba(5, 5, 5, 0.08);
  --bg-noise: rgba(5, 5, 5, 0.18);
  --loader-bg: color-mix(in srgb, var(--bg) 94%, white);
  --loader-star-color: rgba(5, 5, 5, 0.18);
  --loader-glow-color: rgba(255, 255, 255, 0.9);
  --loader-orbit-color: rgba(5, 5, 5, 0.2);
  --loader-orbit-dot: #c174ff;
  --loader-message-color: rgba(10, 10, 10, 0.65);
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--accent-neon);
  color: #ffffff;
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent-neon);
  color: #ffffff;
  text-shadow: none;
}

*:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
  border-radius: 4px;
}

[data-theme='light'] *:focus-visible {
  outline-color: #9b45ff;
  outline-width: 2.5px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  overflow-x: hidden;
}

html[data-theme] {
  transition: none;
}

html[data-theme] * {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

html::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--scroll-thumb) 80%, var(--accent) 20%);
}

[data-theme='light'] html::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: var(--font-body);
  background: linear-gradient(140deg, rgba(10, 10, 20, 0.85), rgba(1, 1, 1, 0.92)),
    radial-gradient(circle at 15% 20%, rgba(193, 116, 255, 0.18), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(0, 152, 255, 0.15), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
  position: relative;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

body::before {
  background-image: radial-gradient(circle at 25% 20%, var(--accent-neon-soft), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.08), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: breatheGlow 30s ease-in-out infinite;
}

body::after {
  background-image: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(circle at 60% 80%, rgba(193, 116, 255, 0.2), transparent 65%);
  opacity: 0.22;
  animation: driftShift 26s linear infinite;
}

[data-theme='light'] body {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.95)),
    radial-gradient(circle at 20% 15%, rgba(193, 116, 255, 0.2), transparent 42%),
    radial-gradient(circle at 68% 10%, rgba(46, 151, 255, 0.25), transparent 60%), var(--bg);
}

[data-theme='light'] body::before {
  mix-blend-mode: multiply;
  opacity: 0.35;
  background-image: radial-gradient(circle at 25% 20%, rgba(193, 116, 255, 0.25), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(120, 190, 255, 0.3), transparent 55%);
}

[data-theme='light'] body::after {
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 163, 214, 0.25), transparent 60%),
    radial-gradient(circle at 80% 65%, rgba(114, 161, 255, 0.25), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 35%);
  opacity: 0.3;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.04), transparent 45%), var(--loader-bg);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  z-index: 999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  cursor: pointer;
  will-change: opacity, visibility;
}

.loader-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: color-mix(in srgb, var(--loader-orbit-dot) 80%, #ffffff 20%);
  border-right-color: color-mix(in srgb, var(--loader-orbit-dot) 60%, rgba(255, 255, 255, 0.5) 40%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  animation: loaderSpin 1.1s linear infinite;
}

.loader-text {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.6em;
}

.loader-stars {
  position: absolute;
  inset: -30% -30% auto;
  height: 160%;
  background-image: radial-gradient(circle, var(--loader-star-color) 1px, transparent 1px);
  background-size: 180px 180px;
  opacity: 0.3;
  animation: gradientDrift 16s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.loader-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.loader-glow {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--loader-glow-color), transparent 65%);
  filter: blur(12px);
  animation: loaderPulse 3s ease-in-out infinite;
}

.loader-orbit {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px dashed var(--loader-orbit-color);
  animation: orbitSpin 8s linear infinite;
}

.loader-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--loader-orbit-dot);
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  animation: orbitPulse 2.4s ease-in-out infinite;
}

.page-loader p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--loader-message-color);
  letter-spacing: 0.2em;
}

.loader-message {
  margin: 0;
  font-size: 0.75rem;
  color: var(--loader-message-color);
  letter-spacing: 0.2em;
  min-height: 1em;
}

.loader-enter {
  margin-top: 0.5rem;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--btn-text);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.loader-enter:hover,
.loader-enter:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.loader-enter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[data-theme='light'] .page-loader {
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.4), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), transparent 60%), var(--loader-bg);
}

[data-theme='light'] .loader-core {
  color: rgba(5, 5, 5, 0.65);
}

[data-theme='light'] .loader-text {
  color: rgba(5, 5, 5, 0.85);
}

[data-theme='light'] .loader-stars {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

[data-theme='light'] .loader-ring {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

[data-theme='light'] .loader-enter {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

body.loader-complete .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.loader-complete {
  overflow-y: visible;
}

body.loader-complete main {
  scroll-behavior: smooth;
}

.reveal-on-load {
  opacity: 0;
  transform: translateY(28px);
}

body.is-loaded .reveal-on-load {
  animation: fadeUp 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

body.is-loaded .profile-cards.reveal-on-load {
  animation-delay: 0.12s;
}

body.is-loaded .profile-text.reveal-on-load {
  animation-delay: 0.04s;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.section {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 7vw, 6rem);
  scroll-margin-top: 120px;
  width: 100%;
  box-sizing: border-box;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  background: linear-gradient(90deg, var(--accent-neon), var(--muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
  font-weight: 500;
  display: inline-block;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent-neon);
  background: linear-gradient(135deg, var(--accent-neon) 0%, #8945ff 50%, var(--accent-neon) 100%);
  background-size: 200% 200%;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-position 0.6s ease;
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::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 ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(193, 116, 255, 0.6), 0 0 30px rgba(193, 116, 255, 0.4);
  background-position: 100% 50%;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 4px;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn.ghost {
  background: rgba(193, 116, 255, 0.12);
  color: var(--text);
  border-color: color-mix(in srgb, var(--border) 60%, rgba(193, 116, 255, 0.6) 40%);
  box-shadow: inset 0 0 0 1px rgba(193, 116, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(193, 116, 255, 0.18);
  border-color: rgba(193, 116, 255, 0.7);
}

.btn.compact {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  background: color-mix(in srgb, var(--surface) 50%, var(--accent-neon) 50%);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent-neon) 70%, var(--border) 30%);
  box-shadow: 0 10px 22px var(--accent-neon-soft);
}

[data-theme='light'] .btn.compact {
  background: color-mix(in srgb, #ffffff 70%, var(--accent-neon) 30%);
  color: #1f1f1f;
  border-color: color-mix(in srgb, var(--accent-neon) 55%, rgba(0, 0, 0, 0.2) 45%);
  box-shadow: 0 12px 25px rgba(193, 116, 255, 0.25);
}

[data-theme='light'] .btn.compact:hover {
  background: color-mix(in srgb, #ffffff 60%, var(--accent-neon) 40%);
  box-shadow: 0 15px 30px rgba(193, 116, 255, 0.35);
}

[data-theme='light'] .btn {
  color: var(--btn-text);
  box-shadow: 0 15px 30px rgba(193, 116, 255, 0.25);
}

[data-theme='light'] .btn.ghost {
  background: transparent;
  border-color: rgba(193, 116, 255, 0.4);
  color: var(--text);
  box-shadow: none;
}

[data-theme='light'] .btn.ghost:hover {
  background: rgba(193, 116, 255, 0.12);
  border-color: rgba(193, 116, 255, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  padding: 0.6rem clamp(1.5rem, 6vw, 5rem);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.site-header.scrolled {
  padding-block: 0.5rem;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom-color: rgba(193, 116, 255, 0.2);
}

.header-bar {
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(320px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 150;
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  will-change: transform, opacity;
  animation: smoothPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.live-popup.is-live {
  display: flex;
}

.live-popup-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-popup.is-live .live-popup-status {
  animation: subtleFloat 4s ease-in-out 0.5s infinite;
}

.live-popup .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.live-popup.is-live .dot,
.live-popup .dot.is-live {
  background: #ff4c4c;
  box-shadow: 0 0 8px rgba(255, 76, 76, 0.8);
  animation: livePulse 1.6s ease-in-out infinite;
}

.live-popup-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.live-popup-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.live-popup .btn {
  align-self: flex-start;
  text-align: center;
  justify-content: center;
  display: flex;
}

.live-popup .btn:not(.ghost) {
  flex: 1;
  min-width: 0;
}

.live-popup .btn.ghost {
  flex: 1;
  min-width: 0;
}

/* When live (both buttons showing), make them equal width */
.live-popup.is-live .live-popup-actions {
  display: flex;
}

.live-popup.is-live .btn {
  flex: 1;
}

/* Chat Nickname Overlay */
.chat-nickname-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s ease;
}

.chat-nickname-overlay[hidden] {
  display: none;
}

.nickname-card {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 95%, rgba(193, 116, 255, 0.1) 5%),
    color-mix(in srgb, var(--surface) 90%, rgba(137, 69, 255, 0.15) 10%)
  );
  border: 1px solid rgba(193, 116, 255, 0.5);
  border-radius: 20px;
  padding: 2rem;
  width: min(400px, 90vw);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(193, 116, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.nickname-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
}

.nickname-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.nickname-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #c174ff, #8945ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.5);
  animation: float 3s ease-in-out infinite;
}

.nickname-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--text), var(--accent-neon));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nickname-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nickname-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nickname-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nickname-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(193, 116, 255, 0.3);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nickname-form input:focus {
  outline: none;
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 4px rgba(193, 116, 255, 0.2);
  background: var(--surface);
}

.nickname-form input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.nickname-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nickname-actions .btn {
  flex: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Chat */
.chat-toggle {
  position: fixed;
  bottom: 40px;
  left: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  z-index: 140;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.chat-toggle i {
  font-size: 1.5rem;
}

.chat-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-toggle:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 3px;
}

.chat-panel {
  position: fixed;
  bottom: 40px;
  left: 1.5rem;
  width: min(320px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 140;
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}

.chat-panel.is-open {
  display: flex;
  animation: popupFade 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.chat-panel iframe {
  width: 100%;
  height: 350px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}

.chat-helper {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes loaderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-120px, -80px, 0);
  }
}

@keyframes noisePulse {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.24;
  }
}

@keyframes breatheGlow {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

@keyframes driftShift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-80px, -40px, 0);
  }
}

@keyframes gradientDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-60px, -60px, 0) rotate(360deg);
  }
}

@keyframes loaderPulse {
  0% {
    opacity: 0.4;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.92);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: translate(-50%, 0) scale(0.85);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, 0) scale(1.1);
    opacity: 1;
  }
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 76, 76, 0.4);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(255, 76, 76, 0.75);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 76, 76, 0.4);
  }
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes smoothPopIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tabPanelReveal {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo {
  font-weight: 600;
  letter-spacing: 0.85em;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #c174ff 0%, #ff74d4 50%, #c174ff 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(193, 116, 255, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: gradientShift 6s ease infinite;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(193, 116, 255, 0.9));
}

.logo:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 4px;
  border-radius: 4px;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.chat-header-toggle {
  display: none;
}

.chat-header-toggle i {
  font-size: 1rem;
}
.desktop-hidden {
  display: none !important;
}

.live-mobile-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease, opacity 0.2s ease;
  font-weight: 500;
  padding: 0.25rem 0;
  line-height: 1;
}

.live-mobile-link:hover {
  opacity: 0.8;
}

.live-mobile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  display: block;
}

.live-mobile-dot.is-live {
  background: #ff4c4c;
  box-shadow: 0 0 8px rgba(255, 76, 76, 0.8);
  animation: livePulse 1.6s ease-in-out infinite;
}

.live-mobile-text {
  display: inline-block;
  line-height: 1;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(193, 116, 255, 0.5);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 90%, rgba(193, 116, 255, 0.15) 10%),
    color-mix(in srgb, var(--surface) 85%, rgba(137, 69, 255, 0.2) 15%)
  );
  box-shadow: 0 4px 15px rgba(193, 116, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.icon-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(193, 116, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.icon-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.5), 0 0 20px rgba(193, 116, 255, 0.3);
  border-color: var(--accent-neon);
}

.icon-button:hover::before {
  opacity: 1;
}

.icon-button:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 3px;
}

.icon-button:active {
  transform: translateY(-2px) scale(1.02);
}

.icon-button i {
  font-size: 1rem;
  line-height: 1;
}

.profile {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 7vw, 6rem);
  width: 100%;
  box-sizing: border-box;
}

.profile-layout {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-height: 100%;
}

.profile-text h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 50%, var(--accent-neon) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 12px 40px var(--accent-neon-glow));
}

.profile-text p {
  margin-bottom: 0.8rem;
  max-width: 100%;
  line-height: 1.6;
  font-size: 0.95rem;
}

.profile-text .lede {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-neon);
  background: linear-gradient(90deg, rgba(193, 116, 255, 0.05), transparent);
  padding-block: 0.5rem;
  border-radius: 0 8px 8px 0;
}

.profile-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.profile-cards::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(193, 116, 255, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.profile-cards .info-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.profile-cards .info-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(193, 116, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-card {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 90%, rgba(193, 116, 255, 0.08) 10%), 
    color-mix(in srgb, var(--surface) 95%, rgba(137, 69, 255, 0.05) 5%)
  );
  border: 1px solid color-mix(in srgb, var(--border) 60%, rgba(193, 116, 255, 0.5) 40%);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(193, 116, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
  opacity: 0.5;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent-neon) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.info-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.info-card li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.info-card a {
  color: var(--accent-neon);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.info-card a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.info-card a:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Social links shouldn't inherit underline */
.social-links a:hover {
  text-decoration: none;
}

.social-links {
  display: grid;
  gap: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-neon);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.social-links a i {
  transition: transform 0.3s ease;
  color: var(--accent-neon);
}

.social-links a:hover {
  transform: translateX(6px) scale(1.02);
  background: var(--accent-neon-soft);
  text-decoration: none;
}

.social-links a:hover i {
  transform: scale(1.1);
  color: #ff74d4;
}

.social-links a:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

.site-footer {
  text-align: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer p {
  margin: 0.15rem 0;
  line-height: 1.5;
}

.site-footer a {
  color: var(--accent-neon);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ff74d4;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-on-load,
  .tab-panel.active,
  .live-popup.is-live,
  .live-mobile-dot.is-live,
  .live-popup .dot.is-live,
  .loader-ring,
  .loader-stars,
  .loader-glow,
  .loader-orbit,
  .loader-orbit span {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
  }
}

@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .card-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .profile-text {
    max-width: 700px;
    margin-inline: auto;
  }
  
  .profile-cards {
    max-width: 600px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 0.75rem;
  }
  
  .header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    min-height: 44px;
  }
  
  .logo {
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .live-mobile-link {
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.85rem;
  }
  
  .header-actions {
    width: auto;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 0.4rem;
  }
  
  .header-actions .icon-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .header-actions .theme-toggle {
    order: 2;
  }
  
  .header-actions .chat-header-toggle {
    order: 1;
  }
  
  .chat-header-toggle {
    display: inline-flex;
  }
  
  .desktop-hidden {
    display: inline-flex !important;
  }
  
  .chat-toggle {
    display: none;
  }

  .profile-layout {
    gap: 1.5rem;
  }

  .card-tabs {
    justify-content: center;
  }

  .live-popup {
    display: none !important;
  }

  .profile {
    padding-top: 1.5rem;
  }

  .chat-toggle {
    left: 1rem;
    bottom: 1rem;
  }

  .chat-panel {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    touch-action: manipulation;
  }
  
  .icon-button {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
  
  .section {
    padding-inline: 1.25rem;
  }
  
  .profile-text h1 {
    font-size: clamp(1.9rem, 5vw, 2.4rem);
    line-height: 1.3;
  }
  
  /* Improve touch targets */
  .tab-button {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  .social-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 0.5rem;
  }
  
  .header-bar {
    gap: 0.4rem;
  }
  
  .logo {
    font-size: 0.85rem;
    letter-spacing: 0.45em;
  }
  
  .live-mobile-link {
    font-size: 0.8rem;
  }
  
  .header-actions {
    gap: 0.35rem;
  }
  
  .header-actions .icon-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  
  .card-tabs {
    flex-direction: column;
    border-radius: 10px;
    padding: 0.5rem;
  }
  
  .tab-button {
    width: 100%;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    padding: 0.55rem 0.8rem;
  }
  
  .info-card {
    padding: 1.25rem;
  }
  
  .profile-text h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.2rem);
    line-height: 1.25;
  }
  
  .profile-text p {
    font-size: 0.9rem;
  }
  
  .eyebrow {
    font-size: 0.68rem;
  }
  
  .logo {
    font-size: 1rem;
    letter-spacing: 0.65em;
  }
  
  .icon-button {
    width: 38px;
    height: 38px;
  }
  
  .icon-button i {
    font-size: 0.9rem;
  }
  
  .profile-text p {
    font-size: 0.95rem;
  }
}
.subscribe-card .subscribe-box {
  display: grid;
  gap: 0.6rem;
}

.subscribe-card label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.subscribe-card input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.subscribe-card input:focus {
  outline: none;
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 3px rgba(193, 116, 255, 0.15);
  background: var(--surface);
}

.subscribe-card input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.subscribe-inline-status {
  font-size: 0.75rem;
  color: var(--accent);
  min-height: 1em;
}
.card-tabs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, var(--accent-neon-soft) 30%);
  background: linear-gradient(145deg, var(--surface-muted), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.tab-button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.tab-button:hover {
  background: rgba(193, 116, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.tab-button:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

.tab-button.active {
  background: linear-gradient(135deg, #c174ff 0%, #8945ff 50%, #b05dff 100%);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(193, 116, 255, 0.5);
  box-shadow: 
    0 8px 25px rgba(193, 116, 255, 0.5),
    0 4px 12px rgba(137, 69, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

[data-theme='light'] .tab-button.active {
  background: linear-gradient(135deg, #c174ff, #e3c0ff);
  color: #1f1030;
  text-shadow: none;
  border-color: rgba(193, 116, 255, 0.6);
  box-shadow: 
    0 8px 25px rgba(193, 116, 255, 0.35),
    0 4px 12px rgba(137, 69, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme='light'] .event-link {
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.12), rgba(137, 69, 255, 0.06));
  border-color: rgba(193, 116, 255, 0.35);
}

[data-theme='light'] .event-link:hover {
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.18), rgba(137, 69, 255, 0.1));
  border-color: var(--accent-neon);
}

[data-theme='light'] .collab-card {
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.12), rgba(137, 69, 255, 0.06));
  border-color: rgba(193, 116, 255, 0.35);
}

[data-theme='light'] .collab-card:hover {
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.18), rgba(137, 69, 255, 0.1));
  border-color: var(--accent-neon);
}

[data-theme='light'] .upcoming-event-card {
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.12), rgba(137, 69, 255, 0.06));
  border-color: rgba(193, 116, 255, 0.35);
}

[data-theme='light'] .upcoming-event-card:hover {
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.18), rgba(137, 69, 255, 0.1));
  border-color: var(--accent-neon);
}

[data-theme='light'] .carousel-btn {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 95%, rgba(193, 116, 255, 0.2) 5%),
    color-mix(in srgb, var(--surface) 90%, rgba(137, 69, 255, 0.25) 10%)
  );
  box-shadow: 0 4px 15px rgba(193, 116, 255, 0.2);
}

[data-theme='light'] .carousel-btn:hover {
  background: linear-gradient(135deg, #c174ff, #e3c0ff);
  color: #1f1030;
}

.tab-panels {
  margin-top: 1rem;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel {
  min-height: 190px;
  transition: transform 0.2s ease;
}

.tab-panel.active {
  animation: tabPanelReveal 0.45s ease;
}

/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 1.5rem 2.5rem;
  min-height: 160px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  height: 100%;
  align-items: stretch;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  display: flex;
}

.carousel-slide .event-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  height: 100%;
}

.carousel-slide .collab-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
  height: 100%;
}

.event-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.08), rgba(137, 69, 255, 0.04));
  border: 1px solid rgba(193, 116, 255, 0.3);
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
}

.event-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(193, 116, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.event-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent-neon);
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.3);
}

.event-link:hover::before {
  left: 100%;
}

.event-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
  line-height: 1.4;
  text-decoration: none !important;
}

.event-id {
  font-size: 0.85rem;
  color: var(--accent-neon);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  font-weight: 500;
  text-decoration: none !important;
}

/* Collaboration Cards */
.collab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 1.5rem 1.2rem;
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.08), rgba(137, 69, 255, 0.04));
  border: 1px solid rgba(193, 116, 255, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 200px;
  justify-content: center;
  cursor: pointer;
}

.collab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(193, 116, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.collab-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-neon);
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.3);
}

.collab-card:hover::before {
  left: 100%;
}

.collab-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c174ff, #8945ff);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(193, 116, 255, 0.4);
}

.collab-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.collab-description {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Upcoming Events */
.upcoming-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.upcoming-events::-webkit-scrollbar {
  width: 6px;
}

.upcoming-events::-webkit-scrollbar-track {
  background: var(--surface-muted);
  border-radius: 10px;
}

.upcoming-events::-webkit-scrollbar-thumb {
  background: var(--accent-neon);
  border-radius: 10px;
}

.upcoming-events::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}

.upcoming-event-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(193, 116, 255, 0.08), rgba(137, 69, 255, 0.04));
  border: 1px solid rgba(193, 116, 255, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upcoming-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(193, 116, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.upcoming-event-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-neon);
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.3);
}

.upcoming-event-card:hover::before {
  left: 100%;
}

.upcoming-event-card.upcoming-event-tba {
  opacity: 0.7;
  border-style: dashed;
}

.upcoming-event-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.upcoming-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.5rem;
  background: linear-gradient(135deg, #c174ff, #8945ff);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(193, 116, 255, 0.3);
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.upcoming-event-info {
  flex: 1;
}

.upcoming-event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}

.upcoming-event-venue {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.upcoming-event-venue i {
  color: var(--accent-neon);
  font-size: 0.8rem;
}

.upcoming-event-description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.upcoming-event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(193, 116, 255, 0.2);
}

.upcoming-event-footer a {
  text-decoration: none !important;
}

.upcoming-event-time {
  font-size: 0.85rem;
  color: var(--accent-neon);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.upcoming-event-time i {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .upcoming-events {
    max-height: 400px;
  }
  
  .upcoming-event-card {
    padding: 1rem;
  }
  
  .upcoming-event-date {
    min-width: 50px;
    padding: 0.4rem;
  }
  
  .date-day {
    font-size: 1.3rem;
  }
  
  .date-month {
    font-size: 0.7rem;
  }
  
  .upcoming-event-title {
    font-size: 1rem;
  }
  
  .upcoming-event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(193, 116, 255, 0.5);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 90%, rgba(193, 116, 255, 0.15) 10%),
    color-mix(in srgb, var(--surface) 85%, rgba(137, 69, 255, 0.2) 15%)
  );
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-btn i {
  font-size: 0.9rem;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #c174ff, #8945ff);
  border-color: var(--accent-neon);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.6);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 3px;
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-bottom: 0.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  opacity: 0.5;
}

.carousel-dot.active {
  background: var(--accent-neon);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(193, 116, 255, 0.7);
  opacity: 1;
}

.carousel-dot:hover {
  background: var(--accent-neon);
  transform: scale(1.2);
  opacity: 1;
}

@media (max-width: 640px) {
  .carousel {
    padding: 1rem 2rem;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn i {
    font-size: 0.8rem;
  }
  
  .event-link {
    padding: 1rem 1.2rem;
  }
  
  .event-name {
    font-size: 1rem;
  }
  
  .event-id {
    font-size: 0.8rem;
  }
  
  .collab-card {
    padding: 1.2rem 1rem;
  }
  
  .collab-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .collab-name {
    font-size: 1rem;
  }
  
  .collab-description {
    font-size: 0.8rem;
  }
}

/* Collaboration Modal */
.collab-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  will-change: contents;
}

.collab-modal:not([hidden]) {
  display: flex;
}

.collab-modal[hidden] {
  display: none;
}

.collab-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
  will-change: opacity;
}

[data-theme='light'] .collab-modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.collab-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  will-change: transform, opacity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-neon) var(--surface-muted);
}

.collab-modal-content::-webkit-scrollbar {
  width: 8px;
}

.collab-modal-content::-webkit-scrollbar-track {
  background: var(--surface-muted);
  border-radius: 10px;
}

.collab-modal-content::-webkit-scrollbar-thumb {
  background: var(--accent-neon);
  border-radius: 10px;
  border: 2px solid var(--surface);
}

.collab-modal-content::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent-neon) 80%, white 20%);
}

[data-theme='light'] .collab-modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-color: rgba(193, 116, 255, 0.25);
}

.collab-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.collab-modal-close:hover {
  background: var(--accent-neon);
  color: white;
  transform: rotate(90deg);
}

.collab-modal-close:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

.collab-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.collab-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c174ff, #8945ff);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(193, 116, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.collab-modal-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-align: center;
}

.collab-modal-body {
  padding: 2rem;
  color: var(--text);
  line-height: 1.7;
}

.collab-modal-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-neon);
  margin: 1.5rem 0 0.8rem;
}

.collab-modal-body h3:first-child {
  margin-top: 0;
}

.collab-modal-body p {
  margin: 0.8rem 0;
  color: var(--text);
}

.collab-modal-body ul {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
  color: var(--muted);
}

.collab-modal-body li {
  margin: 0.5rem 0;
}

.collab-modal-body strong {
  color: var(--accent-neon);
  font-weight: 600;
}

.collab-modal-body a {
  color: var(--accent-neon);
  text-decoration: none;
  transition: color 0.2s ease;
}

.collab-modal-body a:hover {
  color: #ff74d4;
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .collab-modal-content {
    max-width: 95vw;
  }
  
  .collab-modal-header {
    padding: 2rem 1.5rem 1.2rem;
  }
  
  .collab-modal-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .collab-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .collab-modal-body {
    padding: 1.5rem;
  }
}
