:root {
  --ny-red-dark: #b31217;
  --ny-red-primary: #dc3545;
  --ny-white: #f8f9fa;
  --ny-gold: #ffd700;
  --ny-green: #28a745;
  --ny-text-dark: #343a40;
  --ny-text-light: #ffffff;
  --ny-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Inter', 'Manrope', sans-serif;
  background: linear-gradient(160deg, var(--ny-red-dark) 0%, var(--ny-red-primary) 100%);
  color: var(--ny-text-light);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Текстура фона */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
header {
  padding: 20px 0;
  position: relative; /* Убираем sticky для простоты */
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ny-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo i {
  color: var(--ny-gold);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--ny-gold));
}

.logo span {
  font-weight: 400;
  opacity: 0.9;
}

.theme-toggle {
  display: none; /* Скрываем кнопку темы, т.к. тема одна */
}

/* Main Content */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  width: 100%;
}

.main-panel {
  background: rgba(45, 52, 64, 0.65); /* Темный фон как на скриншоте */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 550px;
  width: 100%;
  text-align: center;
}

.main-panel h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--ny-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-panel p.subtitle {
  font-size: 1rem;
  color: var(--ny-white);
  opacity: 0.8;
  margin-bottom: 30px;
}

/* Секции внутри панели */
.action-section {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.action-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.action-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  text-align: left;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.action-icon.create {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.action-icon.join {
  background: linear-gradient(135deg, var(--ny-green), #218838);
}

.action-section h2 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ny-white);
}

.action-section p {
  text-align: left;
  opacity: 0.8;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  width: 100%;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn.btn-create {
  background: #3498db;
}

.btn.btn-create:hover {
  background: #2980b9;
}

.btn.btn-join {
  background: var(--ny-green);
}

.btn.btn-join:hover {
  background: #218838;
}

.contacts-footer {
  margin-top: 30px;
}

.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ny-border);
  width: auto;
}

.btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--ny-gold);
}


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

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 35px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ny-text-dark);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  font-size: 1.8rem;
  color: var(--ny-text-dark);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: var(--ny-red-dark);
  font-weight: 700;
  text-align: center;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
  border-color: var(--ny-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
  background-color: white;
}

.modal-footer {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.error-message {
  color: #e74c3c;
  margin-top: 15px;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  font-weight: 500;
}

/* Footer */
footer {
  padding: 30px 0;
  text-align: center;
  color: var(--ny-white);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.heart {
  color: #ff6b6b;
  animation: pulse 1.5s infinite;
  display: inline-block;
}

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

@media (max-width: 768px) {
  .logo span {
    display: none;
  }
}
