:root {
  --bg-color: #080914;
  --bg-gradient: radial-gradient(circle at 50% 50%, #121430 0%, #080914 100%);
  --panel-bg: rgba(18, 20, 38, 0.45);
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-glow: rgba(255, 69, 0, 0.03);
  
  --primary: #ff4500;
  --primary-hover: #ff6026;
  --primary-glow: rgba(255, 69, 0, 0.35);
  --secondary: #6e00ff;
  --secondary-glow: rgba(110, 0, 255, 0.25);
  
  --success: #00ffaa;
  --success-glow: rgba(0, 255, 170, 0.25);
  --error: #ff3366;
  --error-glow: rgba(255, 51, 102, 0.25);
  
  --text-main: #f5f6fa;
  --text-muted: #8d92b0;
  --sidebar-bg: rgba(5, 6, 12, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 69, 0, 0.3);
}

body {
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--panel-border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2rem;
  margin-bottom: 2.5rem;
}

.logo h2 {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: linear-gradient(to right, #fff 60%, #ff4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-logo-img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--primary-glow));
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); filter: drop-shadow(0 0 4px var(--primary-glow)); }
  to { transform: scale(1.1); filter: drop-shadow(0 0 12px var(--primary-glow)); }
}

/* Sidebar User Info */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 1.5rem;
}

.user-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.user-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.user-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Navigation Links */
.nav-links {
  list-style: none;
  flex: 1;
}

.nav-links li {
  padding: 0.9rem 2rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  border-left: 4px solid transparent;
}

.nav-links li:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.nav-links li.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 69, 0, 0) 100%);
  border-left-color: var(--primary);
}

.bot-status {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ffaa;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-glow);
}

/* Main Content Area */
.content {
  flex: 1;
  padding: 2rem 3.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

header h1 {
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #fff 0%, #a2a6c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.current-server-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}

.current-server-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.current-server-info span {
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-logout {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-logout:hover {
  border-color: var(--error);
  color: var(--error);
  box-shadow: 0 0 10px var(--error-glow);
}

.btn-back-server {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-back-server:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Glass Panels */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
}

.glass::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 12px var(--panel-glow);
  pointer-events: none;
}

/* Landing / Login View */
.landing-view {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
  position: relative;
  background: var(--bg-color);
  background-image: var(--bg-gradient);
}

/* Sticky Header / Navbar */
.landing-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 1.25rem 2rem;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(8, 9, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-logo {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.landing-brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff 60%, #ff4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .landing-nav-menu {
    display: none;
  }
}

.landing-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.landing-nav-link:hover, .landing-nav-link.active {
  color: #fff;
}

.landing-nav-link.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

.btn-landing-login {
  background: rgba(18, 20, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.6rem 1.6rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-landing-login:hover {
  background: rgba(255, 69, 0, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.25);
  transform: translateY(-1px);
}

/* Hero Section */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem 2rem;
  max-width: 850px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-badge:hover {
  background: rgba(255, 69, 0, 0.12);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #3a86ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #3a86ff;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4c9e8;
}

.badge-arrow {
  font-size: 0.85rem;
  color: #c4c9e8;
  transition: transform 0.25s ease;
}

.hero-badge:hover .badge-arrow {
  transform: translateX(3px);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions button {
    width: 100%;
    justify-content: center;
  }
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3a86ff 0%, #0025a3 100%);
  color: white;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(58, 134, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(58, 134, 255, 0.5);
  filter: brightness(1.1);
}

.btn-hero-secondary {
  background: rgba(18, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f6fa;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 2.2rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Stats Bar */
.landing-stats {
  width: 100%;
  max-width: 1200px;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 5rem;
}

.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 992px) {
  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Features Showcase */
.landing-features {
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin-bottom: 8rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

@media (max-width: 900px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
}

.feature-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.feature-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Discord Simulator Styles */
.discord-chat-container {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  overflow: hidden;
  width: 100%;
}

.discord-message {
  display: flex;
  gap: 14px;
}

.discord-avatar-container {
  flex-shrink: 0;
}

.discord-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.user-av-1 { background-color: #5865F2; }
.user-av-2 { background-color: #3ba55d; }

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.discord-message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.discord-user-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-username {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.95rem;
}

.discord-botname {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.95rem;
}

.discord-bot-badge {
  background: #5865F2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.discord-timestamp {
  color: #949ba4;
  font-size: 0.75rem;
}

.discord-command-used {
  color: #dbdee1;
  font-size: 0.95rem;
}

.command-highlight {
  color: #00a8fc;
  font-weight: 500;
}

/* Discord Embed Box */
.discord-embed {
  background: #2b2d31;
  border-left: 4px solid #1e1f22;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 6px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-embed.accent-green { border-left-color: #248046; }
.discord-embed.accent-cyan { border-left-color: #00b0f4; }
.discord-embed.accent-blue { border-left-color: #5865F2; }
.discord-embed.accent-purple { border-left-color: #9b59b6; }

.embed-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.embed-fields-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.embed-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.embed-description {
  color: #dbdee1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.embed-highlight {
  color: #ffffff;
  font-weight: 600;
}

.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-name {
  color: #949ba4;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-value {
  color: #dbdee1;
  font-size: 0.85rem;
}

.embed-thumbnail {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-rocket-mock {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px;
}

.embed-footer {
  color: #949ba4;
  font-size: 0.75rem;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 6px;
}

.discord-mention {
  color: #c9cdfb;
  background: rgba(88, 101, 242, 0.3);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 500;
}

.text-muted-discord {
  color: #949ba4;
}

/* Footer Section */
.landing-footer {
  width: 100%;
  max-width: 1200px;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Server Selection Grid */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.server-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 69, 0, 0.25);
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.05);
}

.server-icon-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.server-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 2px solid var(--panel-border);
}

.server-card:hover .server-icon {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.bot-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid var(--bg-color);
}

.bot-badge.in { background: var(--success); color: #000; }
.bot-badge.out { background: var(--text-muted); color: #fff; }

.server-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.server-card .btn-manage {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6026 100%);
  color: white;
  border: none;
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.server-card .btn-manage:hover {
  box-shadow: 0 0 15px var(--primary-glow);
}

.server-card .btn-invite {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.server-card .btn-invite:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  color: #fff;
}

.server-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Stats Dashboard Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.75rem;
  border-radius: 16px;
}

.stat-card h3 {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Page transitions */
.page {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Configuration Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--panel-border);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.setting-item:last-of-type {
  border-bottom: none;
}

.setting-info {
  padding-right: 1.5rem;
}

.setting-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.setting-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Switches & Controls */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Inputs & Selects */
.premium-select, .premium-input {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid var(--panel-border);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  min-width: 160px;
}

.premium-select:focus, .premium-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.premium-input {
  width: 100%;
}

.premium-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.premium-input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.save-btn {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff6026 100%);
  color: white;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.save-btn:hover {
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* Whitelist & Blacklist Manager Lists */
.manager-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .manager-layout { grid-template-columns: 1fr; }
}

.list-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.list-input-group input, .list-input-group select {
  flex: 1;
}

.btn-add {
  background: var(--success);
  color: #000;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-add:hover {
  box-shadow: 0 0 10px var(--success-glow);
}

.data-table-container {
  max-height: 400px;
  overflow: auto;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.btn-action-delete {
  background: rgba(255, 51, 102, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 51, 102, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-action-delete:hover {
  background: var(--error);
  color: #fff;
  box-shadow: 0 0 8px var(--error-glow);
}

/* Logging layout list */
.logs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .logs-grid { grid-template-columns: 1fr; }
}

.logs-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.log-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 4px solid var(--primary);
  border: 1px solid var(--panel-border);
  border-left-width: 4px;
}

.log-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.log-time {
  color: var(--primary);
  font-weight: 700;
}

.log-mod {
  color: var(--text-muted);
}

.log-body {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
}

/* Welcome Page Layout */
.welcome-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  border-left: 4px solid var(--secondary);
}

.welcome-preview-box h5 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.welcome-preview-content {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Toast Messages */
#toast {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  padding: 1.1rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  z-index: 10000;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 420px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.toast-success {
  background: rgba(0, 255, 170, 0.15);
  border: 1.5px solid var(--success);
  box-shadow: 0 8px 30px var(--success-glow);
  backdrop-filter: blur(12px);
  color: #fff;
}

#toast.toast-error {
  background: rgba(255, 51, 102, 0.15);
  border: 1.5px solid var(--error);
  box-shadow: 0 8px 30px var(--error-glow);
  backdrop-filter: blur(12px);
  color: #fff;
}

/* Server Overview Page Enhancements */
.server-details-panel {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.server-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}

@media (max-width: 768px) {
  .server-profile-header {
    flex-direction: column;
    text-align: center;
  }
}

.server-profile-icon-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.server-profile-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-initials {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.server-profile-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.server-profile-main h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.server-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  font-style: italic;
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-card:hover {
  border-color: rgba(255, 69, 0, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.features-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.feature-badge {
  background: rgba(110, 0, 255, 0.15);
  color: #cbb3ff;
  border: 1px solid rgba(110, 0, 255, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

/* --- Mobile Responsive Navigation & Sidebar Toggle --- */

/* Menu Toggle Button styling */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.menu-toggle:hover {
  border-color: var(--primary);
  background: rgba(255, 69, 0, 0.08);
  box-shadow: 0 0 10px var(--primary-glow);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Overlay styling */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Media Query for mobile & tablet screens */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    border-right: 1px solid var(--panel-border);
  }

  .sidebar.open {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .content {
    padding: 1.5rem;
    width: 100%;
  }

  header {
    margin-bottom: 1.5rem;
    gap: 12px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .current-server-info {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: space-between;
  }

  /* Optimize glass cards padding on mobile */
  .glass {
    padding: 1.5rem;
  }

  /* Improve grid alignments on narrow screens */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .server-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  /* Whitelist/Blacklist mobile alignment fixes */
  .list-input-group {
    flex-direction: column;
    gap: 8px;
  }

  .list-input-group .premium-select {
    max-width: 100% !important;
  }

  .data-table th, .data-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Landing page visual adjustments */
  .landing-view {
    padding: 1.5rem;
  }

  .landing-view h1 {
    font-size: 2.2rem;
  }

  .landing-view p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* Commands Documentation Section */
.landing-commands {
  width: 100%;
  max-width: 1000px;
  padding: 4rem 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 5rem;
}

.commands-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.commands-badge {
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.15);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.commands-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.commands-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Filter Row */
.commands-filter-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 600px) {
  .commands-filter-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

#commands-search-input {
  width: 100%;
  background: rgba(18, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
}

#commands-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.category-select-wrapper {
  position: relative;
  min-width: 220px;
}

.select-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

#commands-category-select {
  width: 100%;
  background: rgba(18, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.25s ease;
}

#commands-category-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.category-select-wrapper::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-muted);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Category Headers and Groups */
.commands-category-group {
  margin-bottom: 2.5rem;
}

.category-group-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.commands-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Command Card styling */
.command-card {
  background: rgba(18, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.command-card:hover {
  border-color: rgba(255, 69, 0, 0.2);
  transform: translateY(-2px);
  background: rgba(18, 20, 38, 0.55);
}

.command-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.command-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.command-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.command-card-details {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .command-card-details {
    flex-direction: column;
    gap: 1rem;
  }
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-usage-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #c4c9e8;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow-x: auto;
}

.detail-aliases-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.alias-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: monospace;
}

.no-commands-msg {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Premium Pricing Page Animations & Hover Rules */
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary) !important;
  box-shadow: 0 15px 45px rgba(255, 69, 0, 0.18) !important;
}

.btn-purchase:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 12px 30px rgba(255, 69, 0, 0.5) !important;
}

.btn-trial:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}