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

:root {
  --primary-color: #00ff88;
  --secondary-color: #0066ff;
  --dark-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --accent-purple: #8b5cf6;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.nav-logo h2 {
  font-family: "Orbitron", monospace;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.admin-btn {
  background: linear-gradient(45deg, var(--accent-purple), var(--secondary-color));
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white !important;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, var(--primary-color), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--secondary-color), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent-purple), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: float 20s infinite linear;
  opacity: 0.3;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-200px, -200px);
  }
}

.hero-content {
  text-align: center;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 102, 255, 0.5);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.download-btn {
  position: relative;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.download-btn:hover .btn-glow {
  left: 100%;
}

/* Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* News Section */
.news-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
}

.news-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.news-content {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Lore Section */
.lore-section {
  padding: 5rem 0;
  background: var(--dark-bg);
}

.lore-content {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 3rem;
  border: 1px solid rgba(0, 102, 255, 0.1);
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-gray);
}

/* Contacts Section */
.contacts-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.contact-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.discord-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  color: #5865f2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact-card p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.discord-btn {
  display: inline-block;
  background: #5865f2;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.discord-widget {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.discord-widget iframe {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  border: 1px solid rgba(0, 255, 136, 0.2);
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

/* Добавляем стили для модального окна капчи */
.captcha-modal {
  max-width: 400px;
  max-height: none;
}

.captcha-content {
  padding: 2rem;
  text-align: center;
}

.captcha-content p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.captcha-question {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.captcha-content input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.captcha-content input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

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

.refresh-btn,
.verify-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.captcha-error {
  color: #ff4757;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 20px;
  font-weight: 500;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.modal-header h2 {
  color: var(--text-light);
  font-family: "Orbitron", monospace;
}

.close {
  color: var(--text-gray);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.admin-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(0, 255, 136, 0.1);
}

.admin-content-scrollable {
  flex: 1;
  overflow-y: auto;
  max-height: calc(80vh - 200px);
}

.admin-content-scrollable::-webkit-scrollbar {
  width: 8px;
}

.admin-content-scrollable::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.admin-content-scrollable::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

.admin-content-scrollable::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.admin-form {
  margin-bottom: 2rem;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-family: inherit;
  resize: vertical;
}

.admin-form textarea {
  min-height: 120px;
}

.admin-form button {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.news-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.news-item-content h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.news-item-content p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.delete-btn {
  background: #ff4757;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}

.delete-btn:hover {
  background: #ff3742;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 350px;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.toast.success {
  border-color: rgba(0, 255, 136, 0.5);
}

.toast.success::before {
  background: linear-gradient(90deg, var(--primary-color), #00cc6a);
}

.toast.error {
  border-color: rgba(255, 71, 87, 0.5);
}

.toast.error::before {
  background: linear-gradient(90deg, #ff4757, #ff3742);
}

.toast.info {
  border-color: rgba(0, 102, 255, 0.5);
}

.toast.info::before {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-purple));
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.toast-close:hover {
  color: var(--text-light);
}

/* File Manager Styles */
.file-manager {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.folder-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.folder-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.folder-tab.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.folder-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
}

.upload-section {
  background: rgba(0, 255, 136, 0.05);
  border: 2px dashed rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-section:hover {
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.08);
}

.upload-section input[type="file"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  width: 100%;
  cursor: pointer;
}

.upload-section input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
}

.upload-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-info p {
  color: var(--text-gray);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.upload-info span {
  color: var(--primary-color);
  font-weight: 500;
  font-family: "Orbitron", monospace;
}

.files-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.files-list::-webkit-scrollbar {
  width: 8px;
}

.files-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.files-list::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.file-item:hover {
  background: rgba(0, 255, 136, 0.05);
}

.file-item:last-child {
  border-bottom: none;
}

.file-info {
  flex: 1;
}

.file-name {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-family: "Orbitron", monospace;
}

.file-details {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.file-size {
  color: var(--primary-color);
}

.file-date {
  color: var(--text-gray);
}

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

.download-file-btn,
.replace-file-btn,
.delete-file-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-file-btn {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-purple));
  color: white;
}

.download-file-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.replace-file-btn {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
}

.replace-file-btn:hover {
  background: linear-gradient(45deg, #e67e22, #d35400);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.delete-file-btn {
  background: #ff4757;
  color: white;
}

.delete-file-btn:hover {
  background: #ff3742;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.no-files {
  text-align: center;
  padding: 3rem;
  color: var(--text-gray);
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.file-types-info {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
}

.file-types-info strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

#allowedTypes {
  color: var(--text-gray);
  line-height: 1.4;
}

/* Drag & Drop Zone Styles */
.drop-zone {
  border: 2px dashed rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 255, 136, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  cursor: pointer;
}

.drop-zone.drag-over {
  border-color: var(--primary-color);
  background: rgba(0, 255, 136, 0.15);
  transform: scale(1.02);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.drop-zone p {
  margin: 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

.drop-zone input[type="file"] {
  display: none;
}

.file-select-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
}

.file-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  /* Адаптивные стили для капчи */
  .captcha-modal {
    width: 90%;
    margin: 20% auto;
  }

  .captcha-question {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .captcha-buttons {
    flex-direction: column;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    right: 10px;
    left: 10px;
  }

  .toast {
    max-width: none;
    transform: translateY(-100px);
  }

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

  .discord-widget iframe {
    width: 100% !important;
    max-width: 350px;
    height: 400px !important;
  }

  .contact-card {
    max-width: 100%;
    padding: 2rem;
  }

  .folder-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .folder-tab {
    text-align: center;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .file-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .upload-section {
    padding: 1.5rem;
  }

  .upload-info {
    text-align: left;
  }

  .drop-zone {
    padding: 1.5rem;
  }
}
