:root {
  --primary-color: #dc3545;
  --primary-hover: #bb2d3b;
  --border-radius: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --footer-height: 56px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Общие стили */
.screen {
  min-height: calc(100vh - var(--footer-height));
}

#app {
  flex: 1;
}

body > .container {
  flex: 1;
}

/* Контент страниц */
.app-main {
  flex: 1 0 auto;
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
}

.app-main .container,
.app-main .container-fluid {
  background: transparent;
}

/* Карточки контента */
.content-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-card .card-body {
  background: transparent;
}

/* Футер */
.site-footer {
  position: relative;
  background: linear-gradient(to top, #ffffff, #f8f9fa);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  min-height: var(--footer-height);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.footer-social-link:nth-child(1):hover {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

.footer-social-link:nth-child(2):hover {
  background: #0088cc;
  color: #fff;
  border-color: #0088cc;
}

.site-footer small {
  font-size: 0.8rem;
}

/* Автодополнение города */
.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
}

.city-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.city-suggestion-item:hover {
  background: #f8f9fa;
}

.city-suggestion-name {
  font-weight: 600;
}

.city-suggestion-meta {
  font-size: 0.85rem;
  color: #777;
}

/* Навигация */
.app-navbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
}

.app-navbar-inner {
  gap: 12px;
}

.navbar-brand {
  text-decoration: none !important;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.brand-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #dc3545 0%, #c5426e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(220, 53, 69, 0.15);
  border-radius: 999px;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-action i {
  font-size: 1.15rem;
  color: #dc3545;
}

.nav-action:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 53, 69, 0.3);
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
  background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
}

.nav-action:active {
  transform: translateY(0);
}

.nav-action:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.nav-action-accent {
  border-color: rgba(102, 126, 234, 0.2);
}

.nav-action-accent i {
  color: #667eea;
}

.nav-action-accent:hover {
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, #fff 0%, #f0f2ff 100%);
}

.nav-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-menu-btn {
  padding-left: 14px;
  padding-right: 14px;
  gap: 8px;
}

/* Профиль аватар в навигации */
.profile-avatar-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #28a745;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Фотографии профиля */
.profile-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.profile-photo .delete-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-photo:hover .delete-photo-btn {
  opacity: 1;
}

@media (max-width: 576px) {
  .nav-label {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .nav-action {
    padding: 8px;
  }
  
  .brand-icon {
    width: 36px;
    height: 36px;
  }
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Экран приветствия */
.welcome-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #dc3545 100%);
  color: white;
}

.welcome-content {
  animation: fadeInUp 1s ease-out;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-container i {
  font-size: 4rem;
  animation: heartbeat 1.5s infinite;
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.slogan {
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.95;
}

.description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Авторизация */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #ffeef4 0%, #ffe4f0 50%, #ffd9ea 100%);
}

.auth-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffeef4 0%, #ffe4f0 50%, #ffd9ea 100%);
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(220, 53, 69, 0.15);
  max-width: 450px;
  width: 100%;
  animation: fadeInUp 0.5s ease-out;
  border: 1px solid rgba(255, 107, 157, 0.1);
}

.auth-logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
}

.auth-logo-icon i {
  font-size: 2.5rem;
  color: white;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 157, 0.4);
  background: linear-gradient(135deg, #ff5a8f 0%, #b83860 100%);
  color: white;
}

/* Алиас для розовой кнопки */
.btn-gradient-pink {
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.btn-gradient-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 157, 0.4);
  background: linear-gradient(135deg, #ff5a8f 0%, #b83860 100%);
  color: white;
}

/* Контурная розовая кнопка */
.btn-outline-pink {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-pink:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.3);
}

/* Разделенные поля для ввода СМС кода */
.code-inputs-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}

.code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid #ffe4f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
  background: #fff5f9;
}

.code-input:focus {
  border-color: #ff6b9d;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
  transform: scale(1.05);
}

.code-input:not(:placeholder-shown) {
  background: white;
  border-color: #ff6b9d;
  color: #c5426e;
}

.code-input.error {
  border-color: #ff4d7a;
  background: #fff0f5;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.auth-card .form-control {
  border: 2px solid #ffe4f0;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: #fff5f9;
}

.auth-card .form-control:focus {
  border-color: #ff6b9d;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
  outline: none;
}

.auth-card .form-label {
  font-weight: 600;
  color: #c5426e;
  margin-bottom: 8px;
}

.auth-card .btn-link {
  color: #ff6b9d;
  font-weight: 500;
  text-decoration: none;
}

.auth-card .btn-link:hover {
  color: #c5426e;
  text-decoration: underline;
}

.auth-card a {
  color: #ff6b9d;
  text-decoration: none;
  font-weight: 500;
}

.auth-card a:hover {
  color: #c5426e;
  text-decoration: underline;
}

/* Свайп карточки */
#swipe-container {
  max-width: 400px;
  margin: 0 auto;
  perspective: 1000px;
}

.swipe-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-out;
  transition: transform 0.3s ease;
}

.swipe-card.swipe-left {
  animation: swipeLeft 0.5s ease-out forwards;
}

.swipe-card.swipe-right {
  animation: swipeRight 0.5s ease-out forwards;
}

@keyframes swipeLeft {
  to {
    transform: translateX(-150%) rotate(-30deg);
    opacity: 0;
  }
}

@keyframes swipeRight {
  to {
    transform: translateX(150%) rotate(30deg);
    opacity: 0;
  }
}

.card-photos {
  position: relative;
  width: 100%;
  padding-top: 120%;
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
}

.card-photos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff6b9d 0%, #c5426e 100%);
  opacity: 0.1;
  z-index: 0;
}

.card-photos img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.photo-dots {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 10;
}

.photo-dot {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  transition: background 0.3s;
}

.photo-dot.active {
  background: white;
}

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-nav:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.photo-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.swipe-card:hover .photo-nav {
  opacity: 1;
}

.photo-prev {
  left: 12px;
}

.photo-next {
  right: 12px;
}

/* Анимация смены фото */
@keyframes photoSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes photoSlideOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.card-photos img {
  animation: photoSlideIn 0.3s ease-out;
}

.card-photos img.changing {
  animation: photoSlideOut 0.2s ease-in;
}

.card-info {
  padding: 20px;
}

.card-info h3 {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.5rem;
}

.card-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 20px 25px 20px;
}

.card-actions .btn {
  width: 65px;
  height: 65px;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-actions .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card-actions .btn:active {
  transform: scale(0.95);
}

/* Индикатор действия */
.swipe-indicator {
  position: absolute;
  top: 50px;
  font-size: 5rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
  text-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.swipe-indicator.like {
  right: 50px;
  color: #28a745;
  transform: rotate(-20deg);
}

.swipe-indicator.nope {
  left: 50px;
  color: #dc3545;
  transform: rotate(20deg);
}

.swipe-indicator.show {
  opacity: 1;
}

/* Матчи */
.match-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.match-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.match-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--primary-color);
}

.match-info {
  flex: 1;
}

.match-info h5 {
  margin: 0;
  font-weight: 600;
}

.match-info p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

/* Чат */
.chat-messages {
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
}

.message {
  display: flex;
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease-out;
}

.message.sent {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 20px;
  word-wrap: break-word;
}

.message.received .message-bubble {
  background: white;
  border-bottom-left-radius: 5px;
}

.message.sent .message-bubble {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 5px;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 5px;
}

.chat-input {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
}

/* Индикатор печати */
.typing-indicator {
  padding: 15px;
  margin: 10px;
  background: white;
  border-radius: 20px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Фото превью */
#photos-preview {
  gap: 10px;
}

.photo-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-item .remove-photo {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Админка */
.table-responsive {
  max-height: 600px;
  overflow-y: auto;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 0.5s ease;
}

.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Адаптивность */
@media (max-width: 768px) {
  .logo-text {
    font-size: 2.5rem;
  }

  .auth-card {
    padding: 30px 20px;
  }

  .auth-logo-icon {
    width: 70px;
    height: 70px;
  }

  .auth-logo-icon i {
    font-size: 2rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .code-inputs-container {
    gap: 6px;
  }

  .code-input {
    width: 42px;
    height: 52px;
    font-size: 20px;
    border-radius: 10px;
  }

  .card-actions .btn {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
  
  #swipe-container {
    max-width: 100%;
  }
  
  .photo-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    opacity: 0.8;
  }
  
  .photo-prev {
    left: 8px;
  }
  
  .photo-next {
    right: 8px;
  }
}

/* Пошаговая регистрация */
.steps-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.step-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #6c757d;
  position: relative;
  z-index: 1;
}

.step-item.active {
  background: var(--primary-color);
  color: white;
}

.step-item.completed {
  background: #28a745;
  color: white;
}

.step-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  transform: translateY(-50%);
  z-index: 0;
}

.step-line.active {
  background: var(--primary-color);
}

/* Загрузка фото с drag & drop */
.photo-upload-zone {
  border: 3px dashed #dee2e6;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
  border-color: var(--primary-color);
  background: #fff5f5;
}

.photo-upload-zone i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.uploaded-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.uploaded-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uploaded-photo-item:hover {
  transform: scale(1.05);
}

.uploaded-photo-item.primary {
  border-color: var(--primary-color);
}

.uploaded-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
}

.photo-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.uploaded-photo-item:hover .photo-item-remove {
  opacity: 1;
}

/* Выбор с иконками */
.icon-select-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.icon-select-item {
  position: relative;
  padding: 20px 15px;
  border: 2px solid #dee2e6;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.icon-select-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.icon-select-item.selected {
  border-color: var(--primary-color);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.icon-select-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.icon-select-item .label {
  font-weight: 500;
  color: #333;
}

.icon-select-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Avatar cropper */
.avatar-crop-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.avatar-crop-modal.active {
  display: flex;
}

.avatar-crop-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
}

.crop-preview-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
  border: 3px solid var(--primary-color);
  position: relative;
}

.crop-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: move;
}

.crop-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Экран поиска */
.search-filters {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
}

/* Карточки профилей в поиске */
.profile-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Магазин */
.diamond-pack-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.diamond-pack-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Просмотр профиля */
#profile-view-screen .carousel-item img {
  object-fit: cover;
  max-height: 500px;
}

/* Экран всех диалогов */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.chat-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #dc3545 0%, #c5426e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chat-header .btn-link {
  color: #333;
  text-decoration: none;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.chat-header .btn-link:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.chats-list {
  height: calc(100vh - 130px);
  overflow-y: auto;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  padding: 8px 0;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin: 4px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.chat-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  background: #fff;
}

.chat-item.unread {
  background: #fff;
  border-left: 3px solid #dc3545;
  padding-left: 13px;
}

.chat-item.unread:hover {
  border-left-color: #c5426e;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}

.chat-info {
  flex-grow: 1;
  min-width: 0;
}

.chat-info h6 {
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-info p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item .badge {
  flex-shrink: 0;
  margin-left: 10px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Подарки */
.gift-btn {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gift-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gift-btn.active {
  background-color: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* Уведомления */
.notification {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid var(--bs-primary);
  min-width: 300px;
}

.notification.success {
  border-left-color: #28a745;
}

.notification.error {
  border-left-color: #dc3545;
}

.notification.warning {
  border-left-color: #ffc107;
}

.notification.info {
  border-left-color: #17a2b8;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notification.success .notification-icon {
  color: #28a745;
}

.notification.error .notification-icon {
  color: #dc3545;
}

.notification.warning .notification-icon {
  color: #ffc107;
}

.notification.info .notification-icon {
  color: #17a2b8;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.notification-message {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.notification-close:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notification.removing {
  animation: slideOut 0.3s ease-in forwards;
}

[data-theme="dark"] .notification {
  background: #2d2d2d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-title {
  color: #e0e0e0;
}

[data-theme="dark"] .notification-message {
  color: #999;
}

/* Утилиты */
.rounded-pill {
  border-radius: 50px !important;
}

.btn-danger {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
}

.text-danger {
  color: var(--primary-color) !important;
}

/* Плавные переходы для всех кнопок */
.btn {
  transition: all 0.3s ease;
}

/* Hover эффекты для карточек */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Страница поиска */
.search-filters-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 157, 0.15);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
  transition: all 0.3s ease;
}

.search-filters-card:hover {
  box-shadow: 0 6px 25px rgba(255, 107, 157, 0.15);
}

.search-profile-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 157, 0.1);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.2);
}

.search-card-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.search-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-profile-card:hover .search-card-image img {
  transform: scale(1.05);
}

.search-card-image .online-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: #28a745;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
  }
  50% {
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.8);
  }
}

.search-profile-card .card-body {
  padding: 1.5rem;
}

.search-profile-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.08);
}

.empty-state i {
  font-size: 4rem;
  color: #ffd9ea;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h5 {
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.empty-state p {
  color: #666;
  margin-bottom: 0;
}

