@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

/* Controlly — direction visuelle WayBackDS */
:root {
  --bg-solid: #020617;
  --bg-darker: #071126;
  --card: rgba(2, 6, 23, 0.76);
  --card-solid: #0b1731;
  --card-border: rgba(255, 255, 255, 0.1);
  --foreground: #f8fafc;
  --accent: #2563eb;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.24);
  --accent-400: #60a5fa;
  --accent-500: #3b82f6;
  --accent-600: #2563eb;
  --accent-700: #1d4ed8;
  --accent-800: #1e3a8a;
  --muted: #94a3b8;
  --muted2: #64748b;
  --glass: rgba(2, 6, 23, 0.78);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(2, 6, 23, 0.94);
  --hover: rgba(59, 130, 246, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border2: rgba(255, 255, 255, 0.14);
  --border3: rgba(96, 165, 250, 0.28);
  --border4: rgba(96, 165, 250, 0.55);
  --bg0: #020617;
  --bg: #071126;
  --bg1: #0b1731;
  --bg2: #0f1d39;
  --bg3: rgba(255, 255, 255, 0.055);
  --bg4: rgba(59, 130, 246, 0.1);
  --bg5: rgba(59, 130, 246, 0.16);
  --text: #f8fafc;
  --r-sm: 5px;
  --r-md: 7px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --sh-md: 0 14px 38px rgba(0, 0, 0, 0.32);
  --sh-lg: 0 25px 80px rgba(0, 0, 0, 0.44);
  --sidebar-w: 258px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

body {
  color: var(--foreground);
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.22), transparent 38%),
    radial-gradient(circle at 100% 40%, rgba(30, 64, 175, 0.14), transparent 30%),
    #020617;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

::selection {
  color: #fff;
  background: #2563eb;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
  background: #020617;
}

::-webkit-scrollbar-track {
  background: #071126;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border: 2px solid #071126;
  border-radius: 0;
}

/* Landing */
#landingLayout {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background: transparent;
}

.landing-header {
  position: fixed;
  top: 20px;
  right: 20px;
  left: 20px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 10px 16px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.landing-logo,
.admin-logo,
.sidebar-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.landing-logo img,
.admin-logo img,
.sidebar-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.24));
}

.landing-logo strong,
.admin-logo strong,
.sidebar-logo strong {
  color: #3b82f6;
}

.landing-logo {
  justify-self: start;
}

.landing-actions {
  justify-self: end;
}

.landing-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.landing-nav-link {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.65);
  border: 0;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-nav-link:hover,
.landing-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

#btnLandingLogin {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: #2563eb;
  border: 1px solid #3b82f6;
  border-radius: 5px;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.24);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#btnLandingLogin:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 150px 24px 100px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  place-items: center;
  isolation: isolate;
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.22), transparent 38%),
    linear-gradient(to bottom, rgba(2, 6, 23, 0.2), #020617 96%);
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 42%, transparent 100%);
}

.glow-bg {
  position: absolute;
  inset: auto auto 10% 50%;
  z-index: -1;
  width: 650px;
  height: 300px;
  background: #2563eb;
  border-radius: 50%;
  filter: blur(170px);
  opacity: 0.15;
  transform: translateX(-50%);
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1100px, 100%);
  max-width: 1100px;
  text-align: center;
  animation: controlly-rise 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  padding: 9px 13px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.landing-kicker i,
.landing-proof i {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 12px #3b82f6;
  animation: controlly-pulse 1.8s infinite ease-in-out;
}

.landing-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.76;
  text-shadow:
    0 9px 0 rgba(0, 0, 0, 0.33),
    0 24px 45px rgba(0, 0, 0, 0.35);
}

.landing-title strong {
  margin-left: 0.05em;
  color: #3b82f6;
  font-size: 0.54em;
  letter-spacing: -0.07em;
}

.landing-desc {
  max-width: 680px;
  margin: 38px auto 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
}

.landing-hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.controlly-main-cta,
.controlly-secondary-cta {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: 180ms ease;
}

.controlly-main-cta {
  color: #020617;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
}

.controlly-main-cta:hover {
  color: #020617;
  transform: translateY(-3px);
  box-shadow: 0 11px 0 rgba(0, 0, 0, 0.3);
}

.controlly-secondary-cta {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.controlly-secondary-cta:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 31px;
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.landing-proof span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.scroll-indicator {
  display: none;
}

.landing-features {
  padding: 100px clamp(20px, 5vw, 80px) 120px;
  background: transparent;
  border-top: 0;
}

.features-title {
  max-width: 980px;
  margin: 0 auto 48px;
  color: #fff;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.features-title .highlight {
  color: #3b82f6;
}

.features-grid.controlly-bento {
  gap: 12px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

#landingLayout .feature-card,
#landingLayout .controlly-card {
  min-height: 260px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 35%),
    rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(14px);
  transition: 220ms ease;
}

#landingLayout .feature-card:hover,
#landingLayout .controlly-card:hover {
  border-color: rgba(96, 165, 250, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-5px);
}

#landingLayout .feature-card::before,
#landingLayout .controlly-card::before {
  display: none;
}

.feature-glass-title,
.feature-card-foot strong {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.feature-card-foot p {
  color: #94a3b8;
}

/* Panel */
#app {
  height: 100vh;
  padding: 14px;
  gap: 14px;
}

.sidebar {
  position: relative;
  width: 258px;
  min-width: 258px;
  height: calc(100vh - 28px);
  overflow: hidden;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.sidebar-logo {
  justify-content: flex-start;
  min-height: 76px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
  width: 43px;
  height: 43px;
}

.sidebar-guild {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-guild-label,
.nav-group-label {
  color: #475569;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 12px 9px;
}

.nav-group {
  margin-bottom: 17px;
}

.nav-group-label {
  padding: 0 10px 7px;
}

.nav-item {
  min-height: 41px;
  margin: 2px 0;
  padding: 0 11px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.17);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: inset 3px 0 #3b82f6;
}

.nav-item-icon {
  color: #64748b;
}

.nav-item.active .nav-item-icon,
.nav-item:hover .nav-item-icon {
  color: #60a5fa;
}

.sidebar-footer {
  padding: 9px;
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-switcher,
.bot-switcher-header {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.sidebar-footer-btn {
  min-height: 35px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-body {
  flex: 1;
  min-width: 0;
  height: calc(100vh - 28px);
  overflow: hidden;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.main {
  padding: 34px clamp(20px, 3.5vw, 58px) 70px;
}

.main > .page,
.main > .page-empty,
.main > .module-shell {
  max-width: 1380px;
}

.page-head {
  padding: 5px 0 30px;
}

.page-icon {
  width: 49px;
  height: 49px;
  color: #fff;
  background: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
}

.page-title {
  color: #fff;
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.page-sub {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
}

.section,
.btn-card,
.panel,
.settings-invite-row,
.admin-v2-stat,
.admin-v2-panel,
.admin-v2-profile,
.admin-stat-card,
.admin-container .panel,
.admin-container .section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.section:hover,
.btn-card:hover,
.admin-v2-panel:hover {
  border-color: rgba(96, 165, 250, 0.35);
}

.section-title,
.panel-head,
.admin-v2-panel-head {
  min-height: 49px;
  padding: 0 17px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-body {
  padding: 19px;
}

input,
textarea,
select,
.sel,
.c-select-trigger,
.admin-search-input,
.cmodal-input {
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  box-shadow: none;
}

input:hover,
textarea:hover,
select:hover,
.c-select-trigger:hover {
  border-color: rgba(96, 165, 250, 0.35);
}

input:focus,
textarea:focus,
select:focus,
.c-select.open .c-select-trigger {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

label,
.field > label {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
}

.btn.primary:hover {
  color: #fff;
  background: #3b82f6;
  border-color: #60a5fa;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.09);
}

.toggle-track,
.switch-slider {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

input:checked + .toggle-track,
input:checked + .switch-slider {
  background: #2563eb;
}

/* Admin et modales */
.admin-app {
  min-height: 100vh;
  background: transparent;
}

.admin-header {
  position: sticky;
  top: 14px;
  z-index: 80;
  width: calc(100% - 28px);
  min-height: 72px;
  margin: 14px auto 0;
  padding: 9px 14px;
  background: rgba(2, 6, 23, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.admin-logo {
  min-width: 200px;
}

.admin-tab-btn {
  min-height: 40px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.24);
}

.admin-body {
  padding: 45px clamp(18px, 4vw, 65px) 70px;
}

.modal-backdrop,
.modal-overlay,
.cmodal-overlay,
.login-overlay {
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(11px);
}

.modal,
.cmodal,
.login-modal {
  color: #f8fafc;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.16), transparent 35%),
    #071126;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.modal-head,
.cmodal-head,
.modal-foot,
.cmodal-foot {
  background: rgba(2, 6, 23, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.modal h3,
.cmodal-title,
.login-modal h1 {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.login-modal img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(37, 99, 235, 0.3));
}

.toast {
  background: #0b1731;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

@keyframes controlly-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes controlly-pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.72);
  }
}

@media (max-width: 900px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }
  .landing-nav {
    display: none;
  }
  .landing-title {
    align-items: center;
    flex-direction: column;
    line-height: 0.72;
  }
  .landing-title strong {
    margin: 0.2em 0 0;
    font-size: 0.68em;
  }
  .sidebar {
    width: 220px;
    min-width: 220px;
  }
  .sidebar-logo span {
    display: none;
  }
}

@media (max-width: 650px) {
  .landing-header {
    top: 9px;
    right: 9px;
    left: 9px;
  }
  .landing-logo span {
    display: none;
  }
  .landing-hero-actions,
  .controlly-main-cta,
  .controlly-secondary-cta {
    width: 100%;
  }
  .landing-hero-actions {
    flex-direction: column;
  }
  #app {
    padding: 7px;
    gap: 7px;
  }
  .app-body,
  .sidebar {
    height: calc(100vh - 14px);
  }
}

/* Anti-Raid */
.antiraid-page {
  display: grid;
  gap: 18px;
}

.antiraid-warning {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.antiraid-warning strong {
  flex: 0 0 auto;
  color: #fbbf24;
  text-transform: uppercase;
}

.antiraid-user-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.antiraid-user-results {
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.antiraid-user-results:empty {
  display: none;
}

.antiraid-user-results button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.antiraid-user-results button:hover {
  background: rgba(59, 130, 246, 0.12);
}

.antiraid-user-results button span {
  color: var(--muted);
  font-size: 11px;
}

.antiraid-rule {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.antiraid-rule + .antiraid-rule {
  margin-top: 10px;
}

.antiraid-rule-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.antiraid-rule-head strong {
  color: #fff;
  font-size: 13px;
}

.antiraid-rule-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.antiraid-rule-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(160px, 1fr) minmax(240px, 1.4fr);
  gap: 12px;
}

.antiraid-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.antiraid-incidents {
  display: grid;
  gap: 8px;
}

.antiraid-incident {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.antiraid-result {
  display: grid;
  gap: 3px;
  color: #fbbf24;
  font-size: 11px;
  text-align: right;
}

.antiraid-result.ok {
  color: #4ade80;
}

.antiraid-result span {
  color: var(--muted);
}

@media (max-width: 850px) {
  .antiraid-rule-grid {
    grid-template-columns: 1fr;
  }

  .antiraid-warning,
  .antiraid-rule-head,
  .antiraid-incident {
    align-items: flex-start;
    flex-direction: column;
  }

  .antiraid-result {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Exact WayBackDS shell --------------------------------------------------- */
#landingLayout .landing-header,
.panel-site-header,
.admin-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 76px;
  height: 76px;
  margin: 0;
  padding: 8px 32px;
  overflow: visible;
  background: rgba(0, 0, 0, 0.32) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
  transform: none !important;
}

#landingLayout .landing-logo,
.panel-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  width: max-content;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-decoration: none;
}

#landingLayout .landing-logo img,
.panel-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: none !important;
}

#landingLayout .landing-logo strong,
.panel-brand strong {
  color: #3b82f6;
}

#landingLayout .landing-nav,
.panel-main-nav {
  display: flex;
  gap: 0;
  align-items: center;
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
}

#landingLayout .landing-nav-link,
.panel-main-nav .panel-nav-link {
  padding: 12px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.68) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

#landingLayout .landing-nav-link:hover,
#landingLayout .landing-nav-link.active,
.panel-main-nav .panel-nav-link:hover,
.panel-main-nav .panel-nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: none;
}

#landingLayout .landing-actions {
  display: flex;
  flex: none !important;
  justify-self: end;
  justify-content: flex-end !important;
  width: auto !important;
}

#landingLayout #btnLandingLogin,
.panel-account {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
  min-height: 48px;
  padding: 5px 7px 5px 5px;
  cursor: pointer;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

#landingLayout #btnLandingLogin {
  width: auto !important;
  min-width: 170px;
}

#landingLayout #btnLandingLogin:hover,
.panel-account:hover {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.2) !important;
  transform: translateY(-1px);
}

#landingLayout #landingAccountAvatar,
.panel-account-avatar {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  color: #fff;
  background: #2563eb;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

#landingLayout #landingAccountAvatar[hidden] {
  display: none;
}

#landingLayout #landingAccountAvatar,
.panel-account-avatar img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.landing-account-copy,
.panel-account-copy {
  display: grid;
  min-width: 82px;
  color: #fff;
  line-height: 1.05;
  text-align: left;
}

.landing-account-copy small,
.panel-account-copy small {
  color: #60a5fa;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.landing-account-copy b,
.panel-account-copy b {
  max-width: 130px;
  margin-top: 4px;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-account-arrow,
.panel-account-arrow {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 15px;
  transition: background 180ms ease;
  place-items: center;
}

#landingLayout #btnLandingLogin:hover .landing-account-arrow,
.panel-account:hover .panel-account-arrow {
  background: #2563eb;
}

/* Landing: same composition and proportions as WayBackDS */
#landingLayout .landing-hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  padding: 135px 24px 70px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  place-items: center;
  isolation: isolate;
}

#landingLayout .landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  margin: 0;
  content: "";
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  mask-image: linear-gradient(to bottom, transparent 3%, #000 42%, transparent 100%);
  transform: none;
}

#landingLayout .landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.1), #020617 96%),
    radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.2), transparent 44%);
}

#landingLayout .glow-bg {
  position: absolute;
  inset: auto auto 5% -230px;
  z-index: -1;
  width: 460px;
  height: 460px;
  background: #2563eb;
  border-radius: 50%;
  filter: blur(145px);
  opacity: 0.17;
}

#landingLayout .landing-hero-content {
  width: min(1050px, 100%);
  max-width: 1050px;
}

#landingLayout .landing-kicker {
  margin-bottom: 28px;
  padding: 11px 17px;
  color: #dbeafe;
  background: #2563eb;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  box-shadow: 0 0 32px rgba(37, 99, 235, 0.28);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-1deg);
}

#landingLayout .landing-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  color: #fff;
  filter: drop-shadow(0 12px 0 #020617) drop-shadow(0 0 34px rgba(37, 99, 235, 0.2));
  font-size: clamp(64px, 11vw, 150px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.83;
}

#landingLayout .landing-title strong {
  margin-left: 0.03em;
  color: #3b82f6;
  font-size: 0.72em;
  letter-spacing: -0.07em;
}

#landingLayout .landing-desc {
  max-width: 750px;
  margin: 40px auto 31px;
  color: #cbd5e1;
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
}

#landingLayout .controlly-main-cta,
#landingLayout .controlly-secondary-cta {
  min-height: 54px;
  padding: 0 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

#landingLayout .controlly-main-cta {
  color: #020617;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.38);
}

#landingLayout .controlly-main-cta:hover {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.38), 0 0 28px rgba(37, 99, 235, 0.35);
  transform: translateY(3px);
}

#landingLayout .landing-features {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

#landingLayout .features-title {
  max-width: 850px;
  margin: 0 auto 45px;
  color: #fff;
  font-size: clamp(35px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-align: center;
}

/* Dashboard: global WayBack header + glass product shell */
#dashboardLayout {
  min-height: 100vh;
  padding-top: 105px;
}

.panel-site-header {
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

#dashboardLayout #app {
  display: flex;
  width: min(1380px, calc(100% - 36px)) !important;
  height: calc(100vh - 128px) !important;
  min-height: 620px;
  margin: 0 auto 23px !important;
  padding: 0;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(18px);
}

#dashboardLayout .sidebar {
  flex: 0 0 250px;
  width: 250px;
  min-width: 250px;
  height: 100%;
  background: rgba(15, 23, 42, 0.52);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  box-shadow: none;
}

#dashboardLayout .sidebar-logo {
  display: none;
}

#dashboardLayout .sidebar-guild {
  padding: 20px 16px 16px;
}

#dashboardLayout .sidebar-nav {
  padding: 8px 10px 18px;
}

#dashboardLayout .nav-group-label {
  color: #64748b;
  font-size: 9px;
  letter-spacing: 0.1em;
}

#dashboardLayout .nav-item {
  min-height: 40px;
  color: #94a3b8;
  border: 0;
  border-radius: 6px;
}

#dashboardLayout .nav-item:hover,
#dashboardLayout .nav-item.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
  border-color: transparent;
}

#dashboardLayout .nav-item.active::before {
  background: #2563eb;
}

#dashboardLayout .app-body {
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#dashboardLayout .main {
  padding: 44px clamp(22px, 3vw, 54px) 64px;
}

#adminLayout .admin-body {
  padding-top: 120px;
}

#dashboardLayout .section,
#dashboardLayout .btn-card,
#dashboardLayout .list-item,
#dashboardLayout .block,
#dashboardLayout .settings-invite-row {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

#dashboardLayout .section-title {
  min-height: 56px;
  padding: 16px 20px;
  color: #fff;
  background: rgba(2, 6, 23, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

#dashboardLayout .btn,
.admin-app .btn {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#dashboardLayout .btn.primary,
.admin-app .btn.primary {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

#dashboardLayout input:not([type="checkbox"]):not([type="radio"]),
#dashboardLayout textarea,
#dashboardLayout select {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

@media (max-width: 950px) {
  #landingLayout .landing-header,
  .panel-site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }
  #landingLayout .landing-nav,
  .panel-main-nav {
    display: none;
  }
  #dashboardLayout .sidebar {
    flex-basis: 220px;
    width: 220px;
    min-width: 220px;
  }
}

@media (max-width: 650px) {
  #landingLayout .landing-header,
  .panel-site-header {
    min-height: 70px;
    height: 70px;
    padding: 7px 10px;
  }
  #landingLayout .landing-logo span,
  .panel-brand span,
  .landing-account-copy,
  .panel-account-copy {
    display: none;
  }
  #dashboardLayout {
    padding-top: 84px;
  }
  #dashboardLayout #app {
    width: calc(100% - 14px) !important;
    height: calc(100vh - 91px) !important;
  }
  #dashboardLayout .sidebar {
    flex-basis: 76px;
    width: 76px;
    min-width: 76px;
  }
  #dashboardLayout .sidebar-guild,
  #dashboardLayout .nav-group-label,
  #dashboardLayout .nav-item-label,
  #dashboardLayout .sidebar-footer {
    display: none;
  }
  #dashboardLayout .sidebar-nav {
    padding: 14px 8px;
  }
  #dashboardLayout .nav-item {
    justify-content: center;
    padding: 9px;
  }
}

/* Overrides finaux : le produit connecté remplit l’espace sous la topbar. */
#dashboardLayout {
  height: 100vh;
  min-height: 0;
  padding-top: 76px;
  overflow: hidden;
}

#dashboardLayout #app {
  width: 100% !important;
  height: calc(100vh - 76px) !important;
  min-height: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#dashboardLayout .main > .page,
#dashboardLayout .main > .page-empty,
#dashboardLayout .main > .module-shell {
  width: 100%;
  max-width: none;
}

#dashboardLayout .main.main-hook {
  padding: 0;
  overflow: hidden;
}

#dashboardLayout .main.main-hook > .hook-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

@media (max-width: 650px) {
  #dashboardLayout {
    padding-top: 70px;
  }

  #dashboardLayout #app {
    width: 100% !important;
    height: calc(100vh - 70px) !important;
  }
}

/* Modules sécurité, sauvegarde, santé et analytics ---------------------- */
.module-page-grid {
  display: grid;
  gap: 16px;
}

.playpit-status-card {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 9px;
}

.playpit-status-card.is-online {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.25);
}

.playpit-status-card.is-offline {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.25);
}

.playpit-status-main {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.playpit-status-main > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.playpit-status-main strong { color: #fff; font-size: 14px; }
.playpit-status-main span { color: var(--muted); font-size: 11px; }

.playpit-orb {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: #f87171;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(248, 113, 113, .75);
}

.is-online .playpit-orb {
  background: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, .75);
}

.playpit-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.playpit-game-card {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}

.playpit-game-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #93c5fd;
  background: rgba(59,130,246,.12);
  border-radius: 8px;
}

.playpit-game-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.playpit-game-card strong { color: #fff; font-size: 12px; }
.playpit-game-card span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.playpit-actions { margin-top: 12px; }

@media (max-width: 650px) {
  .playpit-status-card { align-items: flex-start; }
  .playpit-games-grid { grid-template-columns: 1fr; }
}

.module-status,
.module-warning {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.module-status > div,
.module-warning > div {
  display: grid;
  gap: 3px;
}

.module-status strong,
.module-warning strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-status span,
.module-warning span {
  color: var(--muted);
}

.module-status.ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
}

.module-status.danger,
.module-warning:not(.info) {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.3);
}

.module-warning {
  align-items: flex-start;
  justify-content: flex-start;
}

.module-warning.info {
  color: #bfdbfe;
}

.module-warning ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.module-live-dot {
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}

.module-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.module-list {
  display: grid;
  gap: 8px;
}

.module-list-row,
.backup-row,
.native-rule-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.module-list-row > div:first-child,
.backup-main,
.native-rule-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.module-list-row strong,
.backup-main strong,
.native-rule-row strong {
  color: #fff;
  font-size: 13px;
}

.module-list-row span,
.backup-main > span,
.native-rule-row > div:first-child > span {
  color: var(--muted);
  font-size: 11px;
}

.module-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.module-badge.ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.module-badge.warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.module-badge.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.module-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.module-inline-actions,
.backup-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.backup-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.backup-summary span {
  padding: 3px 6px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 10px;
}

.module-progress-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 7px;
}

.module-progress-head {
  display: flex;
  justify-content: space-between;
  color: #dbeafe;
  font-size: 11px;
}

.module-progress-track,
.analytics-top-track {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.module-progress-track span,
.analytics-top-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
  transition: width 220ms ease;
}

.module-error {
  margin: 0;
  color: #fca5a5;
  font-size: 11px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.metric-card > span,
.metric-card small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card strong {
  color: #fff;
  font-size: 22px;
}

.metric-value {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.metric-change {
  color: var(--muted);
  font-size: 10px;
}

.metric-change.up { color: #4ade80; }
.metric-change.down { color: #f87171; }

.analytics-bars {
  display: flex;
  gap: 3px;
  align-items: end;
  height: 190px;
  padding: 12px 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-bar-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  min-width: 3px;
  height: 100%;
}

.analytics-bar-value {
  width: min(100%, 24px);
  min-height: 2px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  border-radius: 3px 3px 0 0;
}

.analytics-bar-column span {
  min-height: 14px;
  color: var(--muted);
  font-size: 8px;
}

.analytics-top-list {
  display: grid;
  gap: 12px;
}

.analytics-top-row {
  display: grid;
  gap: 6px;
}

.analytics-top-row > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.analytics-top-row strong {
  color: #e2e8f0;
  font-size: 11px;
}

.health-bot {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.health-bot + .health-bot { margin-top: 12px; }

.health-bot-head,
.health-guild-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.health-bot-head > div,
.health-guild-title > div {
  display: grid;
  gap: 3px;
}

.health-bot-head strong,
.health-guild-title strong {
  color: #fff;
  font-size: 13px;
}

.health-bot-head span,
.health-guild-title span {
  color: var(--muted);
  font-size: 10px;
}

.health-guilds {
  display: grid;
  gap: 8px;
}

.health-guild {
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.health-detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.health-detail.ok { color: #86efac; }
.health-detail.warn { color: #fde68a; }

.health-errors {
  color: var(--muted);
  font-size: 10px;
}

.health-errors summary { cursor: pointer; }
.health-errors li { margin-top: 5px; }

.native-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.native-action-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
}

@media (max-width: 900px) {
  .metric-grid,
  .metric-grid.compact,
  .native-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-row,
  .native-rule-row,
  .module-list-row,
  .health-guild-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .metric-grid,
  .metric-grid.compact,
  .native-actions-grid,
  .analytics-columns {
    grid-template-columns: 1fr;
  }

  .module-status,
  .health-bot-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.giveaway-channel-field {
  min-width: 0;
}

.giveaway-resolution-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.giveaway-resolution-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: giveaway-resolution-pulse 1.4s ease-out infinite;
}

@keyframes giveaway-resolution-pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
