/* APEX – Neon Violet. Palette: ui-ux-pro-max "Gaming" (neon purple + rose) */
:root {
  --bg: #07050f;
  --bg-2: #0d0a1c;
  --surface: #14102a;
  --card: rgba(30, 24, 58, 0.55);
  --line: rgba(167, 139, 250, 0.18);
  --line-strong: rgba(192, 132, 252, 0.45);
  --primary: #7c3aed;
  --violet: #a78bfa;
  --neon: #c084fc;
  --magenta: #e879f9;
  --rose: #f43f5e;
  --cyan: #67e8f9;
  --text: #f1ecff;
  --muted: #a9a3c7;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 18px;
  --glow: 0 0 12px rgba(192, 132, 252, 0.6), 0 0 32px rgba(124, 58, 237, 0.45);
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--neon); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Körnung über allem für den Club-Look */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(124, 58, 237, 0.12); color: var(--text); font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform 0.2s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); border-color: var(--neon); background: rgba(124, 58, 237, 0.25); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  border: 0; background: linear-gradient(120deg, var(--primary), var(--magenta) 60%, var(--primary));
  background-size: 200% 100%; animation: shimmer 6s linear infinite;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}
.btn-primary:hover { box-shadow: 0 0 18px rgba(232, 121, 249, 0.8), 0 0 48px rgba(124, 58, 237, 0.6); }
.btn-discord { background: #5865f2; border: 0; }
.btn-discord:hover { background: #4752c4; box-shadow: 0 0 24px rgba(88, 101, 242, 0.7); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.1); }
.btn-danger:hover { border-color: var(--rose); box-shadow: 0 0 20px rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 5, 15, 0.72); backdrop-filter: blur(16px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  font: 900 1.5rem/1 var(--font-display); letter-spacing: 0.12em; color: var(--text); text-decoration: none;
  text-shadow: 0 0 8px var(--neon), 0 0 22px var(--primary);
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(167, 139, 250, 0.1); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--magenta));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--neon);
}
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); transition: transform 0.3s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; padding: 16px; margin: 0;
    background: rgba(7, 5, 15, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.4s var(--ease-out);
  }
  .nav-links a { padding: 14px; font-size: 1.1rem; }
  .nav.open .nav-links { transform: none; }
  .nav.open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-user .name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate; padding: 120px 16px 80px;
}
.aurora { position: absolute; inset: -20%; z-index: -3; filter: blur(90px); opacity: 0.85; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: 5%; top: 10%; background: #6d28d9; }
.aurora i:nth-child(2) { width: 45vw; height: 45vw; right: 0; top: 25%; background: #c026d3; animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 35vw; height: 35vw; left: 35%; bottom: 0; background: #4338ca; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, -6vh) scale(1.15); }
  100% { transform: translate(-6vw, 8vh) scale(0.9); }
}

.beams { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.beams::before, .beams::after {
  content: ''; position: absolute; top: -30%; width: 140vmax; height: 140vmax; left: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0 7deg, rgba(232, 121, 249, 0.16) 7deg 7.6deg, transparent 7.6deg 18deg);
  -webkit-mask: radial-gradient(circle at 50% 0, #000 0, transparent 60%); mask: radial-gradient(circle at 50% 0, #000 0, transparent 60%);
  transform-origin: 50% 0; animation: sweep 14s ease-in-out infinite alternate; translate: -50% 0;
}
.beams::after {
  background: repeating-conic-gradient(from 4deg, transparent 0 11deg, rgba(103, 232, 249, 0.1) 11deg 11.5deg, transparent 11.5deg 24deg);
  animation-duration: 19s; animation-direction: alternate-reverse;
}
@keyframes sweep { from { rotate: -14deg; } to { rotate: 14deg; } }

.floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -1;
  background-image:
    linear-gradient(rgba(192, 132, 252, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask: linear-gradient(to top, #000 10%, transparent 85%); mask: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 2.2s linear infinite;
}
@keyframes floor { to { background-position: 0 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(20, 16, 42, 0.6); backdrop-filter: blur(8px);
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }

.neon-title {
  margin: 18px 0 6px; font: 900 clamp(5rem, 21vw, 15rem)/0.9 var(--font-display); letter-spacing: 0.06em;
  color: #fbf7ff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--neon), 0 0 42px var(--primary), 0 0 90px var(--primary), 0 0 140px #c026d3;
  animation: flicker 7s infinite;
}
.neon-title span { display: inline-block; animation: rise 1.2s var(--ease-out) both; }
.neon-title span:nth-child(2) { animation-delay: 0.08s; }
.neon-title span:nth-child(3) { animation-delay: 0.16s; }
.neon-title span:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(0.9); filter: blur(12px); } }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.55; text-shadow: none; }
}
.tagline { font: 500 clamp(1.05rem, 2.6vw, 1.45rem)/1.4 var(--font-body); color: var(--muted); margin: 0 auto 32px; max-width: 34ch; }
.tagline strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.next-event {
  margin-top: 36px; display: inline-flex; gap: 12px; align-items: center; padding: 10px 18px; border-radius: 14px;
  background: rgba(20, 16, 42, 0.55); border: 1px solid var(--line); backdrop-filter: blur(10px); color: var(--muted); font-size: 0.95rem;
}
.next-event b { color: var(--text); }

.eq { display: flex; gap: 4px; height: 26px; align-items: flex-end; }
.eq i { width: 4px; border-radius: 2px; background: linear-gradient(var(--magenta), var(--primary)); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; } .eq i:nth-child(5) { animation-delay: -0.45s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--neon); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), rgba(232, 121, 249, 0.12), rgba(124, 58, 237, 0.15)); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { padding: 18px 28px; font: 700 clamp(1rem, 2.4vw, 1.5rem)/1 var(--font-display); letter-spacing: 0.08em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--violet); }
.marquee span:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; text-shadow: 0 0 14px var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.kicker { color: var(--magenta); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
h2 { margin: 0; font: 800 clamp(2.2rem, 6vw, 4rem)/1.02 var(--font-display); letter-spacing: -0.01em; }
h2 .grad, .grad { background: linear-gradient(90deg, var(--violet), var(--magenta), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); max-width: 52ch; margin: 0; }
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: 0.5; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Karten mit Maus-Spotlight */
.card {
  position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(14px); overflow: hidden; transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(192, 132, 252, 0.18), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 20px 60px -20px rgba(124, 58, 237, 0.6); }
.card:hover::before { opacity: 1; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 24px; }
.event-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 30%, #9333ea, transparent 55%), radial-gradient(circle at 80% 70%, #db2777, transparent 50%), #1a1033; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.card:hover .event-media img { transform: scale(1.06); }
.event-media .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 900 clamp(1.6rem, 5vw, 2.4rem)/1.05 var(--font-display); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.9); text-shadow: var(--glow); padding: 16px; text-align: center; overflow-wrap: anywhere; }
.date-badge {
  position: absolute; top: 14px; left: 14px; padding: 10px 14px; border-radius: 14px; text-align: center;
  background: rgba(7, 5, 15, 0.7); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); line-height: 1;
}
.date-badge b { display: block; font: 800 1.7rem/1 var(--font-display); color: #fff; text-shadow: 0 0 12px var(--neon); }
.date-badge small { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); }
.event-body { padding: 22px; display: grid; gap: 12px; }
.event-body h3 { margin: 0; font: 700 1.35rem/1.2 var(--font-display); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.92rem; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta svg { width: 16px; height: 16px; color: var(--neon); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--violet); background: rgba(124, 58, 237, 0.12); white-space: nowrap; }
.event-body p { margin: 0; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Karte ---------- */
.menu-section { background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.18), transparent 60%), var(--bg-2); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 8px; margin-bottom: 32px; scrollbar-width: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font-weight: 600; transition: all 0.25s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected='true'] { color: #fff; background: linear-gradient(120deg, var(--primary), #a21caf); border-color: transparent; box-shadow: 0 0 22px rgba(168, 85, 247, 0.55); }
.menu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px 48px; }
.menu-item { padding: 18px 4px; border-bottom: 1px solid var(--line); animation: fadeUp 0.5s var(--ease-out) both; animation-delay: var(--d, 0s); }
.menu-item .row { display: flex; align-items: baseline; gap: 12px; }
.menu-item h3 { margin: 0; font: 600 1.1rem/1.3 var(--font-body); }
.menu-item .leader { flex: 1; border-bottom: 2px dotted rgba(167, 139, 250, 0.3); translate: 0 -5px; min-width: 20px; }
.menu-item .price { font: 700 1.1rem/1 var(--font-display); color: var(--neon); text-shadow: 0 0 10px rgba(192, 132, 252, 0.6); white-space: nowrap; }
.menu-item p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.info-grid .card { padding: 28px; }
.info-grid svg { width: 32px; height: 32px; color: var(--neon); filter: drop-shadow(0 0 8px var(--primary)); }
.info-grid h3 { margin: 16px 0 6px; font: 700 1.1rem/1.2 var(--font-display); }
.info-grid p { margin: 0; color: var(--muted); }

/* ---------- Bewerbung ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.job { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.job h3 { margin: 0; font: 700 1.2rem/1.25 var(--font-display); }
.job p { margin: 0; color: var(--muted); flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-neu { color: var(--cyan); }
.status-in-prüfung { color: var(--warn); }
.status-gespräch { color: var(--magenta); }
.status-angenommen { color: var(--ok); }
.status-abgelehnt { color: var(--rose); }
.my-apps { display: grid; gap: 14px; margin-top: 24px; }
.my-app { padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.my-app .grow { flex: 1; min-width: 200px; }
.my-app h3 { margin: 0; font: 600 1.05rem/1.3 var(--font-body); }
.my-app small { color: var(--muted); }

/* ---------- Dialoge & Formulare ---------- */
dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong);
  border-radius: 22px; background: linear-gradient(180deg, #17112f, #0d0a1c); color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 40px 120px -20px rgba(124, 58, 237, 0.7);
}
dialog[open] { animation: pop 0.35s var(--ease-out); }
dialog::backdrop { background: rgba(4, 2, 10, 0.75); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.3rem; }
.dlg-body { padding: 24px; display: grid; gap: 16px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--neon); box-shadow: var(--glow); }
.icon-btn svg { width: 20px; height: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .hint { color: var(--muted); font-size: 0.82rem; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(7, 5, 15, 0.6); transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.25); }
input[type='checkbox'] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.form-error { color: #fda4af; font-size: 0.92rem; min-height: 1em; margin: 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; }
.chat-log { display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; height: min(52dvh, 420px); background: rgba(7, 5, 15, 0.45); border-radius: 14px; border: 1px solid var(--line); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(167, 139, 250, 0.12); border: 1px solid var(--line); animation: fadeUp 0.3s var(--ease-out); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(192, 38, 211, 0.4)); border-color: transparent; }
.msg small { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); }
.msg.mine small { color: rgba(255, 255, 255, 0.7); }
.chat-form { display: flex; gap: 10px; margin-top: 12px; }
.chat-form textarea { min-height: 46px; height: 46px; resize: none; scrollbar-width: none; }
.chat-form .btn { padding: 0 16px; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; font-size: 0.92rem; }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: 14px; background: #1b1438; border: 1px solid var(--line-strong); box-shadow: var(--glow); animation: pop 0.3s var(--ease-out); }
.toast.error { border-color: var(--rose); box-shadow: 0 0 24px rgba(244, 63, 94, 0.45); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }

/* ---------- Admin ---------- */
.admin-shell { padding: 104px 0 60px; min-height: 100vh; background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.2), transparent 50%); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 28px; }
.panel { padding: 24px; }
.panel.card:hover { transform: none; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table tr:hover td { background: rgba(167, 139, 250, 0.05); }
.table td.right { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.apps-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .apps-layout { grid-template-columns: 1fr; } }
.app-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 75vh; overflow-y: auto; padding: 4px; }
.app-item { text-align: left; display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(7, 5, 15, 0.4); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.app-item:hover { border-color: var(--line-strong); }
.app-item[aria-current='true'] { border-color: var(--neon); background: rgba(124, 58, 237, 0.18); box-shadow: var(--glow); }
.app-item .grow { flex: 1; min-width: 0; }
.app-item b, .app-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-item small { color: var(--muted); }
.unread { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); flex: none; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.detail-grid div { padding: 12px 14px; border-radius: 12px; background: rgba(7, 5, 15, 0.45); border: 1px solid var(--line); }
.detail-grid small { display: block; color: var(--muted); font-size: 0.78rem; }
.about { white-space: pre-wrap; padding: 16px; border-radius: 12px; background: rgba(7, 5, 15, 0.45); border: 1px solid var(--line); margin: 0 0 20px; }
.gate { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
