/* Сброс стилей и базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* Заголовки используют Manrope */
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.section-header h2,
.stat-card h3,
.modal-header h3 {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  font-weight: 600;
}

/* Экран авторизации */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.6s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 10px;
}

.login-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  padding-bottom: 12px;
  display: block;
}

.login-header h1 {
  font-size: 32px;
  color: #007aff;
  margin-bottom: 8px;
}

.login-header p {
  color: #666;
  font-size: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  z-index: 1;
}

.input-with-icon input {
  width: 100%;
  padding: 16px 48px 16px 48px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #007aff;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.password-toggle {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #007aff;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.error input {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.login-btn {
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
}

.login-footer a {
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Основной экран кабинета */
.dashboard-screen {
  min-height: 100vh;
  background: #f8f9fa;
}

/* Шапка */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  max-width: 180px;
  width: 100px;
  height: 60px;
  margin-bottom: 4px;
  display: block;
}

.logo span {
  font-size: 14px;
  color: #666;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.user-email {
  color: #666;
  font-size: 14px;
}

.logout-btn {
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

/* Основной контент */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Статистика */
.stats-section {
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

/* Секция баннеров */
.banners-section {
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.banner-slider-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 16px;
  position: relative;
}

.banner-item {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 1px solid #e1e5e9;
  min-height: 200px;
  height: 100%;
}

.banner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#banner-slider .splide__arrow {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

#banner-slider .splide__arrow:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#banner-slider .splide__arrow--prev {
  left: -8px;
}

#banner-slider .splide__arrow--next {
  right: -8px;
}

#banner-slider .splide__arrow svg {
  fill: #333;
}

@media (min-width: 768px) {
  .banner-item {
    min-height: 250px;
  }
}

.banner-arrows-mobile {
  display: none;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.banner-arrow-mobile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-size: 16px;
}

.banner-arrow-mobile:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .banners-section {
    padding: 0 16px;
  }

  .banner-slider-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .banner-item {
    min-height: 150px;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  #banner-slider .splide__arrow {
    display: none;
  }

  .banner-arrows-mobile {
    display: flex;
  }
}

@media (min-width: 768px) {
  .banner-arrows-mobile {
    display: none !important;
  }
}

/* Секция табов */
.tabs-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid #e1e5e9;
  background: #f8f9fa;
}

.tab-btn {
  flex: 1;
  padding: 20px 32px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: #007aff;
  background: rgba(0, 122, 255, 0.05);
}

.tab-btn.active {
  color: #007aff;
  border-bottom-color: #007aff;
  background: white;
}

.tab-content {
  display: none;
}

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

/* Секция рефералов */
.referrals-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.section-header {
  padding: 32px;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
}

.section-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 300px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.filter-box select {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-box select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Список рефералов */
.referrals-list {
  padding: 32px;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: #666;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 24px 0;
}

.loading-state i,
.empty-state i {
  font-size: 64px;
  margin-bottom: 24px;
  color: #ccc;
  opacity: 0.6;
}

.empty-state i {
  color: #999;
}

.empty-state h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}

.empty-state p {
  margin-bottom: 32px;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.invite-btn {
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Карточка реферала */
.referral-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
}

.referral-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.referral-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.referral-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.referral-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.referral-details h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.referral-details p {
  color: #666;
  font-size: 14px;
}

.referral-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 20px;
  font-weight: 700;
  color: #007aff;
  display: block;
}

.stat-item .label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.referral-date {
  color: #999;
  font-size: 12px;
}

/* Карточка бронирования */
.booking-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
}

.booking-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.booking-info {
  flex: 1;
}

.booking-info h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.booking-dates {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-dates i {
  color: #007aff;
}

.booking-status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-pending_payment {
  background: #fff3cd;
  color: #856404;
}

.status-badge.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-badge.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.status-completed {
  background: #d1ecf1;
  color: #0c5460;
}

.booking-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #e1e5e9;
  border-bottom: 1px solid #e1e5e9;
  margin: 16px 0;
}

.amount-label {
  color: #666;
  font-size: 14px;
}

.amount-value {
  font-size: 18px;
  font-weight: 700;
  color: #007aff;
}

.booking-notes {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
}

.booking-notes i {
  color: #007aff;
  margin-top: 2px;
}

.booking-date {
  color: #999;
  font-size: 12px;
}

.bookings-list {
  padding: 32px;
}

/* Чаты */
.chats-list {
  padding: 32px;
}

.chat-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chat-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  background: white;
}

.chat-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-card-header h4 {
  font-size: 16px;
  color: #333;
  margin: 0;
  flex: 1;
}

.chat-unread-badge {
  background: #007aff;
  color: white;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.chat-last-message {
  color: #666;
  font-size: 14px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-date {
  color: #999;
  font-size: 12px;
}

.chat-view {
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: 70vh;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e1e5e9;
  background: white;
  border-radius: 16px 16px 0 0;
}

.chat-back-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.chat-back-btn:hover {
  background: #f8f9fa;
  color: #007aff;
}

.chat-header h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
  flex: 1;
  text-align: center;
}

.chat-complaint-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-complaint-btn:hover {
  background: #c82333;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  gap: 12px;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: 70%;
}

.message-my {
  align-self: flex-end;
}

.message-sender {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
  margin-left: 4px;
}

.message-content {
  background: #e1e1e1;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-my .message-content {
  background: #007aff;
  color: white;
}

.message-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.message-my .message-text {
  color: white;
}

.message-time {
  font-size: 11px;
  color: #999;
  text-align: right;
}

.message-my .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.chat-input-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e1e5e9;
  background: white;
  border-radius: 0 0 16px 16px;
}

.chat-input-container textarea {
  flex: 1;
  border: 2px solid #e1e5e9;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  transition: all 0.3s ease;
}

.chat-input-container textarea:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.chat-send-btn {
  background: #007aff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: #0056b3;
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.modal-btn-cancel {
  background: #f8f9fa;
  color: #333;
}

.modal-btn-cancel:hover {
  background: #e9ecef;
}

.modal-btn-submit {
  background: #007aff;
  color: white;
}

.modal-btn-submit:hover {
  background: #0056b3;
}

.modal-body textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  margin-top: 12px;
}

.modal-body textarea:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modal-description {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-sub-description {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s ease-out;
}

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

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 20px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #333;
}

.modal-body {
  padding: 32px;
}

.invite-content p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.invite-link-box {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.invite-link-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 14px;
  background: #f8f9fa;
}

.copy-btn {
  background: #007aff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.invite-benefits h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
}

.invite-benefits ul {
  list-style: none;
  padding: 0;
}

.invite-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #666;
}

.invite-benefits li i {
  color: #28a745;
  font-size: 14px;
}

/* Уведомления */
.notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

.notification {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.success {
  border-left: 4px solid #28a745;
}

.notification.error {
  border-left: 4px solid #dc3545;
}

.notification.warning {
  border-left: 4px solid #ffc107;
}

.notification i {
  font-size: 18px;
}

.notification.success i {
  color: #28a745;
}

.notification.error i {
  color: #dc3545;
}

.notification.warning i {
  color: #ffc107;
}

.notification .message {
  flex: 1;
  font-size: 14px;
  color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .header-content {
    padding: 0 12px;
    height: 64px;
    gap: 12px;
  }

  .header-logo {
    width: 80px;
    height: 48px;
    margin-bottom: 0;
  }

  .user-info {
    gap: 8px;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .user-details {
    display: none;
  }

  .logout-btn {
    padding: 8px;
    min-width: 40px;
  }

  .main-content {
    padding: 16px 12px;
  }

  .stats-section {
    margin-bottom: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
  }

  .tabs-header {
    flex-direction: column;
  }

  .tab-btn {
    padding: 16px 24px;
    border-bottom: 2px solid #e1e5e9;
    border-right: none;
  }

  .tab-btn.active {
    border-bottom-color: #007aff;
    border-right: 3px solid #007aff;
  }

  .stat-card {
    padding: 20px;
    flex-direction: row;
    gap: 16px;
  }

  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .stat-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .stat-number {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 12px;
  }

  .referrals-section {
    border-radius: 12px;
  }

  .section-header {
    padding: 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-actions {
    flex-direction: column;
    gap: 12px;
  }

  .search-box {
    min-width: auto;
    width: 100%;
  }

  .search-box input {
    font-size: 16px;
    padding: 14px 16px 14px 48px;
  }

  .filter-box {
    width: 100%;
  }

  .filter-box select {
    width: 100%;
    font-size: 16px;
    padding: 14px 16px;
  }

  .referrals-list {
    padding: 16px;
  }

  .referral-card {
    padding: 16px;
    margin-bottom: 12px;
  }

  .referral-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .referral-info {
    width: 100%;
    gap: 12px;
  }

  .referral-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .referral-details {
    flex: 1;
    min-width: 0;
  }

  .referral-details h4 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .referral-details p {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .referral-stats {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .stat-item .number {
    font-size: 18px;
  }

  .stat-item .label {
    font-size: 11px;
  }

  .referral-date {
    font-size: 11px;
    margin-top: 8px;
  }

  .booking-card {
    padding: 16px;
    margin-bottom: 12px;
  }

  .booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .booking-info h4 {
    font-size: 16px;
  }

  .booking-amount {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bookings-list {
    padding: 16px;
  }

  .chats-list {
    padding: 16px;
  }

  .chat-card {
    padding: 16px;
  }

  .chat-view {
    height: 500px;
    max-height: 60vh;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-messages {
    padding: 16px;
  }

  .chat-input-container {
    padding: 12px 16px;
  }

  .message {
    max-width: 85%;
  }

  .invite-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }

  .modal-content {
    margin: 12px;
    max-width: calc(100% - 24px);
    border-radius: 12px;
  }

  .modal-header,
  .modal-body {
    padding: 20px 16px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .invite-link-box {
    flex-direction: column;
    gap: 12px;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .notifications {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 24px 20px;
    margin: 16px;
    border-radius: 12px;
  }

  .login-logo {
    max-width: 160px;
    padding-bottom: 16px;
  }

  .login-header h1 {
    font-size: 28px;
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .stat-content h3 {
    font-size: 15px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11px;
  }

  .referrals-list {
    padding: 12px;
  }

  .referral-card {
    padding: 14px;
    margin-bottom: 10px;
  }

  .section-header {
    padding: 16px 12px;
  }

  .section-header h2 {
    font-size: 18px;
  }
}
