* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #0f1220;
  color: #ffffff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* =========================
   GLOBAL BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: #6c78f4;
}

.btn.secondary {
  background: #2a3152;
}

.btn.secondary:hover {
  background: #374066;
}

.btn.small {
  padding: 10px 14px;
  font-size: 14px;
}

/* =========================
   SITE LAYOUT
========================= */

.site-main {
  min-height: calc(100vh - 160px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #d5dbf5;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #111527;
  margin-top: 60px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.footer-wrap h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.footer-wrap p,
.footer-links a {
  color: #aab3d4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================
   HOME PAGE
========================= */

.hero-section {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(88,101,242,0.15);
  color: #cfd5ff;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-content p {
  font-size: 18px;
  color: #b6bedf;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(180deg, #171c31 0%, #121728 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
}

.dashboard-preview {
  background: #0d1020;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.preview-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b3358;
}

.preview-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 300px;
}

.preview-sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 14px;
}

.preview-item {
  background: rgba(255,255,255,0.04);
  color: #d0d7f1;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.preview-item.active {
  background: #5865f2;
  color: #fff;
}

.preview-content {
  padding: 16px;
}

.preview-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.preview-stat,
.preview-panel {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
}

.preview-stat {
  height: 70px;
}

.preview-panel {
  height: 150px;
}

/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 70px 0;
}

.section.alt {
  padding-top: 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.section-heading p {
  color: #acb5d7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card,
.pricing-card,
.legal-card,
.cta-box,
.card,
.stat-card,
.form-card {
  background: linear-gradient(180deg, #171c31 0%, #13182a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  color: #b7bfdc;
}

/* =========================
   PAGE HERO
========================= */

.page-hero.small {
  padding: 70px 0 20px;
}

.page-hero.small h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

.page-hero.small p {
  color: #b0b8d7;
}

/* =========================
   PRICING
========================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.pricing-card {
  padding: 26px;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(88,101,242,0.45);
  transform: translateY(-6px);
}

.price-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(88,101,242,0.16);
  color: #d7dcff;
  font-size: 13px;
  font-weight: 700;
}

.price {
  font-size: 42px;
  font-weight: 800;
  margin: 12px 0 18px;
}

.price span {
  font-size: 16px;
  color: #a8b0d1;
}

.price-list {
  padding-left: 18px;
  margin-bottom: 24px;
  color: #c8d0ea;
}

.price-list li {
  margin-bottom: 10px;
}

/* =========================
   LEGAL PAGES
========================= */

.legal-page {
  max-width: 900px;
}

.legal-card {
  padding: 28px;
}

.legal-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.legal-card p {
  color: #bcc4e0;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* =========================
   CTA
========================= */

.cta-box {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-box p {
  color: #b8bfdc;
  margin-bottom: 0;
}

/* =========================
   SERVER SELECT PAGE
========================= */

.server-select-page {
  padding: 40px 0 20px;
}

.server-select-header {
  text-align: center;
  margin-bottom: 34px;
}

.server-select-header h1 {
  margin: 0 0 10px;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
}

.server-select-header p {
  margin: 0;
  color: #aeb7d8;
  font-size: 16px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.server-card {
  background: linear-gradient(180deg, #202538 0%, #1a1f31 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

.server-card-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #2a2f44;
}

.server-card-banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.55);
  transform: scale(1.2);
}

.server-card-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 20, 0.18) 0%,
    rgba(10, 12, 20, 0.28) 55%,
    rgba(10, 12, 20, 0.38) 100%
  );
}

.server-card-icon-wrap {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  z-index: 2;
}

.server-card-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  background: #161a29;
}

.server-card-icon.placeholder {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #1b2133;
  border: 3px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

.server-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 52px 20px 20px;
}

.server-card-info {
  min-width: 0;
}

.server-card-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.server-card-info span {
  color: #95a1cb;
  font-size: 15px;
}

.server-card-btn {
  min-width: 92px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.server-card-btn.primary {
  background: #4291ff;
  color: #fff;
}

.server-card-btn.primary:hover {
  background: #5aa0ff;
}

.server-card-btn.secondary {
  background: #3a3f53;
  color: #fff;
}

.server-card-btn.secondary:hover {
  background: #474d63;
}

/* =========================
   GUILD SETTINGS LAYOUT
========================= */

.guild-settings-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}

.guild-sidebar {
  background: linear-gradient(180deg, #171c31 0%, #121728 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  position: sticky;
  top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.guild-sidebar-top h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.guild-sidebar-sub {
  color: #98a2c9;
  font-size: 14px;
}

.guild-sidebar-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guild-sidebar-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #d2d8f0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.guild-sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}

.guild-sidebar-nav a.active {
  background: #5865f2;
  color: #fff;
  font-weight: 700;
}

.guild-settings-content {
  min-width: 0;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.page-header p {
  margin: 0;
  color: #aeb7d8;
}

/* =========================
   ALERTS
========================= */

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.alert.success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #b7ffd0;
}

/* =========================
   OVERVIEW
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  font-size: 14px;
  color: #9aa6cf;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 18px;
  color: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  color: #b8bfdc;
  margin-bottom: 16px;
}

/* =========================
   FORMS
========================= */

.form-card {
  max-width: 780px;
  padding: 22px;
}

.form-card label {
  display: block;
  margin: 14px 0 8px;
  color: #c9d0e8;
  font-size: 14px;
}

.form-card input[type="text"],
.form-card input[type="url"],
.form-card input[type="color"],
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: #0f1220;
  color: #fff;
  outline: none;
  margin-bottom: 14px;
}

.form-card input[type="color"] {
  height: 48px;
  padding: 6px;
}

.form-card textarea {
  resize: vertical;
  min-height: 120px;
}

.switch-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.info-box {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: #d8ddff;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 10px 0 18px;
  font-size: 14px;
}

/* =========================
   EMBED BUILDER
========================= */

.form-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 24px 0;
}

.embed-field-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

/* =========================
   INVITE / SINGLE BOX PAGE
========================= */

.guild-page {
  max-width: 760px;
  margin: 40px auto 0;
}

.box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
}

.box.success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.box.warning {
  background: rgba(241, 196, 15, 0.12);
  border: 1px solid rgba(241, 196, 15, 0.3);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .server-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap,
  .cta-box,
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .guild-settings-layout {
    grid-template-columns: 1fr;
  }

  .guild-sidebar {
    position: static;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 700px) {
  .server-select-header h1 {
    font-size: 38px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .main-nav {
    width: 100%;
  }

  .server-card-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-card-btn {
    width: 100%;
  }

  .stats-grid,
  .overview-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

  .page-hero.small h1,
  .section-heading h2 {
    font-size: 30px;
  }
}

/* =========================
   DASHBOARD GLOBAL
========================= */

.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(88,101,242,0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(66,145,255,0.08), transparent 24%),
    #0b1020;
  color: #fff;
}

.dashboard-shell {
  width: min(1280px, 94%);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.dashboard-page {
  padding-top: 10px;
}

.dashboard-page-header {
  margin-bottom: 28px;
}

.dashboard-page-header.center {
  text-align: center;
}

.dashboard-page-header h1 {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: 800;
}

.dashboard-page-header p {
  margin: 0;
  color: #aeb7d8;
  font-size: 16px;
}

/* =========================
   DASHBOARD TOPBAR
========================= */

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(9, 13, 27, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dashboard-topbar-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.dashboard-brand-sub {
  color: #8f9cc8;
  font-size: 14px;
}

.dashboard-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-topbar-link {
  color: #c8d0ea;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.dashboard-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-user-avatar.placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #202743;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.dashboard-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dashboard-user-meta strong {
  font-size: 14px;
}

.dashboard-user-meta span {
  font-size: 12px;
  color: #9da8d1;
}

/* =========================
   DASHBOARD SERVER PAGE
========================= */

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.server-card {
  background: linear-gradient(180deg, rgba(29,35,57,0.95) 0%, rgba(20,25,42,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0,0,0,0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.28);
  border-color: rgba(88,101,242,0.2);
}

.server-card-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #232844;
}

.server-card-banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.52);
  transform: scale(1.2);
}

.server-card-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,18,0.15) 0%, rgba(8,10,18,0.3) 60%, rgba(8,10,18,0.42) 100%);
}

.server-card-icon-wrap {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  z-index: 2;
}

.server-card-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  background: #161a29;
}

.server-card-icon.placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #1b2133;
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
}

.server-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 54px 20px 20px;
}

.server-card-info {
  min-width: 0;
}

.server-card-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
  word-break: break-word;
}

.server-card-info span {
  color: #98a5d1;
  font-size: 15px;
}

.server-card-btn {
  min-width: 96px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.server-card-btn.primary {
  background: #4291ff;
  color: #fff;
}

.server-card-btn.primary:hover {
  background: #5aa0ff;
}

.server-card-btn.secondary {
  background: #3a3f53;
  color: #fff;
}

.server-card-btn.secondary:hover {
  background: #4a5066;
}

/* =========================
   GUILD SETTINGS
========================= */

.guild-settings-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}

.guild-sidebar {
  background: linear-gradient(180deg, rgba(23,28,49,0.96) 0%, rgba(15,20,36,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 20px;
  position: sticky;
  top: 100px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}

.guild-sidebar-server {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guild-sidebar-server-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.guild-sidebar-server-icon.placeholder {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #202743;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.guild-sidebar-server-info h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.guild-sidebar-sub {
  color: #98a2c9;
  font-size: 14px;
}

.guild-sidebar-nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guild-sidebar-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #d2d8f0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.guild-sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}

.guild-sidebar-nav a.active {
  background: #5865f2;
  color: #fff;
  font-weight: 700;
}

.guild-sidebar-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.guild-sidebar-back {
  color: #9eadde;
  font-size: 14px;
}

.guild-settings-content {
  min-width: 0;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.page-header p {
  margin: 0;
  color: #aeb7d8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card,
.card,
.form-card {
  background: linear-gradient(180deg, rgba(23,28,49,0.95) 0%, rgba(17,22,38,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  font-size: 14px;
  color: #9aa6cf;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 19px;
  color: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  color: #b8bfdc;
  margin-bottom: 16px;
}

.form-card {
  max-width: 860px;
  padding: 24px;
}

.form-card label {
  display: block;
  margin: 14px 0 8px;
  color: #c9d0e8;
  font-size: 14px;
}

.form-card input[type="text"],
.form-card input[type="url"],
.form-card input[type="color"],
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: #0f1220;
  color: #fff;
  outline: none;
  margin-bottom: 14px;
}

.form-card textarea {
  resize: vertical;
  min-height: 120px;
}

.form-card input[type="color"] {
  height: 48px;
  padding: 6px;
}

.switch-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.alert.success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #b7ffd0;
}

.info-box {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: #d8ddff;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 10px 0 18px;
  font-size: 14px;
}

.form-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 24px 0;
}

.embed-field-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.guild-page {
  max-width: 760px;
  margin: 30px auto 0;
}

.box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
}

.box.success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.box.warning {
  background: rgba(241, 196, 15, 0.12);
  border: 1px solid rgba(241, 196, 15, 0.3);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .server-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .guild-settings-layout {
    grid-template-columns: 1fr;
  }

  .guild-sidebar {
    position: static;
    top: unset;
  }
}

@media (max-width: 800px) {
  .dashboard-topbar-inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page-header h1 {
    font-size: 36px;
  }
}

@media (max-width: 700px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

  .server-card-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-card-btn {
    width: 100%;
  }

  .stats-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 28px;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, #0e1324 0%, #0b1020 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
}

.footer-brand h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.footer-brand p {
  color: #aab3d4;
  max-width: 320px;
}

.footer-socials {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.footer-socials a {
  font-size: 14px;
  color: #8f9cc8;
  transition: 0.2s ease;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-column h4 {
  margin-bottom: 12px;
  font-size: 15px;
  color: #ffffff;
}

.footer-column a {
  display: block;
  color: #aab3d4;
  font-size: 14px;
  margin-bottom: 8px;
  transition: 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  color: #8f9cc8;
  font-size: 13px;
}

/* Responsive */

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.status-page {
  padding: 60px 0;
}

.status-header {
  text-align: center;
  margin-bottom: 30px;
}

.status-header h1 {
  font-size: 44px;
  margin-bottom: 10px;
}

.status-header p {
  color: #aab3d4;
}

.status-overview {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.status-big {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.status-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.status-stat {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

.status-stat span {
  display: block;
  color: #9da7d3;
  margin-bottom: 6px;
}

.status-stat strong {
  font-size: 20px;
}

.status-services {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.04);
  padding: 16px 20px;
  border-radius: 14px;
  gap: 20px;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-info h3 {
  margin: 0 0 4px;
}

.service-info small {
  color: #94a0cb;
}

.service-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.service-right small {
  color: #94a0cb;
}

.service-state {
  font-weight: 700;
}

.service-state.online {
  color: #2ecc71;
}

.service-state.offline {
  color: #e74c3c;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.online {
  background: #2ecc71;
}

.dot.offline {
  background: #e74c3c;
}

@media (max-width: 800px) {
  .status-stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-right {
    align-items: flex-start;
  }
}