@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
  --background: #1A1A2E;
  --foreground: #F5F5F5;
  --primary: #E6007E;
  --primary-hover: #EC4A88;
  --muted: rgba(26,26,46,0.85);
  --border: #3C3C58;
  --radius: 8px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  --card-bg: rgba(255, 255, 255, 0.05);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--foreground);
  position: relative;
  overflow-x: hidden;
}
.separator {
  display: none;
}
@media (max-width: 768px) {
  .separator {
    display: block;
    height: 1px;
    background-color: var(--card-bg);
    margin: 30px 0;
  }
  .main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
  }
  .navbar-left, .navbar-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    gap: 10px;
  }
  .site-title {
    display: none;
  }
  .user-info .avatar {
    width: 30px;
    height: 30px;
  }
  .user-info .username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
  }
  .login-btn, .dropdown-toggle {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .navbar-right {
    flex-wrap: wrap;
  }
}
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #1A1A2E, #3E1E4E, #8E1C7D, #1A1A2E);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  z-index: -1;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.logo-circle-nav {
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  max-width: 60px;
  vertical-align: middle;
}
.logo-circle-nav img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,26,46,0.9);
  padding: 10px 20px;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
}
.navbar-left {
  gap: 10px;
}
.navbar-left .logo {
  width: 40px;
  height: 40px;
}
.navbar-left .site-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.navbar-right {
  gap: 20px;
}
.cta-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: var(--background);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}
.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.user-info {
  display: flex;
  align-items: center;
}
.user-info .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.user-info .username {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  cursor: pointer;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--background);
  min-width: 140px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 1;
}
.dropdown-content a {
  color: var(--primary);
  padding: 10px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
}
.dropdown-content a:hover {
  background: var(--card-bg);
}
.dropdown.show .dropdown-content {
  display: block;
}
#create-bot {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  background: var(--primary);
  color: var(--background);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
#create-bot:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.create-bot-container {
  text-align: center;
  margin: 80px auto 20px;
}
.bots-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.bot-card {
  background: rgba(26,26,46,0.85);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}
.bot-card:hover {
  transform: translateY(-3px);
}
.bot-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}
.bot-card.pending {
  border: 2px solid var(--primary);
}
.abutton {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--background);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}
.abutton:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.countdown {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--foreground);
}
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
  animation: pulsate 1.5s infinite;
}
@keyframes pulsate {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.status-indicator.running {
  background: green;
}
.status-indicator.stopped {
  background: red;
}
.status-indicator.starting {
  background: yellow;
}
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(26,26,46,0.9);
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--foreground);
}
footer a {
  color: var(--primary);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--card-bg);
  }
  .navbar-left, .navbar-right {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
  }
  .bots-container {
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .create-bot-container {
    margin-top: 150px;
  }
  .user-info .avatar {
    width: 30px;
    height: 30px;
  }
  .user-info .username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.hidden {
  display: none;
}
.modal {
  background: rgba(26,26,46,0.95);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.modal h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}
.modal p {
  margin-bottom: 15px;
}
#modal-input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  background: var(--muted);
  color: var(--foreground);
}
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.modal-buttons button {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--background);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.modal-buttons button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.hidden {
  display: none !important;
}

.content-container {
  max-width: 800px;
  margin: 100px auto 80px;
  padding: 0 20px;
}
.warning-box {
  background: rgba(230, 0, 126, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.commands-box {
  background: rgba(26,26,46,0.85);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.commands-box h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}
.commands-box h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 5px;
}
.commands-box ul {
  list-style: none;
  padding-left: 0;
}
.commands-box li {
  margin: 8px 0;
  font-size: 1rem;
}
.commands-box code {
  background: var(--card-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}