
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:#121213;
  --panel:#19191a;
  --panel2:#202021;
  --line:#3c3c3e;
  --muted:#8f8f93;
  --text:#f3f3f4;
  --soft:#d7d7da;
  --green:#39e6ae;
  --shadow:0 20px 70px rgba(0,0,0,.48);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.025), transparent 30%),
    var(--bg);
  color:var(--text);
  font-family:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
.noise {
  position:fixed; inset:0; pointer-events:none; opacity:.18; z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.7),transparent 72%);
}
.floating-nav {
  position:fixed; top:20px; left:50%; transform:translateX(-50%);
  z-index:30; height:54px; padding:6px 8px;
  display:flex; align-items:center; gap:10px;
  border:1px solid #444446; border-radius:28px;
  background:rgba(25,25,26,.9); backdrop-filter:blur(20px);
  box-shadow:0 15px 45px rgba(0,0,0,.35);
}
.floating-nav nav { display:flex; align-items:center; gap:3px; }
.floating-nav nav a,.nav-login {
  padding:10px 14px; color:#aaa; font-size:13px; border-radius:20px;
  border:0; background:transparent; cursor:pointer;
}
.floating-nav nav a:hover,.floating-nav nav a.active,.nav-login:hover { color:#fff; background:#242426; }
.brand-mini { display:grid; place-items:center; }
.avatar-mini {
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background:#ededee; color:#181819; font-weight:800; border:2px solid #777;
}
.hero {
  width:min(1140px,calc(100% - 40px)); min-height:860px; margin:0 auto;
  padding:175px 0 90px; display:grid; grid-template-columns:.88fr 1.12fr; gap:80px; align-items:center;
}
.eyebrow { color:#939397; letter-spacing:.15em; font-size:12px; font-weight:700; }
.hero h1 {
  margin:18px 0 18px; font-size:clamp(72px,9vw,128px); line-height:.82;
  letter-spacing:.09em; color:#d9d9dc; text-shadow:0 5px 25px rgba(255,255,255,.05);
}
.lede { max-width:530px; color:#aaa; font-size:16px; line-height:1.75; }
.hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:28px; max-width:560px; }
.hero-actions .button:last-child { grid-column:1 / -1; }
.button {
  min-height:44px; display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border:1px solid #3d3d40; border-radius:10px;
  background:#19191a; color:#eee; font-weight:600; font-size:13px; cursor:pointer;
}
.button:hover { border-color:#6b6b6f; background:#222224; transform:translateY(-1px); }
.button.primary { background:#f0f0f1; color:#151516; border-color:#f0f0f1; }
.button.primary:hover { background:#fff; }
.button.compact { min-height:38px; padding:8px 14px; }
.mini-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:28px; max-width:560px; }
.mini-stats div { padding:0 20px; border-right:1px solid #333; }
.mini-stats div:first-child { padding-left:0; }
.mini-stats div:last-child { border-right:0; }
.mini-stats strong,.mini-stats span { display:block; }
.mini-stats strong { font-size:14px; }
.mini-stats span { color:#777; font-size:10px; margin-top:5px; text-transform:uppercase; }

.preview-shell {
  border:1px solid #3b3b3d; background:#181819; border-radius:17px; overflow:hidden; box-shadow:var(--shadow);
}
.window-top { height:38px; border-bottom:1px solid #414143; display:grid; place-items:center; background:#202021; }
.window-top span { width:150px; text-align:center; font-size:9px; letter-spacing:.1em; color:#999; border:1px solid #39393b; border-radius:8px; background:#171718; }
.preview-inner { padding:38px; }
.preview-banner { min-height:72px; display:flex; align-items:center; gap:12px; border-radius:10px 10px 0 0; padding:14px; background:linear-gradient(120deg,#36363a,#202c2a,#272629); }
.preview-banner strong,.preview-banner small { display:block; }
.preview-banner small { color:#aaa; margin-top:2px; }
.fake-avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#eee; color:#111; font-weight:800; }
.preview-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.preview-grid article,.chart-card,.small-chart { border:1px solid #343436; border-radius:9px; background:#1c1c1d; }
.preview-grid article { padding:12px; position:relative; }
.preview-grid small,.preview-grid strong { display:block; }
.preview-grid small { color:#777; font-size:9px; }
.preview-grid strong { font-size:16px; margin-top:6px; }
.preview-grid em { position:absolute; right:10px; bottom:11px; font-size:8px; font-style:normal; color:var(--green); }
.chart-card { margin-top:12px; padding:12px; color:#777; }
.chart-head { display:flex; justify-content:space-between; font-size:9px; color:#888; }
.chart-card svg { width:100%; height:140px; margin-top:6px; color:#a7a7aa; }
.preview-bottom { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.small-chart { height:95px; background:linear-gradient(145deg,#1a1a1b,#1f1f20); position:relative; overflow:hidden; }
.small-chart::after { content:""; position:absolute; left:10%; right:10%; top:45%; height:1px; background:#666; box-shadow:40px -15px 0 #555,90px 8px 0 #777,135px -25px 0 #555; }
.feature-band {
  width:min(1140px,calc(100% - 40px)); margin:0 auto 100px; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #303032; border-bottom:1px solid #303032;
}
.feature-band article { padding:36px 30px; border-right:1px solid #303032; }
.feature-band article:last-child { border-right:0; }
.feature-band span { color:#666; font-size:11px; }
.feature-band h2 { font-size:15px; margin:12px 0; }
.feature-band p { color:#888; font-size:12px; line-height:1.7; }
footer { text-align:center; padding:30px; color:#666; font-size:11px; }
footer span { padding:0 8px; }

.dashboard-body { min-height:100vh; }
.dashboard-wrap,.commands-wrap { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:130px 0 90px; }
.dashboard-heading { display:flex; justify-content:space-between; gap:30px; align-items:flex-end; margin-bottom:28px; }
.dashboard-heading h1,.page-heading h1 { margin:8px 0 5px; font-size:30px; }
.dashboard-heading p,.page-heading p { color:#777; margin:0; font-size:12px; }
.dashboard-tools { display:flex; gap:10px; }
.dashboard-tools input {
  width:260px; min-height:42px; border:1px solid #3a3a3c; border-radius:10px;
  background:#19191a; color:#eee; padding:0 14px; outline:none;
}
.dashboard-tools input:focus { border-color:#666; }
.guild-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.guild-card { border:1px solid #414143; border-radius:17px; background:#1a1a1b; overflow:hidden; box-shadow:0 12px 35px rgba(0,0,0,.28); }
.guild-cover { height:96px; position:relative; background:linear-gradient(135deg,#38383b,#202021); border-bottom:1px solid #3a3a3c; }
.permission-badge {
  position:absolute; right:12px; top:11px; padding:3px 8px; border:1px solid #666; border-radius:5px;
  background:rgba(25,25,25,.7); color:#cfcfd1; font-size:9px; letter-spacing:.12em; font-weight:700;
}
.guild-counts { position:absolute; right:12px; bottom:10px; display:flex; gap:10px; font-size:10px; padding:7px 9px; background:rgba(18,18,19,.75); border-radius:8px; }
.online-count::before { content:"●"; color:var(--green); margin-right:5px; }
.member-count::before { content:"♙"; color:#aaa; margin-right:5px; }
.guild-main { position:relative; padding:38px 18px 18px; }
.guild-icon {
  position:absolute; left:18px; top:-28px; width:58px; height:58px; border-radius:50%;
  border:3px solid #1a1a1b; background:#252527; display:grid; place-items:center; font-size:19px; font-weight:700;
  background-position:center; background-size:cover;
}
.guild-name { font-size:16px; margin:8px 0 5px; }
.guild-id { color:#646468; font-size:9px; margin:0 0 17px; }
.guild-action { width:100%; }
.loading-card { grid-column:1/-1; min-height:260px; display:grid; place-items:center; align-content:center; gap:14px; border:1px dashed #38383a; border-radius:15px; color:#777; }
.spinner { width:26px; height:26px; border:2px solid #333; border-top-color:#eee; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.notice { margin:0 0 18px; padding:13px 15px; border-radius:9px; border:1px solid #554; color:#c9c0a2; background:#242218; font-size:12px; }
.hidden { display:none!important; }
.ghost-button { border:0; }
.empty-state { grid-column:1/-1; padding:55px; text-align:center; border:1px dashed #3b3b3d; border-radius:15px; color:#777; }

.page-heading { margin-bottom:30px; }
.page-heading h1 code { color:#fff; background:#252527; padding:2px 8px; border-radius:7px; }
.command-sections { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.command-panel { border:1px solid #39393b; border-radius:14px; background:#19191a; padding:22px; }
.command-panel h2 { margin:0 0 15px; font-size:15px; }
.command-panel p { margin:0; line-height:2.15; }
.command-panel code { display:inline-block; border:1px solid #353537; border-radius:6px; padding:2px 7px; margin:2px 2px 2px 0; color:#bdbdc0; background:#151516; font-size:11px; }

@media (max-width:900px) {
  .hero { grid-template-columns:1fr; padding-top:135px; gap:45px; }
  .hero-copy { text-align:center; }
  .lede,.hero-actions,.mini-stats { margin-left:auto; margin-right:auto; }
  .hero h1 { font-size:80px; }
  .guild-grid { grid-template-columns:1fr 1fr; }
  .feature-band { grid-template-columns:1fr; }
  .feature-band article { border-right:0; border-bottom:1px solid #303032; }
  .feature-band article:last-child { border-bottom:0; }
}
@media (max-width:650px) {
  .floating-nav { width:calc(100% - 22px); justify-content:space-between; }
  .floating-nav nav a { padding:9px 8px; }
  .nav-login { padding:9px 8px; }
  .hero { width:min(100% - 24px,1140px); padding-top:120px; min-height:auto; }
  .hero-actions { grid-template-columns:1fr; }
  .hero-actions .button:last-child { grid-column:auto; }
  .preview-inner { padding:20px; }
  .preview-grid { grid-template-columns:1fr; }
  .preview-bottom { grid-template-columns:1fr; }
  .dashboard-wrap,.commands-wrap { width:calc(100% - 24px); padding-top:110px; }
  .dashboard-heading { align-items:stretch; flex-direction:column; }
  .dashboard-tools { flex-direction:column; }
  .dashboard-tools input { width:100%; }
  .guild-grid,.command-sections { grid-template-columns:1fr; }
}

.disabled-action {
  opacity:.48;
  cursor:not-allowed;
  pointer-events:none;
  background:#1c1c1d !important;
  color:#777 !important;
  border-color:#303032 !important;
}
.guild-card:has(.disabled-action) .guild-cover {
  filter:saturate(.55);
}


/* =========================================================
   BOOY SERVER MANAGER — Mira-inspired dashboard layout
   ========================================================= */

.manage-body {
  background:#141415;
  min-height:100vh;
  overflow-x:hidden;
}

.mira-rail {
  position:fixed;
  left:14px;
  top:22px;
  bottom:22px;
  width:56px;
  z-index:60;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding:13px 8px;
  border:1px solid #4a4a4d;
  border-radius:22px;
  background:rgba(25,25,26,.96);
  box-shadow:0 18px 55px rgba(0,0,0,.45);
  backdrop-filter:blur(18px);
}

.rail-word {
  color:#f1f1f2;
  font-size:9px;
  letter-spacing:.18em;
  font-weight:800;
}

.rail-logo {
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#efeff0;
  color:#151516;
  border:2px solid #777;
  font-weight:900;
}

.rail-divider {
  width:32px;
  height:1px;
  background:#333;
  margin:0 0 2px;
}

.rail-item {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:10px;
  color:#848488;
  background:transparent;
  font-size:17px;
  cursor:pointer;
  position:relative;
}

.rail-item:hover,
.rail-item.active {
  color:#fff;
  background:#242426;
}

.rail-item.active::before {
  content:"";
  position:absolute;
  left:-9px;
  width:2px;
  height:23px;
  border-radius:2px;
  background:#fff;
}

.rail-spacer { flex:1; }

.manage-subnav {
  position:fixed;
  left:82px;
  top:44px;
  width:220px;
  z-index:50;
  padding:16px 12px;
  border:1px solid #4a4a4d;
  border-radius:20px;
  background:rgba(25,25,26,.96);
  box-shadow:0 18px 50px rgba(0,0,0,.38);
  backdrop-filter:blur(18px);
}

.subnav-label {
  padding:2px 9px 10px;
  color:#626267;
  font-size:10px;
  font-weight:700;
  letter-spacing:.22em;
}

.subnav-item {
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  border-radius:10px;
  padding:0 10px;
  text-align:left;
  background:transparent;
  color:#8a8a8e;
  cursor:pointer;
}

.subnav-item span {
  width:18px;
  text-align:center;
  color:#777;
}

.subnav-item:hover,
.subnav-item.active {
  color:#f1f1f2;
  background:#222224;
}

.subnav-item.active {
  position:relative;
  font-weight:600;
}

.subnav-item.active::before {
  content:"";
  position:absolute;
  left:-13px;
  height:23px;
  width:2px;
  background:#fff;
}

.manage-main {
  width:min(1080px,calc(100% - 360px));
  margin-left:330px;
  padding:42px 34px 90px;
}

.manage-topbar {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  padding-bottom:26px;
  border-bottom:1px solid #303033;
  margin-bottom:28px;
}

.manage-guild {
  display:flex;
  align-items:center;
  gap:15px;
}

.manage-guild-icon {
  width:52px;
  height:52px;
  border-radius:50%;
  background:#242426 center/cover no-repeat;
  border:1px solid #555;
  display:grid;
  place-items:center;
  font-weight:800;
}

.manage-guild h1 {
  margin:5px 0 0;
  font-size:23px;
}

.manage-actions {
  display:flex;
  align-items:center;
  gap:13px;
}

.save-state {
  color:#737378;
  font-size:11px;
}

.manage-content {
  min-height:500px;
}

.manage-page-title {
  margin-bottom:22px;
}

.manage-page-title h2 {
  margin:7px 0 7px;
  font-size:28px;
}

.manage-page-title p {
  margin:0;
  color:#828287;
  line-height:1.7;
  font-size:12px;
}

.manage-page-title code {
  padding:2px 6px;
  border-radius:5px;
  background:#222;
  color:#ddd;
}

.overview-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:16px;
}

.stat-tile {
  min-height:110px;
  border:1px solid #38383b;
  border-radius:14px;
  background:#1a1a1b;
  padding:18px;
}

.stat-tile span {
  display:block;
  color:#77777c;
  font-size:10px;
}

.stat-tile strong {
  display:block;
  margin-top:16px;
  font-size:22px;
}

.stat-tile.good strong {
  color:#52e2b3;
  font-size:14px;
}

.settings-card {
  border:1px solid #3c3c3f;
  border-radius:17px;
  background:#19191a;
  padding:22px;
  box-shadow:0 15px 40px rgba(0,0,0,.22);
}

.settings-card + .settings-card {
  margin-top:15px;
}

.settings-card-head {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px;
}

.settings-card h3 {
  margin:0 0 5px;
  font-size:15px;
}

.settings-card p,
.field small,
.toggle-row small {
  color:#747479;
  font-size:10px;
  line-height:1.6;
}

.summary-lines {
  display:grid;
}

.summary-lines > div {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
  border-top:1px solid #29292b;
  color:#929296;
  font-size:12px;
}

.summary-lines > div:first-child {
  border-top:0;
}

.summary-lines strong {
  color:#d9d9dc;
}

.settings-form {
  display:grid;
  gap:20px;
}

.field {
  display:grid;
  gap:8px;
}

.field > span {
  font-size:12px;
  font-weight:600;
}

.field input,
.field select,
.field textarea,
.repeat-row input {
  width:100%;
  min-height:43px;
  border:1px solid #3a3a3d;
  border-radius:9px;
  background:#151516;
  color:#eee;
  padding:10px 12px;
  outline:none;
}

.field textarea {
  min-height:105px;
  resize:vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.repeat-row input:focus {
  border-color:#6b6b70;
}

.toggle-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}

.toggle-row strong,
.toggle-row small {
  display:block;
}

.toggle-row small {
  margin-top:5px;
}

.switch input { display:none; }

.switch span {
  width:42px;
  height:23px;
  border-radius:20px;
  display:block;
  background:#303033;
  border:1px solid #454548;
  position:relative;
  cursor:pointer;
  transition:.15s;
}

.switch span::after {
  content:"";
  width:17px;
  height:17px;
  border-radius:50%;
  background:#8c8c90;
  position:absolute;
  top:2px;
  left:3px;
  transition:.15s;
}

.switch input:checked + span {
  background:#dcdcdf;
}

.switch input:checked + span::after {
  left:20px;
  background:#171718;
}

.setting-divider {
  height:1px;
  background:#2e2e31;
}

.save-button {
  justify-self:start;
  min-width:180px;
}

.repeat-list {
  display:grid;
  gap:10px;
}

.repeat-row {
  display:grid;
  grid-template-columns:.85fr 1.7fr 38px;
  gap:9px;
  align-items:center;
}

.remove-row {
  width:38px;
  height:38px;
  border:1px solid #443638;
  border-radius:8px;
  background:#21191a;
  color:#bd777b;
  cursor:pointer;
}

.prefixed-input {
  display:flex;
  align-items:center;
  min-height:43px;
  border:1px solid #3a3a3d;
  border-radius:9px;
  background:#151516;
  overflow:hidden;
}

.prefixed-input span {
  padding-left:12px;
  color:#777;
}

.prefixed-input input {
  border:0;
  min-height:40px;
}

.audit-list {
  display:grid;
}

.audit-row {
  display:grid;
  grid-template-columns:13px 1fr auto;
  gap:12px;
  align-items:center;
  padding:14px 0;
  border-top:1px solid #2c2c2e;
}

.audit-row:first-child { border-top:0; }

.audit-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d8d8db;
}

.audit-row strong,
.audit-row span {
  display:block;
}

.audit-row strong {
  font-size:11px;
}

.audit-row span,
.audit-row time {
  margin-top:4px;
  color:#6e6e73;
  font-size:9px;
}

.coming-soon,
.empty-manage {
  min-height:270px;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  color:#777;
}

.soon-icon {
  font-size:35px;
  color:#aaa;
  margin-bottom:12px;
}

.empty-manage {
  border:1px dashed #3b3b3e;
  border-radius:16px;
  padding:30px;
}

@media (max-width:1000px) {
  .manage-subnav {
    left:76px;
    width:190px;
  }

  .manage-main {
    margin-left:285px;
    width:calc(100% - 300px);
    padding-left:20px;
    padding-right:20px;
  }

  .overview-grid {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:720px) {
  .mira-rail {
    left:8px;
    top:8px;
    bottom:8px;
  }

  .manage-subnav {
    display:none;
  }

  .manage-main {
    margin-left:76px;
    width:calc(100% - 84px);
    padding:28px 12px 70px;
  }

  .manage-topbar {
    align-items:flex-start;
    flex-direction:column;
  }

  .overview-grid {
    grid-template-columns:1fr;
  }

  .repeat-row {
    grid-template-columns:1fr;
  }

  .remove-row {
    width:100%;
  }
}
