/* Минималистичный Glass Morphism стили */
/* Белый фон, без градиентов, чистый стеклянный эффект */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #1a1a1a;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
}

/* Стили для страниц авторизации */
body.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  min-height: 100vh;
  position: relative;
}

/* Брендинг медиабазы */
.brand-header {
  text-align: center;
  margin-bottom: -40px;
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: visible;
}

.brand-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  animation: brandGlow 3s ease-in-out infinite alternate;
  line-height: 1;
  overflow: visible;
}

.brand-title img {
  display: block;
  margin: 0 auto;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translateY(-35px);
}

@keyframes brandGlow {
  from {
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 2px 30px rgba(255, 255, 255, 0.5);
  }
}

/* Стили для дашборда */
body.dashboard-page {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* WebGL Canvas Background */
#liquidGlassCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Основной Glass контейнер */
.glass-container {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  margin: 20px 0;
  
  /* Glass morphism эффект */
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  
  /* Тонкие тени для глубины */
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
}

.glass-container:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 6px 24px rgba(0, 0, 0, 0.06),
    0 3px 12px rgba(0, 0, 0, 0.03);
}

/* Стеклянные элементы интерфейса */
.glass-element {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

.glass-element:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 6px 24px rgba(0, 0, 0, 0.08),
    0 3px 12px rgba(0, 0, 0, 0.04);
}

/* Формы авторизации */
.auth-form {
  display: none;
  animation: glassSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-form.active {
  display: block;
}

@keyframes glassSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Заголовки */
.form-title {
  text-align: center;
  color: #1a1a1a;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.form-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Группы форм */
.form-group {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.form-label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

/* Стеклянные поля ввода */
.form-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  color: #1a1a1a;
  font-size: 16px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-weight: 400;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Стеклянные кнопки */
.form-button {
  width: 100%;
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 16px rgba(59, 130, 246, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-button:hover {
  background: rgba(59, 130, 246, 1);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 6px 24px rgba(59, 130, 246, 0.35),
    0 3px 12px rgba(0, 0, 0, 0.12);
}

.form-button:active {
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 8px rgba(59, 130, 246, 0.25);
}

.form-button:disabled {
  background: rgba(156, 163, 175, 0.6);
  cursor: not-allowed;
  transform: none;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Вторичные кнопки */
.form-button.secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #374151;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-button.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Ссылки и текст */
.register-suggestion,
.login-suggestion {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.register-text,
.login-text {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 400;
}

.register-link,
.login-link {
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.register-link:hover,
.login-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  transform: translateY(-1px);
}

/* Стили для чекбокса согласия с политикой конфиденциальности */
.privacy-agreement {
  margin-bottom: 20px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
}

.checkbox-container:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  flex-shrink: 0;
  margin-top: 2px;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.checkbox-container input:checked ~ .checkmark {
  background: rgba(59, 130, 246, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 8px rgba(59, 130, 246, 0.2);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
}

.privacy-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.privacy-link:hover {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.1);
  text-decoration: underline;
}

.checkbox-container:hover .checkmark {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 3px 12px rgba(0, 0, 0, 0.06);
}

.checkbox-container:hover input:checked ~ .checkmark {
  background: rgba(59, 130, 246, 1);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 3px 12px rgba(59, 130, 246, 0.25);
}

/* Сообщения */
.message {
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 8px rgba(34, 197, 94, 0.1);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Dashboard стили - интегрированная шапка */
.integrated-header {
  margin-bottom: 48px;
  padding: 32px 0;
  position: relative;
}

.brand-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand-title-dashboard {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.04em;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.brand-title-dashboard img {
  margin-top: -8px;
  margin-left: -35px;
}

.user-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-left: 12px;
  margin-top: 8px;
}

.user-dropdown-container {
  position: relative;
  display: inline-block;
}

.user-email {
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 8px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  margin-left: -6px;
}

.user-email:hover {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 8px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 64px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.1);
}

.user-dropdown-container:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.dropdown-item:hover::before {
  opacity: 1;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.dropdown-item.delete-account:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.dropdown-item.delete-account:hover::before {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.1) 0%,
    rgba(239, 68, 68, 0.05) 50%,
    rgba(239, 68, 68, 0.1) 100%);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  z-index: 1;
  position: relative;
}

.dropdown-item:hover svg {
  transform: scale(1.1);
}

.dropdown-item span {
  z-index: 1;
  position: relative;
}

.logout-btn-integrated {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #6b7280;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.logout-btn-integrated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.logout-btn-integrated:hover::before {
  opacity: 1;
}

.logout-btn-integrated:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.logout-btn-integrated:active {
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.logout-btn-integrated svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.logout-btn-integrated:hover svg {
  transform: translateX(1px);
}

/* Основной контент дашборда */
.dashboard-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

/* Секция команды */
.team-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.team-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-action-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #6b7280;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.team-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.team-action-btn:hover::before {
  opacity: 1;
}

.team-action-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.team-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  z-index: 1;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow:
    0 2px 8px rgba(239, 68, 68, 0.4),
    0 0 0 1px rgba(239, 68, 68, 0.2);
  animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 2px 8px rgba(239, 68, 68, 0.4),
      0 0 0 1px rgba(239, 68, 68, 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 
      0 4px 12px rgba(239, 68, 68, 0.6),
      0 0 0 2px rgba(239, 68, 68, 0.3);
  }
}

.no-team-state {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.no-team-content {
  max-width: 400px;
  margin: 0 auto;
}

.team-icon {
  margin-bottom: 24px;
  opacity: 0.6;
  color: #6b7280;
}

.no-team-state h4 {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.no-team-state p {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.team-info {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 32px;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.team-card {
  width: 100%;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 24px;
}

.team-main-info {
  flex: 1;
}

.team-name {
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.team-description {
  color: #6b7280;
  font-size: 16px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-owner,
.team-created {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.team-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.team-members {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 24px;
}

.team-members h5 {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.member-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.member-avatar {
  width: 32px;
  height: 32px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}

.member-name {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.owner-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Стили для приглашений */
.invitation-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.invitation-item:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.invitation-info {
  margin-bottom: 16px;
}

.invitation-info h4 {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.invitation-info p {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.invitation-date {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}

.invitation-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Стили для управления командой */
.team-management {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.management-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 24px;
}

.management-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.management-section h4 {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.members-management {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-management-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.member-management-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-actions {
  display: flex;
  gap: 8px;
}

.form-button.small {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  width: auto;
  margin-bottom: 0;
}

.form-button.danger {
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ffffff;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 16px rgba(239, 68, 68, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-button.danger:hover {
  background: rgba(239, 68, 68, 1);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 6px 24px rgba(239, 68, 68, 0.35),
    0 3px 12px rgba(0, 0, 0, 0.12);
}

.form-button.danger:active {
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 8px rgba(239, 68, 68, 0.25);
}

.danger-actions {
  padding: 20px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(239, 68, 68, 0.05);
}

/* Секция проектов */
.projects-section {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  text-align: left;
}

.section-header h3 {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.create-project-silhouette {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-silhouette {
  position: relative;
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-frame {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.project-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.05) 50%,
    rgba(59, 130, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.plus-icon {
  color: #3b82f6;
  z-index: 1;
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.create-project-silhouette:hover .project-frame {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(59, 130, 246, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.create-project-silhouette:hover .project-frame::before {
  opacity: 1;
}

.create-project-silhouette:hover .plus-icon {
  color: #2563eb;
  transform: scale(1.1);
}

.create-project-silhouette:active .project-frame {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(59, 130, 246, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.create-project-silhouette:active .plus-icon {
  transform: scale(1.05);
}

/* Карточка создания проекта */
.create-project-card {
  cursor: pointer;
  position: relative;
}

.create-project-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(59, 130, 246, 0.15);
}

.create-project-preview {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(59, 130, 246, 0.05);
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.create-project-card:hover .create-project-preview {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.02);
}

.create-project-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.create-project-card .plus-icon {
  color: rgba(59, 130, 246, 0.7);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.create-project-card:hover .plus-icon {
  color: rgba(59, 130, 246, 1);
  transform: scale(1.1);
}

.create-project-card .project-name {
  color: #1a1a1a;
  font-weight: 600;
}

.create-project-card .project-description {
  color: #6b7280;
  font-size: 13px;
}

.create-project-card:hover .project-name {
  color: #000000;
}

.create-project-card:hover .project-description {
  color: #374151;
}

/* Сетка проектов */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

/* Карточки проектов */
.project-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.project-preview {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(59, 130, 246, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  margin-bottom: 20px;
  color: #3b82f6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-preview:hover {
  transform: scale(1.02);
}

.project-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-preview:hover .project-preview-overlay {
  opacity: 1;
}

.change-thumbnail-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: #374151;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.change-thumbnail-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 6px 24px rgba(0, 0, 0, 0.15);
}

.project-info {
  text-align: left;
  margin-bottom: 16px;
}

.project-name {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.project-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 63px; /* 3 строки * 21px (line-height) */
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-date {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}

/* Действия с проектами */
.project-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-actions {
  opacity: 1;
}

.project-action-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: #6b7280;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-action-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.project-action-btn.delete-project:hover {
  color: #ef4444;
}

/* Режим редактирования карточек */
.project-card.editing {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 2px rgba(59, 130, 246, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.project-card.editing .project-name[contenteditable="true"] {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: -8px -12px 4px -12px;
  outline: none;
  transition: all 0.3s ease;
  display: block;
  width: calc(100% + 24px);
  box-sizing: border-box;
}

.project-card.editing .project-description[contenteditable="true"] {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px -12px 8px -12px;
  outline: none;
  transition: all 0.3s ease;
  min-height: 60px;
  display: block;
  width: calc(100% + 24px);
  box-sizing: border-box;
  resize: vertical;
}

.project-card.editing .project-name[contenteditable="true"]:focus,
.project-card.editing .project-description[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 3px rgba(59, 130, 246, 0.1);
}

.project-card.editing .project-actions {
  opacity: 1;
}

.project-card.editing .edit-project {
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
}

.project-card.editing .edit-project:hover {
  background: rgba(34, 197, 94, 1);
  color: #ffffff;
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.empty-icon {
  margin-bottom: 24px;
  opacity: 0.6;
}

.empty-state h4 {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 64px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  border-radius: 8px;
}

.modal-close:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Стили для страницы политики конфиденциальности */
.privacy-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 2rem;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 32px rgba(0, 0, 0, 0.08);
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
}

.privacy-subtitle {
  color: #6b7280;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

.privacy-content {
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 1rem;
}

.privacy-content h2 {
  color: #1a1a1a;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.privacy-content h3 {
  color: #374151;
  font-size: 1.2rem;
  margin: 2rem 0 0.8rem 0;
  font-weight: 600;
}

.privacy-content p {
  margin-bottom: 1.2rem;
  color: #374151;
}

.privacy-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.contact-info {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-info h2 {
  margin-top: 0;
}

.effective-date {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.effective-date p {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Скрытие элементов */
.hidden {
  display: none;
}

/* Анимации загрузки убраны для быстрого входа */

/* Адаптивность */
@media (max-width: 768px) {
  .dashboard-main {
    padding: 24px 16px;
  }
  
  .integrated-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px 0;
  }
  
  .brand-title-dashboard {
    font-size: 2.8rem;
  }
  
  .user-email {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .logout-btn-integrated {
    width: 40px;
    height: 40px;
  }
  
  .logout-btn-integrated svg {
    width: 16px;
    height: 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.auth-page {
    padding: 16px;
  }
  
  .glass-container {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .form-title {
    font-size: 28px;
  }
  
  .form-input,
  .form-button {
    padding: 14px 18px;
    border-radius: 14px;
  }
  
  .dashboard-main {
    padding: 20px 12px;
  }
  
  .integrated-header {
    padding: 20px 0;
    margin-bottom: 24px;
  }
  
  .brand-title-dashboard {
    font-size: 2.2rem;
  }
  
  .brand-section {
    gap: 8px;
  }
  
  .user-info {
    margin-left: 0;
  }
  
  .user-email {
    font-size: 13px;
  }
  
  .logout-btn-integrated {
    width: 36px;
    height: 36px;
  }
  
  .logout-btn-integrated svg {
    width: 14px;
    height: 14px;
  }
  
  .section-header h3 {
    font-size: 24px;
  }
}
