:root {
  --em-bg: #0c0a17;
  --em-panel: #161029;
  --em-frost: #b9a6ff;
  --em-ice: #8fd3f4;
  --em-text: #f1eefb;
  --em-muted: #a99fc4;
  --em-line: rgba(185, 166, 255, 0.18);
}

html {
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(185,166,255,.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 10%, rgba(143,211,244,.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(185,166,255,.08), transparent 50%),
    var(--em-bg) !important;
  background-attachment: fixed !important;
}
body {
  background: transparent !important;
  color: var(--em-text) !important;
  font-family: "Manrope", system-ui, -apple-system, sans-serif !important;
}

.sticky.top-0.z-30,
header.sticky,
[class*="sticky"][class*="top-0"] {
  background: rgba(12, 10, 23, 0.72) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  border-bottom: 1px solid var(--em-line) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.25) !important;
}

h1.text-3xl.font-bold,
h1.text-3xl {
  font-family: "Fraunces", "Manrope", serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  background: linear-gradient(110deg, #fff 20%, var(--em-frost) 55%, var(--em-ice) 100%);
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.text-muted-foreground { color: var(--em-muted) !important; }

.rounded-xl.border.bg-card,
[class*="rounded-xl"][class*="border"][class*="bg-card"] {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(155deg, rgba(185,166,255,.12) 0%, rgba(22,16,41,.92) 42%, rgba(12,10,23,.95) 100%) !important;
  border: 1px solid var(--em-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.rounded-xl.border.bg-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(185,166,255,.38) !important;
  box-shadow: 0 22px 50px -14px rgba(185,166,255,.22), 0 18px 40px -18px rgba(0,0,0,.5) !important;
}

.w-12.h-12.rounded-xl {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(185,166,255,.55), rgba(143,211,244,.45)) !important;
  box-shadow: 0 8px 20px rgba(185,166,255,.25) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  overflow: hidden !important;
}
.w-12.h-12.rounded-xl img.em-guild-icon {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

[class*="rounded-full"][class*="text-xs"][class*="font-medium"] {
  border: 1px solid rgba(185,166,255,.25) !important;
  background: rgba(185,166,255,.12) !important;
  color: var(--em-frost) !important;
}

.rounded-xl.border.bg-card a button,
.rounded-xl.border.bg-card button:not(:disabled) {
  border-radius: 12px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--em-frost), var(--em-ice)) !important;
  color: #160f2b !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(185,166,255,.28) !important;
}
.rounded-xl.border.bg-card button:disabled {
  opacity: .45 !important;
  background: rgba(185,166,255,.08) !important;
  color: var(--em-muted) !important;
}

input, textarea, select, .bg-input {
  background: rgba(12,10,23,.75) !important;
  border-color: var(--em-line) !important;
  color: var(--em-text) !important;
  border-radius: 12px !important;
}
input:focus, textarea:focus {
  border-color: rgba(185,166,255,.5) !important;
  box-shadow: 0 0 0 3px rgba(185,166,255,.15) !important;
}

.em-dash-search {
  width: 100%;
  max-width: 420px;
  height: 42px;
  padding: 0 14px 0 40px;
  border-radius: 12px;
  border: 1px solid var(--em-line);
  background: rgba(12,10,23,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a99fc4' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M12.5 12.5L16 16'/%3E%3C/svg%3E") 12px center no-repeat;
  color: var(--em-text);
  font: inherit;
  margin: 0 0 1.25rem;
  outline: none;
}
.em-dash-search:focus {
  border-color: rgba(185,166,255,.5);
  box-shadow: 0 0 0 3px rgba(185,166,255,.15);
}
.em-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.em-dash-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--em-line);
  background: rgba(185,166,255,.1);
  color: var(--em-frost);
}
.em-card-hidden { display: none !important; }