
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

*, ::after, ::before { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --space-0:   #050915;
  --space-1:   #08101F;
  --space-2:   #0C1024;
  --space-3:   #10162D;
  --space-4:   #141a38;
  --space-5:   #182046;
  --space-6:   #1e2a56;

  --border-0:  rgba(184,201,255,0.05);
  --border-1:  rgba(184,201,255,0.09);
  --border-2:  rgba(184,201,255,0.15);

  --blue:      #2E55FF;
  --blue-2:    #5E7EFF;
  --blue-3:    #89A5FF;
  --blue-4:    #C9D2F8;
  --blue-dim:  rgba(46,85,255,0.12);
  --blue-ring: rgba(94,126,255,0.3);
  --blue-glow: rgba(94,126,255,0.2);

  --deep:      #1936C8;
  --deep-dim:  rgba(25,54,200,0.14);

  --cyan:      #89A5FF;
  --cyan-dim:  rgba(137,165,255,0.1);

  --green:     #17c9a0;
  --green-2:   #4ee0bf;
  --green-dim: rgba(23,201,160,0.12);

  --red:       #ff5c7a;
  --red-dim:   rgba(255,92,122,0.1);

  --amber:     #ffb347;
  --amber-dim: rgba(255,179,71,0.1);

  --text-0:    #EAF2FF;
  --text-1:    #8496c9;
  --text-2:    #384573;

  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;

  --r-sm:  4px;
  --r:     8px;
  --r-lg:  12px;
  --r-xl:  18px;
  --r-2xl: 24px;

  --ease:      cubic-bezier(0.16,1,0.3,1);
  --ease-out:  cubic-bezier(0,0,0.2,1);

  --sidebar-w: 248px;
  --topbar-h:  52px;
}

html, body { height: 100%; background: var(--space-0); color: var(--text-0); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; font-size: 14px; overflow-x: hidden; }

.page { min-height: 100vh; }
.hidden { display: none !important; }
.page.hidden { display: none !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--space-5); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--space-6); }

#landing {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(46,85,255,0.22) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 5% 80%, rgba(25,54,200,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 40% 30% at 90% 90%, rgba(137,165,255,0.08) 0%, transparent 60%);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-band {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraFloat 14s ease-in-out infinite;
}

.aurora-band:nth-child(1) {
  width: 700px; height: 300px;
  top: -80px; left: 20%;
  background: linear-gradient(180deg, rgba(46,85,255,0.18), transparent);
  animation-delay: 0s;
}

.aurora-band:nth-child(2) {
  width: 500px; height: 200px;
  top: -40px; left: 50%;
  background: linear-gradient(180deg, rgba(25,54,200,0.12), transparent);
  animation-delay: -5s;
  animation-duration: 18s;
}

.aurora-band:nth-child(3) {
  width: 400px; height: 180px;
  top: -20px; left: 5%;
  background: linear-gradient(180deg, rgba(137,165,255,0.09), transparent);
  animation-delay: -9s;
  animation-duration: 22s;
}

@keyframes auroraFloat {
  0%,100% { transform: translateX(0) scaleY(1); opacity: 1; }
  33%      { transform: translateX(60px) scaleY(1.15); opacity: 0.7; }
  66%      { transform: translateX(-40px) scaleY(0.9); opacity: 0.9; }
}

.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  cursor: default;
}

.logo-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(46,85,255,0.28), rgba(25,54,200,0.16));
  border: 1px solid rgba(94,126,255,0.4);
  border-radius: var(--r-lg);
  padding: 6px;
  box-shadow: 0 0 20px rgba(46,85,255,0.2);
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-icon-sm { width: 30px; height: 30px; padding: 5px; border-radius: var(--r); }
.logo-icon-sm svg { width: 18px; height: 18px; }

.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.5px;
}

.logo-dot { color: var(--blue-2); }

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r);
  background: var(--space-3);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: var(--space-5);
  border-color: var(--blue-ring);
  color: var(--text-0);
  box-shadow: 0 0 20px rgba(46,85,255,0.15);
}

.hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 80px;
  animation: heroIn 1s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-shield {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 36px;
  animation: shieldIn 1s var(--ease) 0.1s both;
}

@keyframes shieldIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-shield-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(46,85,255,0.45) 0%, transparent 65%);
  border-radius: 50%;
  animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.2); opacity: 1; }
}

.hero-shield-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(94,126,255,0.3);
  border-radius: 50%;
  animation: ringExpand 3s ease-in-out infinite;
}

.hero-shield-ring-2 {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(94,126,255,0.12);
  border-radius: 50%;
  animation: ringExpand 3s ease-in-out infinite 0.5s;
}

@keyframes ringExpand {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%     { transform: scale(1.05); opacity: 1; }
}

.hero-shield-icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,85,255,0.28), rgba(25,54,200,0.2));
  border: 1px solid rgba(94,126,255,0.45);
  border-radius: 28px;
  box-shadow: 0 0 40px rgba(46,85,255,0.3), inset 0 1px 0 rgba(234,242,255,0.1);
}

.hero-shield-icon svg { width: 48px; height: 48px; color: var(--blue-2); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--blue-2);
  margin-bottom: 22px;
  opacity: 0.8;
  animation: heroIn 1s var(--ease) 0.15s both;
}

.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.3; transform: scale(0.6); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -3px;
  color: var(--text-0);
  margin-bottom: 18px;
  animation: heroIn 1s var(--ease) 0.2s both;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #2E55FF 0%, #5E7EFF 35%, #89A5FF 65%, #C9D2F8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-1);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 400;
  animation: heroIn 1s var(--ease) 0.25s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1936C8, #2E55FF, #5E7EFF);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 0 0 1px rgba(234,242,255,0.12) inset, 0 6px 32px rgba(46,85,255,0.55);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  animation: heroIn 1s var(--ease) 0.3s both;
  letter-spacing: -0.2px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(234,242,255,0.16), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(234,242,255,0.16) inset, 0 10px 48px rgba(46,85,255,0.7);
}

.btn-primary:hover::before { left: 100%; }
.btn-arrow { transition: transform 0.2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.quick-status {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(8,16,31,0.82);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  padding: 8px 4px;
  margin-bottom: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(46,85,255,0.09) inset;
  animation: heroIn 1.1s var(--ease) 0.35s both;
}

.qs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 20px;
  white-space: nowrap;
}

.qs-icon { display: flex; align-items: center; color: var(--blue-2); opacity: 0.75; flex-shrink: 0; }
.qs-label { font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: 0.3px; }

.qs-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  min-width: 28px;
  display: inline-block;
  transition: color 0.2s ease;
}

.qs-divider {
  width: 1px; height: 28px;
  background: var(--border-1);
  flex-shrink: 0;
}

@keyframes qsPulse {
  0%   { color: var(--text-0); text-shadow: none; }
  30%  { color: var(--blue-2); text-shadow: 0 0 14px rgba(94,126,255,0.75); }
  100% { color: var(--text-0); text-shadow: none; }
}

.qs-value.qs-pulse { animation: qsPulse 0.9s var(--ease) forwards; }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 520px;
  animation: heroIn 1.2s var(--ease) 0.4s both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(46,85,255,0.08);
  border: 1px solid rgba(94,126,255,0.18);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.pill:hover {
  border-color: var(--blue-ring);
  color: var(--blue-3);
  background: var(--blue-dim);
  box-shadow: 0 0 16px rgba(46,85,255,0.12);
}

.pill svg { color: var(--blue-2); flex-shrink: 0; }

.landing-footer {
  position: relative;
  z-index: 5;
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

#dashGridCanvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

#app {
  display: flex;
  height: 100vh;
  position: relative;
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: rgba(5,9,21,0.97);
  border-right: 1px solid var(--border-0);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s var(--ease);
  backdrop-filter: blur(16px);
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: -1px; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(46,85,255,0.2) 30%, rgba(46,85,255,0.1) 70%, transparent);
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-0);
  flex-shrink: 0;
}

.sidebar-close {
  display: none;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: none; border: none;
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-close:hover { color: var(--text-0); background: var(--space-4); }

.sidebar-nav {
  position: relative;
  flex: 1;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--text-2);
  padding: 16px 16px 6px;
  font-family: var(--mono);
  text-transform: uppercase;
  user-select: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin: 1px 6px;
  width: calc(100% - 12px);
  border-radius: var(--r);
  background: none; border: 1px solid transparent;
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(94,126,255,0.06);
  color: var(--text-0);
  border-color: transparent;
}

.nav-item.active {
  background: rgba(46,85,255,0.14);
  color: var(--blue-3);
  border-color: rgba(94,126,255,0.25);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--blue);
}

.nav-item.active .nav-icon { color: var(--blue-2); }

.nav-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.nav-item:hover .nav-icon { color: var(--text-1); }

.sidebar-footer {
  border-top: 1px solid var(--border-0);
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(3,7,17,0.98);
  flex-shrink: 0;
  position: relative;
}

.sidebar-footer-avatar-wrap { position: relative; flex-shrink: 0; }

.sidebar-footer-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--border-1);
}

.sidebar-footer-status-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  background: var(--green);
  border: 2px solid var(--space-1);
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 6px rgba(23,201,160,0.65);
}

.sidebar-footer-info { flex: 1; min-width: 0; }

.sidebar-footer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-settings-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  border-radius: var(--r);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-settings-btn:hover { color: var(--text-0); background: var(--space-4); }

.sidebar-settings-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 12px; right: 12px;
  background: var(--space-4);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(46,85,255,0.09) inset;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transform-origin: bottom center;
  transition: all 0.18s var(--ease);
  z-index: 200;
}

.sidebar-settings-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.dropdown-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  color: var(--red);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease;
  cursor: pointer;
}

.dropdown-logout:hover { background: var(--red-dim); }

.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background: none;
  position: relative;
  z-index: 1;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(3,7,17,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.topbar-guild {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.3px;
}

#topbarGuildName { color: var(--text-0); }

.topbar-guild-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-1);
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar-link {
  padding: 5px 13px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.topbar-link:hover {
  color: var(--text-0);
  background: rgba(94,126,255,0.06);
  border-color: var(--border-1);
}

.content {
  flex: 1;
  padding: 36px 36px;
  overflow-y: auto;
}

.section { display: none; }

.section.active {
  display: block;
  animation: sectionIn 0.4s var(--ease) both;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header { margin-bottom: 32px; }

.section-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.section-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(46,85,255,0.2), rgba(25,54,200,0.1));
  border: 1px solid rgba(94,126,255,0.3);
  border-radius: var(--r-lg);
  color: var(--blue-2);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 20px rgba(46,85,255,0.12);
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--text-0);
  margin-bottom: 4px;
  line-height: 1.2;
}

.section-sub { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.section-sub strong { color: var(--text-1); font-weight: 600; }

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}

.guild-card {
  background: rgba(10,15,32,0.7);
  border: 1px solid var(--border-0);
  border-radius: var(--r-xl);
  padding: 22px 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.guild-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(46,85,255,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guild-card:hover {
  border-color: rgba(94,126,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(46,85,255,0.18);
}

.guild-card:hover::before { opacity: 1; }

.guild-card.bot-absent {
  border-style: dashed;
  border-color: var(--border-1);
  opacity: 0.6;
}

.guild-card.bot-absent:hover {
  opacity: 0.9;
  border-style: dashed;
  border-color: rgba(94,126,255,0.35);
}

.guild-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--space-4);
  border: 2px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-2);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease;
}

.guild-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.guild-card:hover .guild-icon { border-color: rgba(94,126,255,0.45); }

.guild-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  position: relative; z-index: 1;
  line-height: 1.4;
  word-break: break-word;
}

.guild-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative; z-index: 1;
  font-family: var(--mono);
  text-transform: uppercase;
}

.guild-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.guild-status.online  { background: var(--green-dim); color: var(--green-2); box-shadow: 0 0 10px rgba(23,201,160,0.12); }
.guild-status.add-bot { background: var(--blue-dim); color: var(--blue-2); }

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 20px;
  color: var(--text-2);
  grid-column: 1 / -1;
  font-size: 13px;
}

.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border-1);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  box-shadow: 0 0 12px rgba(46,85,255,0.25);
}

@keyframes spin { to { transform: rotate(360deg); } }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(10,15,32,0.65);
  border: 1px solid var(--border-0);
  border-radius: var(--r-xl);
  padding: 22px;
  transition: border-color 0.2s ease;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,85,255,0.25), transparent);
}

.card:hover { border-color: var(--border-1); }

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.card-icon-box {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46,85,255,0.12);
  border: 1px solid rgba(94,126,255,0.25);
  border-radius: var(--r);
  color: var(--blue-2);
  flex-shrink: 0;
}

.card-title { font-size: 14px; font-weight: 700; color: var(--text-0); letter-spacing: -0.2px; }
.card-desc  { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.55; }

.toggle-card { padding: 20px 22px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-info {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  flex: 1;
}

.card-icon-inline {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-dim);
  border: 1px solid var(--blue-ring);
  border-radius: var(--r-sm);
  color: var(--blue-2);
  flex-shrink: 0;
  margin-top: 1px;
}

.toggle-title { font-size: 14px; font-weight: 700; color: var(--text-0); letter-spacing: -0.2px; }
.toggle-desc  { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.55; }

.toggle {
  position: relative;
  display: inline-block;
  width: 46px; height: 26px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute; inset: 0;
  background: var(--space-5);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.28s ease;
}

.slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px;
  top: 50%; transform: translateY(-50%);
  background: var(--text-2);
  border-radius: 50%;
  transition: all 0.28s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.toggle input:checked + .slider {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(46,85,255,0.55);
}

.toggle input:checked + .slider::before {
  transform: translateX(20px) translateY(-50%);
  background: #fff;
}

.level-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.level-btn {
  flex: 1;
  min-width: 68px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--space-4);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.level-btn:hover {
  border-color: var(--border-2);
  color: var(--text-1);
  background: var(--space-5);
}

.level-btn.active {
  background: var(--blue-dim);
  border-color: var(--blue-ring);
  color: var(--blue-3);
  box-shadow: 0 0 16px rgba(46,85,255,0.12);
}

.level-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.level-dot.low    { background: var(--green); box-shadow: 0 0 5px rgba(23,201,160,0.5); }
.level-dot.medium { background: var(--amber); box-shadow: 0 0 5px rgba(255,179,71,0.5); }
.level-dot.high   { background: #ff8a4a;      box-shadow: 0 0 5px rgba(255,138,74,0.5); }
.level-dot.ultra  { background: var(--red);   box-shadow: 0 0 6px rgba(255,92,122,0.7); }

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #1936C8, #2E55FF);
  border: 1px solid rgba(234,242,255,0.1);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 16px rgba(46,85,255,0.4);
  letter-spacing: -0.1px;
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(46,85,255,0.55);
}

.btn-save:active { transform: translateY(0); }

.btn-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--r);
  background: rgba(8,16,31,0.8);
  border: 1px solid var(--border-1);
  color: var(--text-0);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: all 0.18s ease;
}

.text-input::placeholder { color: var(--text-2); }

.text-input:focus {
  border-color: rgba(94,126,255,0.55);
  background: rgba(10,15,32,0.92);
  box-shadow: 0 0 0 3px rgba(46,85,255,0.12);
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  left: 13px;
  color: var(--text-2);
  pointer-events: none;
  z-index: 1;
}

.select-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border-radius: var(--r);
  background: rgba(8,16,31,0.8);
  border: 1px solid var(--border-1);
  color: var(--text-0);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all 0.18s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23384573' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.select-input option { background: #0C1024; }

.select-input:focus {
  border-color: rgba(94,126,255,0.55);
  box-shadow: 0 0 0 3px rgba(46,85,255,0.12);
}

.channel-select-wrap { margin-bottom: 20px; }

.wl-card { display: flex; flex-direction: column; }

.wl-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-add {
  padding: 10px 18px;
  border-radius: var(--r);
  background: rgba(23,201,160,0.1);
  border: 1px solid rgba(23,201,160,0.22);
  color: var(--green-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  letter-spacing: -0.1px;
}

.btn-add:hover {
  background: rgba(23,201,160,0.18);
  border-color: rgba(23,201,160,0.45);
  box-shadow: 0 0 16px rgba(23,201,160,0.12);
}

.btn-add:disabled { opacity: 0.45; cursor: not-allowed; }

.wl-list { display: flex; flex-direction: column; gap: 6px; }

.wl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r);
  background: rgba(8,16,31,0.6);
  border: 1px solid var(--border-0);
  transition: border-color 0.15s ease;
  animation: wlIn 0.25s var(--ease) both;
}

@keyframes wlIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wl-item:hover { border-color: var(--border-1); }

.wl-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-1);
  letter-spacing: 0.3px;
}

.wl-remove {
  background: none; border: none;
  color: var(--text-2);
  cursor: pointer;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  font-size: 13px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.wl-remove:hover { color: var(--red); background: var(--red-dim); }

.wl-empty {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  padding: 20px 0;
  font-family: var(--mono);
  letter-spacing: 0.3px;
  opacity: 0.7;
}

.logs-card .btn-save { margin-top: 0; }

.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--space-4);
  border: 1px solid var(--border-1);
  color: var(--text-0);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(46,85,255,0.1) inset;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: all 0.3s var(--ease);
  pointer-events: none;
  max-width: 340px;
  letter-spacing: -0.1px;
}

.toast.show  { transform: translateY(0) scale(1); opacity: 1; }
.toast.success { border-color: rgba(23,201,160,0.32); color: var(--green-2); background: rgba(23,201,160,0.08); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 20px rgba(23,201,160,0.1); }
.toast.error   { border-color: rgba(255,92,122,0.32);  color: var(--red);     background: rgba(255,92,122,0.08);  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 20px rgba(255,92,122,0.1); }

/* ============================================================
   RECOVERY SECTION
   ============================================================ */

@keyframes recoverySectionIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes recoveryGlow {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

@keyframes recIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* top bar: pill + toggle */
.recovery-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,15,32,0.72);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 18px 24px;
  margin-bottom: 22px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: recIn 0.4s var(--ease) 0.05s both;
}

.recovery-top-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,85,255,0.35), transparent);
}

.recovery-top-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(46,85,255,0.06), transparent);
  pointer-events: none;
}

/* status pill */
.recovery-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid var(--border-1);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.recovery-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.pill-enabled {
  background: var(--green-dim);
  border-color: rgba(23,201,160,0.28);
  color: var(--green-2);
  box-shadow: 0 0 16px rgba(23,201,160,0.08);
}

.pill-disabled {
  background: var(--space-4);
  border-color: var(--border-1);
  color: var(--text-2);
}

.dot-enabled {
  background: var(--green);
  box-shadow: 0 0 8px rgba(23,201,160,0.8);
  animation: dotPulse 2s ease-in-out infinite;
}

.dot-disabled { background: var(--text-2); }

.recovery-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.recovery-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.1px;
}

/* empty state */
.recovery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 72px 20px;
  color: var(--text-2);
  text-align: center;
  background: rgba(10,15,32,0.5);
  border: 1px dashed var(--border-1);
  border-radius: var(--r-xl);
  animation: recIn 0.4s var(--ease) 0.1s both;
}

.recovery-empty svg { opacity: 0.2; color: var(--blue-2); }

.recovery-empty p {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.recovery-empty span { font-size: 13px; color: var(--text-2); }

.recovery-empty code {
  background: var(--space-4);
  border: 1px solid var(--border-1);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-3);
}

/* guild card inside snapshot */
.recovery-guild-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(10,15,32,0.72);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: recIn 0.4s var(--ease) 0.08s both;
  transition: border-color 0.2s ease;
}

.recovery-guild-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,85,255,0.35), transparent);
}

.recovery-guild-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 0% 50%, rgba(46,85,255,0.07), transparent);
  pointer-events: none;
}

.recovery-guild-card:hover { border-color: var(--border-2); }

.recovery-guild-avatar-wrap { flex-shrink: 0; position: relative; z-index: 1; }

.recovery-guild-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  object-fit: cover;
  display: block;
  box-shadow: 0 0 28px rgba(46,85,255,0.18);
}

.recovery-guild-avatar-fallback {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46,85,255,0.3), rgba(25,54,200,0.18));
  border: 2px solid rgba(94,126,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-3);
  box-shadow: 0 0 28px rgba(46,85,255,0.15);
}

.recovery-guild-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.recovery-guild-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.recovery-guild-meta {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono);
  letter-spacing: 0.2px;
}

.recovery-guild-date {
  font-size: 11px;
  color: var(--text-2);
  opacity: 0.55;
  font-family: var(--mono);
}

/* stat row */
.recovery-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.recovery-stat-card {
  background: rgba(10,15,32,0.72);
  border: 1px solid var(--border-0);
  border-radius: var(--r-xl);
  padding: 22px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: recIn 0.4s var(--ease) both;
}

.recovery-stat-card:nth-child(1) { animation-delay: 0.1s; }
.recovery-stat-card:nth-child(2) { animation-delay: 0.15s; }
.recovery-stat-card:nth-child(3) { animation-delay: 0.2s; }

.recovery-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,85,255,0.3), transparent);
}

.recovery-stat-card::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(46,85,255,0.1), transparent 70%);
  pointer-events: none;
  animation: recoveryGlow 4s ease-in-out infinite;
}

.recovery-stat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(46,85,255,0.12);
}

.recovery-stat-icon {
  font-size: 20px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.recovery-stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -1.5px;
  line-height: 1;
  font-family: var(--mono);
  position: relative;
  z-index: 1;
}

.recovery-stat-label {
  font-size: 9px;
  color: var(--text-2);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
  font-family: var(--mono);
  position: relative;
  z-index: 1;
}

/* panels: roles + channels — side by side, no inner scroll wheel */
.recovery-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.recovery-panel-card {
  background: rgba(10,15,32,0.72);
  border: 1px solid var(--border-0);
  border-radius: var(--r-xl);
  padding: 20px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  animation: recIn 0.4s var(--ease) 0.25s both;
  transition: border-color 0.2s ease;
}

.recovery-panel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,85,255,0.25), transparent);
}

.recovery-panel-card:hover { border-color: var(--border-1); }

.recovery-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border-0);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-family: var(--mono);
}

.recovery-panel-head svg { color: var(--blue-2); }

/* role rows — accordion style matching existing dropdowns */
.rec-role-row {
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg);
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  animation: recIn 0.3s var(--ease) both;
}

.rec-role-row:hover { border-color: var(--border-1); }

.rec-role-row.expanded {
  border-color: var(--border-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.rec-role-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.rec-role-header:hover { background: rgba(94,126,255,0.04); }

.rec-role-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.rec-role-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.1px;
}

/* perm count badge — always green regardless of role color */
.rec-role-badge {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 100px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.3px;
  background: var(--green-dim);
  color: var(--green-2);
  border: 1px solid rgba(23,201,160,0.22);
}

.rec-role-chevron {
  color: var(--text-2);
  transition: transform 0.22s var(--ease);
  flex-shrink: 0;
}

.rec-role-row.expanded .rec-role-chevron { transform: rotate(180deg); }

/* perm tags inside expanded row */
.rec-role-perms {
  padding: 12px 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid var(--border-0);
  background: rgba(5,9,21,0.6);
}

.perm-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.perm-true {
  background: var(--green-dim);
  color: var(--green-2);
  border: 1px solid rgba(23,201,160,0.2);
}

.perm-false {
  background: rgba(255,255,255,0.02);
  color: var(--text-2);
  border: 1px solid var(--border-0);
}

/* channel tree */
.rec-category {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding: 10px 6px 4px;
  font-family: var(--mono);
}

.rec-category svg { color: var(--blue-2); opacity: 0.55; }

.rec-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text-1);
  border-radius: var(--r-sm);
  transition: all 0.12s ease;
}

.rec-channel:hover {
  background: rgba(94,126,255,0.05);
  color: var(--text-0);
}

.rec-tree-line {
  font-family: var(--mono);
  color: var(--text-2);
  font-size: 12px;
  width: 14px;
  flex-shrink: 0;
  opacity: 0.45;
}

.rec-channel svg { color: var(--text-2); flex-shrink: 0; }
.rec-channel-solo { padding-left: 6px; }

.rec-empty-note {
  font-size: 12px;
  color: var(--text-2);
  padding: 18px 0;
  text-align: center;
  font-family: var(--mono);
  opacity: 0.6;
  letter-spacing: 0.2px;
}


@media (max-width: 800px) {
  .top-nav  { padding: 18px 20px; }
  .hero     { padding: 32px 20px 60px; }
  .hero-title { letter-spacing: -2px; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 48px rgba(0,0,0,0.7); }
  .sidebar-close { display: flex; }

  .main-wrapper { margin-left: 0; }
  .hamburger    { display: flex; }

  .content       { padding: 20px 16px; }
  .cards-grid    { grid-template-columns: 1fr; }
  .wl-grid       { grid-template-columns: 1fr; }
  .guild-grid    { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .quick-status  { flex-direction: column; gap: 0; padding: 6px 4px; width: 100%; max-width: 320px; }
  .qs-divider    { width: 80%; height: 1px; margin: 2px auto; }
  .qs-item       { padding: 6px 16px; justify-content: center; }

  .recovery-panels      { grid-template-columns: 1fr; }
  .recovery-stats-row   { grid-template-columns: repeat(3, 1fr); }
  .recovery-guild-card  { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::after, ::before {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
/* ===================== Guild Profile v2 ===================== */

.gp-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: sectionIn 0.35s var(--ease);
}

.gp-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.gp-lock-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gp-lock.temporary {
  background: rgba(255,179,71,0.08);
  border: 1px solid rgba(255,179,71,0.22);
  color: var(--amber);
}
.gp-lock.temporary .gp-lock-icon { background: rgba(255,179,71,0.14); }

.gp-lock.permanent {
  background: rgba(255,92,122,0.08);
  border: 1px solid rgba(255,92,122,0.22);
  color: var(--red);
}
.gp-lock.permanent .gp-lock-icon { background: rgba(255,92,122,0.14); }

.gp-lock-title { font-size: 13px; font-weight: 700; }
.gp-lock-sub   { font-size: 11.5px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.gp-lock-timer { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --- Live Discord-style preview card --- */
.gp-preview-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #1e1f22;
  border: 1px solid var(--border-1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  max-width: 420px;
}

.gp-preview-banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #1936C8 0%, #2E55FF 60%, #5E7EFF 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-image 0.25s ease;
}

.gp-preview-body {
  padding: 0 18px 18px;
  position: relative;
}

.gp-preview-avatar-wrap {
  position: relative;
  margin-top: -32px;
  margin-bottom: 10px;
  width: 64px;
  height: 64px;
}

.gp-preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #1e1f22;
  background: var(--space-3);
  object-fit: cover;
  display: block;
}

.gp-preview-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #1e1f22;
}

.gp-preview-name { font-size: 16px; font-weight: 800; color: #f2f3f5; letter-spacing: -0.2px; }
.gp-preview-tag  { font-size: 12px; color: #949ba4; margin-top: 2px; font-family: var(--mono); }

/* --- Layout --- */
.gp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) { .gp-grid { grid-template-columns: 1fr; } }

.gp-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-field-label {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gp-field-label .gp-clear-mini {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
}
.gp-field-label .gp-clear-mini:hover { opacity: 1; text-decoration: underline; }
.gp-field-label .gp-clear-mini:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: none; }

/* --- Dropzone --- */
.gp-dropzone {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-2);
  background: rgba(8,16,31,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), transform 0.12s var(--ease-out);
  overflow: hidden;
}

.gp-dropzone.avatar { height: 150px; }
.gp-dropzone.banner { height: 130px; }

.gp-dropzone:hover {
  border-color: rgba(94,126,255,0.55);
  background: rgba(46,85,255,0.06);
}

.gp-dropzone.drag-over {
  border-color: var(--blue-2);
  background: rgba(46,85,255,0.12);
  box-shadow: 0 0 0 4px var(--blue-ring), inset 0 0 30px rgba(46,85,255,0.15);
  transform: scale(1.01);
}

.gp-dropzone.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.gp-dropzone.has-image {
  border-style: solid;
  border-color: var(--border-1);
}

.gp-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.gp-dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  pointer-events: none;
}

.gp-dropzone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(94,126,255,0.1);
  border: 1px solid rgba(94,126,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.gp-dropzone:hover .gp-dropzone-icon,
.gp-dropzone.drag-over .gp-dropzone-icon {
  background: rgba(94,126,255,0.2);
  transform: translateY(-2px);
}

.gp-dropzone-label { font-size: 12.5px; font-weight: 700; color: var(--text-1); letter-spacing: -0.1px; }
.gp-dropzone-sub   { font-size: 10.5px; font-family: var(--mono); color: var(--text-2); letter-spacing: 0.2px; }

.gp-dropzone-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gp-dropzone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.18s ease;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}
.gp-dropzone:hover .gp-dropzone-overlay { opacity: 1; }

.gp-dropzone-progress {
  position: absolute;
  inset: 0;
  background: rgba(5,9,21,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-3);
}

/* --- Nickname --- */
.gp-nickname-box {
  position: relative;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-1);
  background: rgba(8,16,31,0.7);
  padding: 14px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.gp-nickname-box:focus-within {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px var(--blue-ring);
}
.gp-nickname-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-0);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}
.gp-nickname-input::placeholder { color: var(--text-2); font-weight: 500; }
.gp-nickname-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-2);
}
.gp-nickname-count.warn { color: var(--amber); }
.gp-nickname-count.max  { color: var(--red); }

/* --- Actions --- */
.gp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.btn-save-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #1936C8, #2E55FF);
  border: 1px solid rgba(234,242,255,0.1);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 2px 16px rgba(46,85,255,0.4);
  letter-spacing: -0.1px;
}
.btn-save-profile:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(46,85,255,0.55); }
.btn-save-profile:active:not(:disabled) { transform: translateY(0); }
.btn-save-profile:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-save-profile.is-dirty { animation: gpPulseGlow 1.8s ease-in-out infinite; }

@keyframes gpPulseGlow {
  0%, 100% { box-shadow: 0 2px 16px rgba(46,85,255,0.4); }
  50%      { box-shadow: 0 2px 26px rgba(46,85,255,0.75); }
}

.btn-reset-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r);
  background: rgba(255,92,122,0.1);
  border: 1px solid rgba(255,92,122,0.28);
  color: var(--red);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  letter-spacing: -0.1px;
}
.btn-reset-all:hover:not(:disabled) { background: rgba(255,92,122,0.18); border-color: rgba(255,92,122,0.5); box-shadow: 0 4px 20px rgba(255,92,122,0.28); transform: translateY(-1px); }
.btn-reset-all:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.gp-strikes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,179,71,0.07);
  border: 1px solid rgba(255,179,71,0.18);
  font-size: 11px;
  font-family: var(--mono);
  color: var(--amber);
  letter-spacing: 0.2px;
  margin-left: auto;
  flex-shrink: 0;
}
.gp-strikes strong { color: #fff; }
.gp-strikes-dots { display: inline-flex; gap: 3px; }
.gp-strikes-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,179,71,0.25); }
.gp-strikes-dot.filled { background: var(--amber); box-shadow: 0 0 6px rgba(255,179,71,0.6); }

.gp-unsaved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-3);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(94,126,255,0.1);
  border: 1px solid rgba(94,126,255,0.25);
  animation: gpFadeIn 0.2s var(--ease-out);
}
.gp-unsaved-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-3); animation: dotPulse 1.4s ease-in-out infinite; }

@keyframes gpFadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

.gp-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.gp-spin { animation: spin 0.8s linear infinite; }