/* Переменные стилей */
:root {
  --bg-dark: #050508;
  --bg-card: #0d0d15;
  --accent: #00f2fe;
  --accent-purple: #7f00ff;
  --text-main: #f5f5fa;
  --text-muted: #8a8a9e;
  --border: rgba(0, 242, 254, 0.15);
  --font-cyber: 'Orbitron', sans-serif;
  --font-main: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
}

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

/* Градиенты и Тексты */
.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Пульсация */
.pulse {
  animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Шапка */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.8);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-cyber);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}
.logo span { color: var(--accent); }

/* Главный Экран */
.hero {
  padding: 180px 0 100px 0;
  position: relative;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(127, 0, 255, 0.05) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.badge {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-cyber);
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero-desc {
  max-width: 650px;
  margin: 0 auto 40px auto;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Карточки фич */
.features { padding: 60px 0; }
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.feature-card .icon {
  font-size: 36px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-cyber);
  font-size: 18px;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Отзывы / Галерея сделок */
.deals { padding: 100px 0; }
.section-title {
  text-align: center;
  font-family: var(--font-cyber);
  font-size: 36px;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.deal-item {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.deal-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.deal-item:hover img {
  transform: scale(1.03);
}

.no-deals {
  text-align: center;
  grid-column: 1 / -1;
  color: var(--text-muted);
  padding: 40px;
}

/* Анимации при скролле */
.hidden-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.show-element {
  opacity: 1;
  transform: translateY(0);
}

/* Футер */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Стили для Панели Администратора --- */
#admin-wrapper {
  min-height: 100vh;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  padding: 40px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.admin-card h2, .dashboard-header h2 {
  font-family: var(--font-cyber);
  font-size: 20px;
  margin-bottom: 20px;
}
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.input-group label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.input-group input, .upload-box input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.error-text { color: #ff4a4a; font-size: 14px; margin-top: 10px; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 40px;
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-cyber);
  font-size: 36px;
  color: var(--accent);
  font-weight: 700;
}
.stat-label { color: var(--text-muted); font-size: 14px; }

.manager-section { width: 100%; margin-bottom: 40px; }
.manager-section h3 { font-family: var(--font-cyber); margin-bottom: 20px; font-size: 18px; }
.upload-box { display: flex; gap: 15px; background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.admin-gallery-item {
  position: relative;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
}
.admin-gallery-item img { width: 100%; height: auto; display: block; }
.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4a4a;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}
.delete-btn:hover { background: #cc3333; }

/* Медиа-запросы */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .upload-box { flex-direction: column; }
  
  /* Скрытие кнопки Telegram в шапке на мобильных экранах */
  .header .header-tg-btn {
    display: none !important;
  }
}