/* Reset and base styles */
:root {
  --primary: #ff0000;
  --primary-hover: #cc0000;
  --secondary: #2a2a2a;
  --secondary-hover: #3a3a3a;
  --success: #57f287;
  --success-hover: #45c46f;
  --danger: #ed4245;
  --danger-hover: #c53a3c;
  --background: #1a1a1a;
  --card-bg: #2a2a2a;
  --text: #ffffff;
  --text-secondary: #b9bbbe;
  --border: #404040;
  --shadow: rgba(0, 0, 0, 0.4);
  --header-bg: #2a2a2a;
  --footer-bg: #2a2a2a;
  --hero-bg: #ff0000;
  --hero-text: #ffffff;
  --feature-bg: #1a1a1a;
  --code-bg: #1a1a1a;
}

/* Section styles */
.section {
  padding: 80px 0;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark {
  --primary: #5865f2;
  --primary-hover: #6b74f3;
  --secondary: #4f545c;
  --secondary-hover: #5d6269;
  --success: #57f287;
  --success-hover: #68f396;
  --danger: #ed4245;
  --danger-hover: #ef5658;
  --background: #36393f;
  --card-bg: #2f3136;
  --text: #dcddde;
  --text-secondary: #b9bbbe;
  --border: #202225;
  --shadow: rgba(0, 0, 0, 0.4);
  --header-bg: #2f3136;
  --footer-bg: #2f3136;
  --hero-bg: #4752c4;
  --hero-text: #ffffff;
  --feature-bg: #36393f;
  --code-bg: #202225;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: "Inter", "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

a {
  text-decoration: none;
  color: var(--primary);
}

ul {
  list-style: none;
}

/* Header */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 5px var(--shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

nav ul {
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover {
  color: var(--primary);
  background-color: rgba(88, 101, 242, 0.1);
}

nav ul li a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Theme and Language Toggles */
.theme-toggle,
.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background-color: rgba(88, 101, 242, 0.1);
}

.theme-toggle svg,
.lang-toggle svg {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 5px rgba(255, 0, 0, 0.3);
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
  box-shadow: 0 2px 5px var(--shadow);
}

.btn-danger {
  background-color: var(--danger);
  color: #fff;
  box-shadow: 0 2px 5px rgba(237, 66, 69, 0.3);
}

.btn-success {
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 2px 5px rgba(87, 242, 135, 0.3);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.4);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 14px;
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 5px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.4);
}

.btn-discord img {
  width: 24px;
  margin-right: 10px;
}

/* Hero section */
.hero {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features section */
.features {
  padding: 100px 0;
  background-color: var(--card-bg);
}

.features h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.feature {
  background-color: var(--feature-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.feature h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.feature p {
  color: var(--text-secondary);
}

.runtimes-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  overflow-x: auto;
}

.runtime-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-width: 120px;
  flex: 0 0 auto;
}

.runtime-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--primary);
}

.runtime-icon {
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.runtime-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 12px;
}

.runtime-item:hover .runtime-icon {
  transform: scale(1.1);
}

/* Specific runtime colors with enhanced styling */
.runtime-item:nth-child(1) .runtime-icon i { 
  color: #f7df1e; 
  text-shadow: 0 0 10px rgba(247, 223, 30, 0.3);
}
.runtime-item:nth-child(2) .runtime-icon i { 
  color: #3776ab; 
  text-shadow: 0 0 10px rgba(55, 118, 171, 0.3);
}
.runtime-item:nth-child(3) .runtime-icon i { 
  color: #777bb4; 
  text-shadow: 0 0 10px rgba(119, 123, 180, 0.3);
}
.runtime-item:nth-child(4) .runtime-icon i { 
  color: #cc342d; 
  text-shadow: 0 0 10px rgba(204, 52, 45, 0.3);
}
.runtime-item:nth-child(5) .runtime-icon i { 
  color: #f89820; 
  text-shadow: 0 0 10px rgba(248, 152, 32, 0.3);
}

.runtime-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Responsive design for runtimes */
@media (max-width: 768px) {
  .runtimes-grid {
    gap: 15px;
    padding: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .runtime-item {
    width: 100px;
    padding: 12px;
    flex-shrink: 0;
  }
  
  .runtime-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .runtime-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .runtimes-grid {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .runtime-item {
    width: 80px;
    padding: 10px;
    flex-shrink: 0;
  }
  
  .runtime-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
  }
}

/* Login section */
.login-section {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.login-box {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.login-box:hover {
  box-shadow: 0 8px 20px var(--shadow);
  transform: translateY(-5px);
}

.login-box h2 {
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 800;
}

.login-box p {
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* Dashboard */
.dashboard {
  padding: 40px 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.dashboard-content {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
}

.dashboard-content h3 {
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 60px 0;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
}

.bot-card {
  background-color: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.bot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
}

.bot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.bot-header h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.bot-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-running {
  background-color: var(--success);
  color: #fff;
}

.status-stopped {
  background-color: var(--danger);
  color: #fff;
}

/* Admin Panel */
.admin-panel {
  padding: 40px 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card h3 {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.admin-section {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 30px;
  text-align: center;
}

.admin-section h3 {
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.admin-form {
  max-width: 500px;
  margin-bottom: 30px;
}

.admin-form h4 {
  margin-bottom: 15px;
  color: var(--text);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--card-bg);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

table th,
table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table th {
  background-color: var(--feature-bg);
  font-weight: 600;
  color: var(--text);
}

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

table tbody tr {
  transition: background-color 0.3s;
}

table tbody tr:hover {
  background-color: rgba(88, 101, 242, 0.05);
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #f5c6cb;
}

/* Bot details */
.bot-details {
  padding: 40px 0;
}

.bot-info {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 20px;
  text-align: center;
}

.bot-info p {
  margin-bottom: 10px;
  color: var(--text);
}

.bot-files,
.bot-logs {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 20px;
}

.bot-files h3,
.bot-logs h3 {
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.upload-form {
  margin-bottom: 20px;
}

.log-container {
  background-color: var(--code-bg);
  padding: 15px;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.log-container pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Fira Code", monospace;
  color: var(--text);
}

/* File view/edit */
.file-view,
.file-edit {
  padding: 40px 0;
}

.file-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.file-content {
  background-color: var(--code-bg);
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
}

.file-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Fira Code", monospace;
  color: var(--text);
}

.edit-form textarea {
  width: 100%;
  font-family: "Fira Code", monospace;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--code-bg);
  color: var(--text);
  min-height: 400px;
}

/* Unauthorized page */
.unauthorized {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.error-box {
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.error-box h2 {
  margin-bottom: 20px;
  color: var(--danger);
  font-weight: 800;
}

.error-box p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header a {
    margin-top: 15px;
  }

  .bot-actions {
    flex-direction: column;
  }

  .bot-actions a {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .file-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-actions {
    margin-top: 15px;
    width: 100%;
  }

  .file-actions a {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature,
.bot-card,
.stat-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.feature:nth-child(1) {
  animation-delay: 0.1s;
}
.feature:nth-child(2) {
  animation-delay: 0.2s;
}
.feature:nth-child(3) {
  animation-delay: 0.3s;
}

/* Custom file input */
.custom-file-input {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-file-input input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-file-label {
  display: block;
  padding: 12px;
  background-color: var(--feature-bg);
  border: 1px dashed var(--border);
  border-radius: 6px;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.custom-file-input:hover .custom-file-label {
  border-color: var(--primary);
  color: var(--primary);
}

/* Language switcher */
.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin: 0 5px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.language-switcher button.active {
  opacity: 1;
}

.language-switcher img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Team section */
.team {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.team h2 {
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background-color: var(--feature-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.team-member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 4px solid var(--primary);
}

.team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
}

.team-member h3 {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.discord-id {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}

.feature-icon {
  color: var(--primary);
  margin-bottom: 15px;
  width: 40px;
  height: 40px;
}

@media (min-width: 768px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Team Section */
.team {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #fff;
}

.team h2 {
  color: #ff0000;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
}

.team-members {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background-color: #2a2a2a;
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member-avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 15px;
  overflow: hidden;
}

.team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  color: #ff0000;
  font-size: 24px;
  margin-bottom: 10px;
}

.member-role {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
}

.member-description {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
}

/* Support Section */
.support {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
}

.support::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
  animation: pulse 4s infinite;
}

.support h2 {
  color: #ff0000;
  font-size: 48px;
  margin-bottom: 30px;
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: glow 2s ease-in-out infinite;
}

.support p {
  color: #ffffff;
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.social-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.btn-discord {
  display: inline-block;
  background-color: rgb(88, 101, 242);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Glowing Effect */
.btn-discord::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-discord:hover::before {
  width: 300px;
  height: 300px;
}

/* Enhanced Hover Effects */
.btn-discord:hover {
  background-color: rgb(71, 82, 196);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4),
              0 0 20px rgba(88, 101, 242, 0.2);
  animation: pulse 1.5s infinite;
}

.btn-discord:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 5px 10px rgba(88, 101, 242, 0.2);
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4),
                0 0 20px rgba(88, 101, 242, 0.2);
  }
  50% {
    box-shadow: 0 15px 30px rgba(88, 101, 242, 0.6),
                0 0 30px rgba(88, 101, 242, 0.3);
  }
  100% {
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4),
                0 0 20px rgba(88, 101, 242, 0.2);
  }
}

/* Float Animation */
.social-buttons a {
  animation: float 3s ease-in-out infinite;
}

.social-buttons a:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .support h2 {
    font-size: 36px;
  }
  
  .support p {
    font-size: 18px;
    padding: 0 20px;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-social {
    width: 100%;
    max-width: 280px;
  }
}

.admin-actions {
    padding: 20px 0;
}

.admin-actions .admin-section {
    margin-top: 15px;
}

/* Console Section */
.console-section {
    padding: 80px 0;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-box {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.console-box h2 {
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.console-box .form-group {
    margin-bottom: 25px;
}

.console-box .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text);
    font-size: 16px;
}

.console-box .btn-primary {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
}

.console-output {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.console-output h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 18px;
}

.output-box {
    background-color: var(--code-bg);
    border-radius: 6px;
    padding: 15px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn-discord, .btn-youtube {
    background: rgba(255, 255, 255, 0.1);
}

.btn-discord:hover {
    border-color: #7289DA;
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.3);
}

.btn-youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.navbar-profile-arrow {
    margin-left: 6px;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1);
    vertical-align: middle;
    pointer-events: none;
}
.navbar-profile.open .navbar-profile-arrow {
    transform: rotate(180deg);
}
.navbar-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    background: #23272f;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 #0008;
    min-width: 180px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
    pointer-events: none;
    filter: blur(4px);
    transition: 
        opacity 0.35s cubic-bezier(.4,2,.6,1),
        transform 0.35s cubic-bezier(.4,2,.6,1),
        filter 0.35s cubic-bezier(.4,2,.6,1);
}
.navbar-profile.open .navbar-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    filter: blur(0);
}

/* Modern Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show .cookie-modal {
    transform: translate(-50%, -50%) scale(1);
}

.cookie-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.cookie-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-header p {
    margin: 0;
    color: #a0a0a0;
    line-height: 1.6;
}

.cookie-categories {
    padding: 16px 24px;
}

.cookie-category {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.2);
}

.cookie-category.required {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.category-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-toggle input:checked + .toggle-slider {
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    border-color: transparent;
}

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

.category-toggle input:disabled + .toggle-slider {
    background: rgba(34, 197, 94, 0.5);
    cursor: not-allowed;
}

.category-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.category-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #a0a0a0;
    line-height: 1.5;
}

.cookie-actions {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    color: white;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.4);
}

.cookie-btn-outline {
    background: transparent;
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.cookie-btn-outline:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.5);
}

.cookie-btn-secondary {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
}

/* Advanced Settings Modal */
.advanced-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-settings-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.modal-body {
    padding: 16px 24px;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #a0a0a0;
    line-height: 1.6;
}

.advanced-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advanced-category {
    padding: 20px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.advanced-category:hover {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.2);
}

.advanced-category.required {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.category-controls {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.advanced-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.advanced-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.advanced-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.advanced-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.advanced-toggle input:checked + .advanced-slider {
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    border-color: transparent;
}

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

.advanced-toggle input:disabled + .advanced-slider {
    background: rgba(34, 197, 94, 0.5);
    cursor: not-allowed;
}

.category-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-details p {
    margin: 0 0 8px 0;
    color: #a0a0a0;
    line-height: 1.6;
}

.required-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    display: flex;
    justify-content: flex-end;
}

/* Cookie Settings Button */
.cookie-settings-btn {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.cookie-settings-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .category-header,
    .category-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .category-toggle,
    .advanced-toggle {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-header,
    .cookie-categories,
    .cookie-actions,
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .cookie-category,
    .advanced-category {
        padding: 16px;
    }
}

