:root {
  --primary: #ff6b8a;
  --primary-dark: #e85577;
  --secondary: #ff8a6b;
  --accent: #ff6bcd;
  --bg-dark: #0f0f23;
  --bg-darker: #0a0a1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252542;
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #6060a0;
  --border: #2a2a4e;
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--secondary);
}

.navbar {
  background: var(--bg-darker);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.login-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
}

.nav-link.admin-link {
  color: var(--warning);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.logout-btn {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.main-content {
  flex: 1;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 107, 138, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-invite {
  background: #5865F2;
  color: white;
}

.btn-invite:hover {
  background: #4752c4;
  color: white;
}

.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stats-section {
  padding: 3rem 2rem;
  background: var(--bg-darker);
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

.featured-section, .bots-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bot-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.bot-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 107, 138, 0.15);
}

.bot-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bot-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.bot-info h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
}

.verified-badge.large {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.bot-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--bg-darker);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.bot-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.vote-count {
  color: var(--primary);
}

.bot-actions {
  display: flex;
  gap: 0.75rem;
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

.page-header {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-darker);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

.page-header .btn {
  margin-top: 1rem;
}

.filters-section {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.search-box {
  display: flex;
  flex: 1;
  min-width: 300px;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-options {
  display: flex;
  gap: 1rem;
}

.filter-options select {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}

.filter-options select:focus {
  outline: none;
  border-color: var(--primary);
}

.no-bots {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.page-info {
  color: var(--text-secondary);
}

.bot-profile {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.bot-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.bot-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  object-fit: cover;
}

.bot-header-info {
  flex: 1;
}

.bot-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bot-name-row h1 {
  font-size: 2.5rem;
}

.bot-short-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.bot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.meta-item strong {
  color: var(--text-primary);
}

.bot-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.owner-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.delete-form {
  display: inline;
}

.bot-description-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
}

.bot-description-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.bot-description-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.bot-description-content h1, .bot-description-content h2, .bot-description-content h3 {
  color: var(--text-primary);
  margin: 1.5rem 0 1rem;
}

.bot-description-content p {
  margin-bottom: 1rem;
}

.bot-description-content code {
  background: var(--bg-darker);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

.bot-description-content pre {
  background: var(--bg-darker);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.bot-description-content ul, .bot-description-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.form-page {
  padding: 3rem 2rem;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-container h1 {
  margin-bottom: 0.5rem;
}

.form-container > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.bot-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.tags-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.tag-option input {
  width: auto;
}

.tag-option span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tag-option input:checked + span {
  color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.user-bots-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.bots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bot-list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.bot-list-info {
  flex: 1;
}

.bot-list-info h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.bot-list-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.bot-status {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.status-badge.approved {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success);
}

.status-badge.pending {
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning);
}

.bot-list-actions {
  display: flex;
  gap: 0.5rem;
}

.profile-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.profile-info h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

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

.admin-badge {
  background: var(--warning);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: inline-block;
}

.profile-bots h2 {
  margin-bottom: 1.5rem;
}

.admin-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pending-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.pending-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.pending-info h3 {
  margin-bottom: 0.5rem;
}

.pending-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pending-description {
  margin-bottom: 1.5rem;
}

.pending-description h4 {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.pending-description h4:first-child {
  margin-top: 0;
}

.pending-actions {
  display: flex;
  gap: 0.75rem;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-content {
  max-width: 400px;
}

.error-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.error-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.error-page .error-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  background: none;
  border: none;
  padding: 0;
}

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: 0.75rem;
  }
  
  .nav-link:not(.login-btn) {
    display: none;
  }
  
  .bot-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .bot-meta {
    justify-content: center;
  }
  
  .bot-tags {
    justify-content: center;
  }
  
  .bot-actions-bar {
    justify-content: center;
  }
}
