@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* Анимации для уведомлений */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

@keyframes notificationSlideIn {
  0% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-10px) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes notificationSlideOut {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(50%) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

html {
  scroll-behavior: smooth;
}

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

/* Унифицированные стили для предотвращения сдвигов при смене темы */
*,
*::before,
*::after {
  box-sizing: border-box;
  transition: 
    background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Cormorant Garamond', serif;
  scroll-behavior: smooth;
  background: 
    radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(156, 163, 175, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  background-attachment: fixed;
  color: #f0f0f0;
  line-height: 1.7;
  padding: 2rem 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  transition: 
    background 1s cubic-bezier(0.4, 0, 0.2, 1),
    color 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  animation: backgroundFloat 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 60% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundFloat 25s ease-in-out infinite reverse;
}

@keyframes backgroundFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(-20px, -20px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(20px, -10px) scale(0.9);
    opacity: 0.6;
  }
  75% {
    transform: translate(-10px, 20px) scale(1.05);
    opacity: 0.9;
  }
}

/* Темная тема */
body.dark-theme {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #f0f0f0;
}

body.dark-theme .container {
  background-color: rgba(25, 25, 35, 0.85);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

/* Унифицированные размеры для предотвращения сдвигов */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  /* Фиксированные размеры для предотвращения сдвигов */
  min-height: calc(100vh - 4rem);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 3rem 2rem;
}

body.dark-theme header h1 {
  color: #f8f9fa;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: color 0.6s ease, text-shadow 0.6s ease;
  /* Сохраняем те же размеры */
  line-height: 1.1;
  min-height: 6rem;
  box-sizing: border-box;
}

body.dark-theme .subtitle {
  color: #a9b7c6;
  transition: color 0.6s ease;
  /* Сохраняем те же размеры */
  min-height: 2rem;
  line-height: 1.4;
  box-sizing: border-box;
}

body.dark-theme .cocktail-card {
  background: rgba(40, 40, 55, 0.85);
  border: 1px solid rgba(100, 100, 150, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  /* Равномерная высота для всех карточек */
  height: 100%;
  box-sizing: border-box;
}

body.dark-theme .cocktail-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body.dark-theme .card-content {
  padding: 2.5rem 1.5rem 2rem;
  background: rgba(30, 30, 45, 0.7);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: background 0.6s ease;
  box-sizing: border-box;
  justify-content: space-between;
  min-height: 200px;
}

body.dark-theme .card-content .order-btn {
  margin-top: 0 !important;
  margin-bottom: 0;
  align-self: stretch;
}

.card-bottom .order-btn {
  margin-top: 0 !important;
  margin-bottom: 0;
  align-self: stretch;
}

body.dark-theme .cocktail-card h2 {
  color: #f8f9fa;
  transition: color 0.6s ease;
  /* Фиксированная высота для выравнивания кнопок */
  margin: 0 0 1rem;
  font-size: 2.2rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.5px;
  line-height: 1.3;
  font-family: 'Cormorant Garamond', serif;
  height: 5.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
  order: 1;
}

body.dark-theme .cocktail-card .ingredients {
  color: #b0b0c0;
  transition: color 0.6s ease;
  margin-bottom: 1rem;
  /* Фиксированная высота для выравнивания кнопок */
  height: 5.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
}

body.dark-theme .cocktail-card .mood {
  color: #d4af37;
  transition: color 0.6s ease;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.6;
  letter-spacing: 0.8px;
  /* Фиксированная высота для выравнивания кнопок - как в светлой теме */
  height: 4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  order: 2;
}

body.dark-theme .card-info {
  order: 1;
  display: flex;
  flex-direction: column;
}

body.dark-theme .card-bottom {
  order: 3;
}

body.dark-theme .auth-buttons button {
  background: rgba(40, 40, 60, 0.9);
  color: #d4af37;
  border: 1px solid #d4af37;
  transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
  /* Сохраняем те же размеры */
  min-height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}

body.dark-theme .auth-buttons button:hover {
  background: #d4af37;
  color: #1a1a2e;
}

body.dark-theme #logoutBtn {
  background: #e74c3c;
  border-color: #e74c3c;
  color: white;
}

body.dark-theme #logoutBtn:hover {
  background: #c0392b;
}

body.dark-theme #ordersBtn {
  background: #9b59b6;
  border-color: #9b59b6;
  color: white;
}

body.dark-theme #ordersBtn:hover {
  background: #8e44ad;
}

body.dark-theme #adminBtn {
  background: #3498db;
  border-color: #3498db;
  color: white;
}

body.dark-theme #adminBtn:hover {
  background: #2980b9;
}

body.dark-theme .modal-content {
  background: #2a2a3a;
  color: #f0f0f0;
  transition: background 0.6s ease, color 0.6s ease;
  /* Сохраняем те же размеры */
  box-sizing: border-box;
  min-height: 300px;
}

body.dark-theme .modal input {
  background: #3a3a4a;
  border: 1px solid #555;
  color: #f0f0f0;
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}

body.dark-theme .modal input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
  background: #3a3a4a;
  border-color: #555;
  color: #f0f0f0;
}

body.dark-theme .form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Темная тема для фильтров админки */
body.dark-theme .admin-category-filters {
  background: #3a3a4a;
  border-color: #555;
}

body.dark-theme .admin-category-filters h5 {
  color: #f0f0f0;
}

body.dark-theme .admin-filter-btn {
  background: #2a2a3a;
  border-color: #555;
  color: #b0b0c0;
}

body.dark-theme .admin-filter-btn:hover {
  background: #3a3a4a;
  border-color: #d4af37;
  color: #d4af37;
}

body.dark-theme .admin-filter-btn.active {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  border-color: #d4af37;
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Темная тема для админских элементов коктейлей */
body.dark-theme .admin-cocktail-item {
  background: #3a3a4a;
  border-color: #555;
  color: #f0f0f0;
}

body.dark-theme .admin-cocktail-header h5 {
  color: #f8f9fa;
}

body.dark-theme .admin-cocktail-category {
  background: #2a2a3a;
  border-color: #555;
  color: #b0b0c0;
}

body.dark-theme .admin-cocktail-category i {
  color: #d4af37;
}

body.dark-theme .admin-cocktail-details p {
  color: #b0b0c0;
}

body.dark-theme .admin-cocktail-details strong {
  color: #f8f9fa;
}

body.dark-theme .admin-cocktail-actions .edit-btn,
body.dark-theme .admin-cocktail-actions .delete-btn {
  background: #2a2a3a;
  border-color: #555;
}

body.dark-theme .admin-cocktail-actions .edit-btn {
  color: #5dade2;
  border-color: #5dade2;
}

body.dark-theme .admin-cocktail-actions .delete-btn {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* Темная тема для отображения категории */
body.dark-theme .category-badge {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .change-category-btn {
  background: #2a2a3a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-theme .change-category-btn:hover {
  border-color: #007bff;
  color: #007bff;
  background: #3a3a4a;
}

/* Стили для модального окна изменения категории */
.category-change-modal {
  max-width: 500px;
  width: 90%;
}

.category-change-modal .modal-body {
  padding: 1.5rem;
}

.cocktail-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.cocktail-info h4 {
  margin: 0 0 0.5rem 0;
  color: #495057;
  font-size: 1.1rem;
}

.cocktail-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.current-category {
  font-weight: 600;
  color: #007bff;
}

.category-options h5 {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1rem;
}

.category-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.category-option-item:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.category-option-item.selected {
  border-color: #007bff;
  background: #e3f2fd;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.category-option-item.current {
  border-color: #28a745;
  background: #f8fff9;
}

.category-option-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.category-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.category-option-name {
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.category-option-desc {
  color: #6c757d;
  font-size: 0.875rem;
}

.current-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #28a745;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Темная тема для модального окна */
body.dark-theme .cocktail-info {
  background: #2a2a3a;
  border-left-color: #007bff;
}

body.dark-theme .cocktail-info h4 {
  color: #e0e0e0;
}

body.dark-theme .cocktail-info p {
  color: #b0b0b0;
}

body.dark-theme .category-options h5 {
  color: #e0e0e0;
}

body.dark-theme .category-option-item {
  border-color: #444;
  background: #2a2a3a;
}

body.dark-theme .category-option-item:hover {
  border-color: #007bff;
  background: #3a3a4a;
}

body.dark-theme .category-option-item.selected {
  border-color: #007bff;
  background: #1a2332;
}

body.dark-theme .category-option-item.current {
  border-color: #28a745;
  background: #1a2a1a;
}

body.dark-theme .category-option-name {
  color: #e0e0e0;
}

body.dark-theme .category-option-desc {
  color: #b0b0b0;
}

body.dark-theme .category-select-label {
  color: #e0e0e0;
}

body.dark-theme .category-select-arrow {
  color: #888;
}

body.dark-theme .category-select-dropdown {
  background: #2a2a3a;
  border-color: #444;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.dark-theme .category-option {
  border-bottom-color: #444;
}

body.dark-theme .category-option:focus {
  background: #3a3a4a;
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

body.dark-theme .category-option:hover {
  background: #3a3a4a;
}

body.dark-theme .category-option.active {
  background: #1e3a1e;
  border-left-color: #4caf50;
}

body.dark-theme .category-option-name {
  color: #e0e0e0;
}

body.dark-theme .category-option-desc {
  color: #888;
}

body.dark-theme .category-option-desc {
  color: #888;
}

body.dark-theme .category-option[data-category="classic"] .category-option-icon {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #8b6914;
}

body.dark-theme .category-option[data-category="signature"] .category-option-icon {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

body.dark-theme .category-option[data-category="shots"] .category-option-icon {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

/* Темная тема для стоп-листа */
body.dark-theme .stoplist-add-section {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  border-color: #444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .stoplist-add-section::before {
  background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
}

body.dark-theme .stoplist-add-section h5 {
  color: #f0f0f0;
}

body.dark-theme .stoplist-add-section h5 i {
  color: #e74c3c;
}

body.dark-theme .stoplist-form .form-group label {
  color: #e0e0e0;
}

body.dark-theme .form-select,
body.dark-theme .form-input {
  background: #3a3a4a;
  border-color: #555;
  color: #f0f0f0;
}

body.dark-theme .form-select:focus,
body.dark-theme .form-input:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

body.dark-theme .stoplist-current-section {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  border-color: #444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .stoplist-current-section::before {
  background: linear-gradient(90deg, #6c757d, #495057, #6c757d);
}

body.dark-theme .section-header {
  border-bottom-color: #444;
}

body.dark-theme .section-header h5 {
  color: #f0f0f0;
}

body.dark-theme .section-header h5 i {
  color: #6c757d;
}

body.dark-theme .stoplist-stats .stat-item {
  background: linear-gradient(135deg, #3a3a4a, #2a2a3a);
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .stoplist-stats .stat-item i {
  color: #e74c3c;
}

body.dark-theme .stoplist-filters {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  border-color: #444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .stoplist-filters::before {
  background: linear-gradient(90deg, #c9a87c, #b08c5a, #c9a87c);
}

body.dark-theme .search-box i {
  color: #a0a0b0;
}

body.dark-theme .search-box input {
  background: #3a3a4a;
  border-color: #555;
  color: #f0f0f0;
}

body.dark-theme .search-box input:focus {
  border-color: #c9a87c;
  box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.15), 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .search-box input::placeholder {
  color: #888;
}

body.dark-theme .filter-btn {
  background: #3a3a4a;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .filter-btn:hover {
  background: #4a4a5a;
  border-color: #c9a87c;
  color: #c9a87c;
}

body.dark-theme .filter-btn.active {
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  border-color: #c9a87c;
  color: #1a1a2e;
}

body.dark-theme .stoplist-item {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  border-color: #444;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .stoplist-item::before {
  background: linear-gradient(180deg, #e74c3c, #c0392b);
}

body.dark-theme .stoplist-item.selected {
  background: linear-gradient(135deg, #3a2a1a 0%, #2a1a0a 100%);
  border-color: #c9a87c;
  box-shadow: 0 8px 25px rgba(201, 168, 124, 0.3);
}

body.dark-theme .stoplist-item.selected::before {
  background: linear-gradient(180deg, #c9a87c, #b08c5a);
}

body.dark-theme .stoplist-info strong {
  color: #f0f0f0;
}

body.dark-theme .stoplist-info span {
  color: #d4af37;
  background: rgba(201, 168, 124, 0.2);
  border-left-color: #c9a87c;
}

body.dark-theme .stoplist-info small {
  color: #a0a0b0;
}

body.dark-theme .stoplist-info small i {
  color: #e74c3c;
}

/* Темная тема для уведомлений */
body.dark-theme .category-change-notification {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

body.dark-theme .close {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(184, 148, 31, 0.9));
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

body.dark-theme .close::before,
body.dark-theme .close::after {
  background: #fff;
}

body.dark-theme .close:hover {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

body.dark-theme .order-summary {
  background: rgba(40, 40, 60, 0.7);
  color: #f0f0f0;
  transition: background 0.6s ease, color 0.6s ease;
}

/* Темная тема для модального окна подтверждения заказа */
body.dark-theme #orderSummary {
  background: rgba(40, 40, 60, 0.8);
  color: #f0f0f0;
  border: 1px solid rgba(100, 100, 150, 0.3);
  transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

body.dark-theme .order-modal h3,
body.dark-theme .modal .order-modal h3 {
  color: #f8f9fa !important;
  transition: color 0.6s ease;
}

/* Темная тема для нового дизайна уведомления */
body.dark-theme .notification-content {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  color: #f0f0f0;
  transition: background 0.6s ease, color 0.6s ease;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .notification-title {
  color: #2ecc71;
  transition: color 0.6s ease;
}

body.dark-theme .notification-text p {
  color: #f0f0f0;
  transition: color 0.6s ease;
}

body.dark-theme .notification-text p:last-child {
  color: #b0b0c0;
  transition: color 0.6s ease;
}

body.dark-theme .status-item.completed {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

body.dark-theme .status-text {
  color: #b0b0c0;
  transition: color 0.6s ease;
}

body.dark-theme .status-arrow {
  color: #2ecc71;
  transition: color 0.6s ease;
}

body.dark-theme .notification-btn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

body.dark-theme .notification-btn:hover {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

body.dark-theme .order-item {
  background: #3a3a4a;
  color: #f0f0f0;
  transition: background 0.6s ease, color 0.6s ease;
}

body.dark-theme .order-name {
  color: #f8f9fa;
  transition: color 0.6s ease;
}

body.dark-theme .order-time {
  color: #a0a0b0;
  font-size: 1.05rem;
  transition: color 0.6s ease;
}

body.dark-theme .no-orders,
body.dark-theme .error {
  color: #b0b0c0;
  transition: color 0.6s ease;
}

body.dark-theme .error {
  color: #e74c3c;
  transition: color 0.6s ease;
}

body.dark-theme .user-name {
  color: #d4af37;
  transition: color 0.6s ease;
}

body.dark-theme .copyright {
  border-top: 1px solid rgba(100, 100, 150, 0.3);
  color: #a0a0b0;
  transition: border-color 0.6s ease, color 0.6s ease;
}

body.dark-theme .theme-toggle {
  background: rgba(40, 40, 60, 0.9);
  color: #d4af37;
  border: 1px solid #d4af37;
  transition: 
    all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 50px;
  height: 50px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(212, 175, 55, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-theme .theme-toggle::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

body.dark-theme .theme-toggle:hover {
  background: #d4af37;
  color: #1a1a2e;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(212, 175, 55, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.dark-theme .alcohol-indicator {
  background: rgba(212, 175, 55, 0.9);
  color: #1a1a2e;
  border: 1px solid rgba(212, 175, 55, 0.9);
}

/* Темная тема для вкладок категорий */
body.dark-theme .category-tab {
  background: rgba(40, 40, 60, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
  color: #b0b0c0;
}

body.dark-theme .category-tab::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
}

body.dark-theme .category-tab:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

body.dark-theme .category-tab.active {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  border-color: #d4af37;
  color: #1a1a2e;
  box-shadow: 
    0 8px 25px rgba(212, 175, 55, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-theme .category-tab.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Удалено дублирующееся определение - уже есть выше */

header {
  text-align: center;
  margin-bottom: 5rem;
  padding: 3rem 0;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin: 0 2rem 5rem 2rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.logo {
  height: 120px;
  width: 120px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  border: 4px solid white;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

.logo:hover {
  transform: scale(1.05);
}

.header-text {
  text-align: center;
}

header h1 {
  font-size: 6rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0;
  font-style: italic;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  transition: color 0.6s ease, text-shadow 0.6s ease;
  /* Фиксированные размеры для предотвращения сдвигов */
  line-height: 1.1;
  min-height: 6rem;
  box-sizing: border-box;
}

header h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a87c, transparent);
  margin: 1rem auto 0;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.5rem;
  letter-spacing: 0.5px;
  text-align: center;
  transition: color 0.6s ease;
  /* Фиксированные размеры для предотвращения сдвигов */
  min-height: 2rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.auth-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.auth-buttons button {
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease, background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* Фиксированные размеры для предотвращения сдвигов */
  min-height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.auth-buttons button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  right: auto !important;
  bottom: auto !important;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  color: #ffffff;
  border-radius: 16px;
  padding: 0;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10001 !important;
  cursor: pointer;
  transition: 
    all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(201, 168, 124, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 124, 0.2), transparent);
  transition: left 0.6s ease;
}

.theme-toggle:hover::before {
  left: 100%;
}

#ordersBtn {
  background: rgba(155, 89, 182, 0.2);
  color: white;
  border-color: rgba(155, 89, 182, 0.3);
  backdrop-filter: blur(10px);
}

#ordersBtn:hover {
  background: rgba(155, 89, 182, 0.3);
  transform: translateY(-2px);
  border-color: rgba(155, 89, 182, 0.4);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(155, 89, 182, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#adminBtn {
  background: rgba(52, 152, 219, 0.2);
  color: white;
  border-color: rgba(52, 152, 219, 0.3);
  backdrop-filter: blur(10px);
}

#adminBtn:hover {
  background: rgba(52, 152, 219, 0.3);
  transform: translateY(-2px);
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(52, 152, 219, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#logoutBtn {
  background: rgba(231, 76, 60, 0.2);
  color: white;
  border-color: rgba(231, 76, 60, 0.3);
  backdrop-filter: blur(10px);
}

#logoutBtn:hover {
  background: rgba(231, 76, 60, 0.3);
  transform: translateY(-2px);
  border-color: rgba(231, 76, 60, 0.4);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(231, 76, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-name {
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: #6b5c47;
  text-align: center;
  display: block;
  width: 100%;
  margin: 1rem 0;
}

/* Вкладки категорий коктейлей */
.cocktails-categories {
  margin: 2rem 0 3rem;
  position: relative;
  z-index: 10;
}

.categories-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-width: 160px;
  justify-content: center;
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 124, 0.1), transparent);
  transition: left 0.6s ease;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.category-tab.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.category-tab i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.category-tab:hover i {
  transform: scale(1.1);
}

.category-tab.active i {
  transform: scale(1.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.category-tab span {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cocktails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 10;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
  min-height: 400px;
  align-items: stretch; /* Выравнивает все карточки по высоте */
}

/* Сообщение о пустой категории */
.empty-category-message {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 3rem;
}

.empty-message-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: emptyIconFloat 3s ease-in-out infinite;
}

@keyframes emptyIconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-message-content h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.empty-message-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .empty-message-content {
  background: rgba(40, 40, 60, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Легенда тегов вкуса */
.taste-tags-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  margin: 1rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.legend-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
}

.legend-items {
  display: flex;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-emoji {
  font-size: 1.3rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.legend-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

body.dark-theme .taste-tags-legend {
  background: rgba(40, 40, 60, 0.6);
  border-color: rgba(212, 175, 55, 0.2);
}

body.dark-theme .legend-emoji {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.cocktail-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  user-select: none;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  /* Равномерная высота для всех карточек */
  height: 100%;
  min-height: 750px;
  box-sizing: border-box;
}


.cocktail-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.image-container {
  position: relative;
  overflow: hidden;
  height: 550px;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
  flex-shrink: 0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  will-change: transform;
}

@media (min-width: 1025px) {
  .image-container:hover img {
    transform: scale(1.05);
  }
}

.alcohol-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(201, 168, 124, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 40; /* Поверх любых подсказок/оверлеев */
  pointer-events: none; /* Не мешает кликам по карточке */
}

.card-content {
  padding: 1.8rem 1.5rem 2rem;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: background 0.6s ease;
  box-sizing: border-box;
  justify-content: space-between;
  min-height: 200px;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  flex-shrink: 0;
}

.card-content .order-btn {
  margin-top: 0 !important;
  margin-bottom: 0;
  align-self: stretch;
}

.card-bottom .order-btn {
  margin-top: 0 !important;
  margin-bottom: 0;
  align-self: stretch;
}

.cocktail-card h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem;
  font-style: italic;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: color 0.6s ease;
  font-family: 'Cormorant Garamond', serif;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(255, 255, 255, 0.6);
  /* Фиксированная высота для выравнивания кнопок */
  height: 5.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Убираем стили для ингредиентов в карточках, так как они теперь в модальном окне */

.cocktail-card .mood {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  color: #000000;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.6;
  letter-spacing: 0.8px;
  transition: color 0.6s ease;
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.6),
    0 0 3px rgba(0, 0, 0, 0.2);
  /* Увеличиваем высоту для настроения */
  height: 4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Теги вкусов в карточке */
.taste-tags {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem !important;
  z-index: 5 !important;
  pointer-events: none;
}

.taste-tag {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  font-size: 1.5rem !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  pointer-events: auto;
}

.taste-tag.sour {
  background: rgba(255, 193, 7, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.taste-tag.sweet {
  background: rgba(233, 30, 99, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.taste-tag.bitter {
  background: rgba(78, 52, 46, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.taste-tag:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .taste-tag.sour {
  background: rgba(255, 193, 7, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .taste-tag.sweet {
  background: rgba(233, 30, 99, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .taste-tag.bitter {
  background: rgba(78, 52, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Селектор тегов вкуса в форме */
.taste-tags-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.taste-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.taste-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.taste-label {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.taste-label.sour {
  background: rgba(255, 193, 7, 0.2);
  color: #f57f17;
  border-color: rgba(255, 193, 7, 0.3);
}

.taste-label.sweet {
  background: rgba(233, 30, 99, 0.2);
  color: #c2185b;
  border-color: rgba(233, 30, 99, 0.3);
}

.taste-label.bitter {
  background: rgba(121, 85, 72, 0.2);
  color: #5d4037;
  border-color: rgba(121, 85, 72, 0.3);
}

.taste-checkbox input[type="checkbox"]:checked + .taste-label.sour {
  background: rgba(255, 193, 7, 0.9);
  color: #1a1a1a;
  border-color: #ffc107;
}

.taste-checkbox input[type="checkbox"]:checked + .taste-label.sweet {
  background: rgba(233, 30, 99, 0.9);
  color: #ffffff;
  border-color: #e91e63;
}

.taste-checkbox input[type="checkbox"]:checked + .taste-label.bitter {
  background: rgba(121, 85, 72, 0.9);
  color: #ffffff;
  border-color: #795548;
}

body.dark-theme .taste-label.sour {
  background: rgba(255, 193, 7, 0.15);
  color: #ffca28;
}

body.dark-theme .taste-label.sweet {
  background: rgba(233, 30, 99, 0.15);
  color: #f48fb1;
}

body.dark-theme .taste-label.bitter {
  background: rgba(121, 85, 72, 0.15);
  color: #a1887f;
}

/* Цена коктейля в карточке */
.cocktail-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8e6f42;
  margin: 1rem 0;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, rgba(142, 111, 66, 0.1) 0%, rgba(107, 92, 71, 0.1) 100%);
  border-radius: 12px;
  border: 2px solid rgba(142, 111, 66, 0.2);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(142, 111, 66, 0.1);
  height: 3.5rem;
  box-sizing: border-box;
}

.cocktail-price i {
  font-size: 1.2rem;
}

.cocktail-price:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 111, 66, 0.2);
  background: linear-gradient(135deg, rgba(142, 111, 66, 0.15) 0%, rgba(107, 92, 71, 0.15) 100%);
}

/* Темная тема для цены в карточке */
body.dark-theme .cocktail-price {
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 184, 0, 0.15) 100%);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

body.dark-theme .cocktail-price:hover {
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 184, 0, 0.2) 100%);
}

.order-btn {
  margin-top: 2rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-height: 50px;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  /* Фиксированные размеры для предотвращения сдвигов */
  min-height: 50px;
  box-sizing: border-box;
  /* Прижимаем кнопку к низу карточки */
  margin-bottom: 0;
}

.order-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Анимация при загрузке */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cocktail-card:nth-child(1) { animation-delay: 0.1s; }
.cocktail-card:nth-child(2) { animation-delay: 0.2s; }
.cocktail-card:nth-child(3) { animation-delay: 0.3s; }
.cocktail-card:nth-child(4) { animation-delay: 0.4s; }
.cocktail-card:nth-child(5) { animation-delay: 0.5s; }
.cocktail-card:nth-child(6) { animation-delay: 0.6s; }
.cocktail-card:nth-child(7) { animation-delay: 0.7s; }
.cocktail-card:nth-child(8) { animation-delay: 0.8s; }
.cocktail-card:nth-child(9) { animation-delay: 0.9s; }
.cocktail-card:nth-child(10) { animation-delay: 1.0s; }
.cocktail-card:nth-child(11) { animation-delay: 1.1s; }
.cocktail-card:nth-child(12) { animation-delay: 1.2s; }
.cocktail-card:nth-child(13) { animation-delay: 1.3s; }
.cocktail-card:nth-child(14) { animation-delay: 1.4s; }
.cocktail-card:nth-child(15) { animation-delay: 1.5s; }

/* Модальные окна */
.modal {
  display: none;
  position: absolute; /* привязываем окно к текущей позиции страницы */
  left: 0;
  top: 0; /* актуальное значение выставляем в JS через openModal */
  width: 100%;
  height: 100vh; /* занимаем высоту видимой области экрана */
  /* Полупрозрачное затемнение заднего фона в видимой зоне */
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  padding: 0;
  z-index: 1000;
}

/* Предотвращаем прокрутку страницы только для определенных модальных окон */
body.modal-open.profile-open {
  overflow: hidden;
}

/* Для обычных модальных окон разрешаем прокрутку */
.modal {
  overflow-y: auto;
}

/* Центрирование модальных окон относительно видимой области экрана */
.modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  margin: 0 auto;
  padding: 0;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #ffffff;
  animation: modalAppear 0.4s ease;
  /* Разрешаем вертикальную прокрутку содержимого, чтобы ничего не обрезалось */
  overflow-x: hidden;
  overflow-y: auto;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
  /* Плавная прокрутка */
  scroll-behavior: smooth;
}

/* Стилизация скроллбара для модальных окон */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(142, 111, 66, 0.4);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(142, 111, 66, 0.6);
}

/* Темная тема для скроллбара */
body.dark-theme .modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
}

body.dark-theme .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 0;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(184, 148, 31, 0.9));
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.close::before,
.close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close::before {
  transform: rotate(45deg);
}

.close::after {
  transform: rotate(-45deg);
}

.close:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(135deg, #d4af37, #b8941f);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal h3 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #c9a87c;
}

.modal input {
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
  transition: all 0.3s ease;
}

.modal input:focus {
  border-color: #c9a87c;
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.2);
  outline: none;
}

.modal button {
  padding: 1rem;
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.modal button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(180, 140, 90, 0.3);
}

#toggleForm {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6b5c47;
}

#toggleForm a {
  color: #c9a87c;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

#toggleForm a:hover {
  text-decoration: underline;
  color: #8e6f42;
}

/* Модальное окно заказа */
.order-modal {
  max-width: 500px;
  padding: 1.5rem;
  padding-bottom: 1.5rem;
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 24px;
  margin: auto;
}

.order-modal #confirmOrder {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Секция оплаты */
.payment-section {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f9f7f3 0%, #f0ece6 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(142, 111, 66, 0.2);
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(142, 111, 66, 0.2);
}

.price-label {
  font-size: 1.1rem;
  color: #6b5c47;
  font-weight: 500;
}

.price-value {
  font-size: 1.4rem;
  color: #8e6f42;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}

/* Промокод */
.promo-code-section {
  margin: 1rem 0;
}

.promo-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 12px;
  border: 2px solid rgba(142, 111, 66, 0.3);
  transition: all 0.3s ease;
}

.promo-input-group:focus-within {
  border-color: #8e6f42;
  box-shadow: 0 0 0 3px rgba(142, 111, 66, 0.1);
}

.promo-input-group i {
  color: #8e6f42;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

#promoCodeInput {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem;
  font-size: 1rem;
  color: #333;
  outline: none;
  text-transform: uppercase;
}

#promoCodeInput::placeholder {
  color: #999;
  text-transform: none;
}

.apply-promo-btn {
  background: linear-gradient(135deg, #8e6f42 0%, #6b5c47 100%);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.apply-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 111, 66, 0.3);
}

.apply-promo-btn:active {
  transform: translateY(0);
}

.promo-message {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.promo-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.promo-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Информация о скидке */
.discount-info {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discount-label {
  font-size: 1rem;
  color: #4caf50;
  font-weight: 600;
}

.discount-value {
  font-size: 1.2rem;
  color: #4caf50;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}

/* Итоговая сумма */
.total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(142, 111, 66, 0.3);
}

.total-label {
  font-size: 1.2rem;
  color: #6b5c47;
  font-weight: 700;
}

.total-value {
  font-size: 1.8rem;
  color: #8e6f42;
  font-weight: 900;
  font-family: 'Cormorant Garamond', serif;
}

/* Темная тема для оплаты */
body.dark-theme .payment-section {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  border-color: rgba(200, 200, 200, 0.2);
}

body.dark-theme .price-label,
body.dark-theme .total-label {
  color: #e0e0e0;
}

body.dark-theme .price-value,
body.dark-theme .total-value {
  color: #ffd700;
}

body.dark-theme .promo-input-group {
  background: rgba(40, 40, 60, 0.6);
  border-color: rgba(200, 200, 200, 0.3);
}

body.dark-theme #promoCodeInput {
  color: #e0e0e0;
}

body.dark-theme .apply-promo-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  color: #1a1a2e;
}

body.dark-theme .discount-info {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
}

/* Заглушка для отсутствующего изображения в модальном окне заказа */
.order-image-placeholder {
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9f7f3 0%, #f0ece6 100%);
  color: #6b5c47;
  text-align: center;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border: 3px solid #f0f0f0;
  margin: 0 auto;
}

.order-image-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #c9a87c;
}

.order-image-placeholder p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

/* Темная тема для заглушки */
body.dark-theme .order-image-placeholder {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
  color: #a9b7c6;
  border-color: #444;
}

body.dark-theme .order-image-placeholder i {
  color: #d4af37;
}

.order-image-container {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.order-image-preview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
  border: 2px solid #f0f0f0;
}

#orderSummary {
  margin: 0.8rem 0;
  font-size: 1rem;
  line-height: 1.5;
  padding: 1rem;
  background: rgba(249, 247, 243, 0.9);
  border: 1px solid rgba(201, 168, 124, 0.2);
  border-radius: 12px;
  text-align: left;
  color: #2c2c2c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Модальное окно уведомлений - УЛУЧШЕННЫЙ ДИЗАЙН */
/* Простой и чистый дизайн модального окна уведомления */
.notification-modal {
  z-index: 2000;
}

.notification-content {
  max-width: 450px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notification-body {
  padding: 0;
  flex: 1;
}

.success-message {
  margin-bottom: 2rem;
}

.notification-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 1rem;
  text-align: center;
  animation: titleFadeIn 0.6s ease-out 0.2s both;
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-text {
  margin-bottom: 1.5rem;
  animation: textFadeIn 0.6s ease-out 0.4s both;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-text p {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.notification-text p:last-child {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  animation: statusFadeIn 0.6s ease-out 0.6s both;
}

@keyframes statusFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.status-item.completed {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-item.pending {
  opacity: 0.6;
}

.status-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.status-text {
  font-size: 0.75rem;
  color: #6b5c47;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.status-arrow {
  font-size: 1rem;
  color: #27ae60;
  font-weight: bold;
  margin: 0 0.2rem;
}

.notification-footer {
  padding: 0;
}

.notification-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  animation: buttonFadeIn 0.6s ease-out 0.8s both;
}

@keyframes buttonFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.notification-btn:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Модальное окно истории заказов */
.orders-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
}

.orders-modal h3 {
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item {
  padding: 1.2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 5px solid #c9a87c;
  transition: transform 0.2s ease;
}

.order-item:hover {
  transform: translateX(5px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.order-status {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

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

.order-status.preparing {
  background: #cce5ff;
  color: #004085;
}

.order-status.ready {
  background: #d1ecf1;
  color: #0c5460;
}

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

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

.order-time {
  font-size: 0.95rem;
  color: #6c757d;
  font-style: italic;
}

.no-orders, .error {
  text-align: center;
  padding: 2rem;
  color: #6b5c47;
  font-style: italic;
  font-size: 1.1rem;
}

.error {
  color: #e74c3c;
}

/* === МОДАЛЬНОЕ ОКНО СЧЕТА === */

.bill-modal .bill-content {
  max-width: 600px;
  padding: 2rem;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.bill-modal h3 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f9f7f3 0%, #f0ece6 100%);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.bill-user-info,
.bill-items-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #6b5c47;
}

.bill-items {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 1.5rem;
}

.bill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #c9a87c;
  transition: all 0.3s ease;
  max-width: 100%;
  overflow: hidden;
}

.bill-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bill-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.bill-item-info {
  flex: 1;
  min-width: 0;
}

.bill-item-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.bill-item-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1a1a1a;
  word-break: break-word;
}

.item-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  min-width: 30px;
  box-shadow: 0 2px 6px rgba(201, 168, 124, 0.3);
}

.bill-item-promo {
  font-size: 0.85rem;
  color: #27ae60;
  margin-bottom: 0.3rem;
}

.bill-item-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.status-icon {
  font-size: 1.1rem;
}

.status-text {
  font-weight: 500;
}

.bill-item-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #8e6f42;
  text-align: right;
  flex-shrink: 0;
}

.bill-item-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.2rem;
}

.bill-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9f7f3 0%, #f0ece6 100%);
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 2px solid rgba(142, 111, 66, 0.2);
}

.total-amount {
  color: #8e6f42;
  font-size: 1.6rem;
}

.bill-footer-note {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.no-items {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
  font-style: italic;
  font-size: 1.1rem;
}

/* Статусы заказов в счете */
.bill-item[data-status="pending"] {
  border-left-color: #ffc107;
}

.bill-item[data-status="confirmed"] {
  border-left-color: #17a2b8;
}

.bill-item[data-status="preparing"] {
  border-left-color: #fd7e14;
}

.bill-item[data-status="ready"] {
  border-left-color: #28a745;
}

.bill-item[data-status="completed"] {
  border-left-color: #6c757d;
  opacity: 0.7;
}

.bill-item[data-status="cancelled"] {
  border-left-color: #dc3545;
  opacity: 0.5;
}

/* Кнопка "Мой счет" */
#myBillBtn {
  background: linear-gradient(135deg, #8e6f42 0%, #6b5c47 100%);
  color: white;
  border-color: #8e6f42;
}

#myBillBtn:hover {
  background: linear-gradient(135deg, #6b5c47 0%, #8e6f42 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 111, 66, 0.3);
}

/* Темная тема для счета */
body.dark-theme .bill-modal h3 {
  color: #f8f9fa;
}

body.dark-theme .bill-header {
  background: rgba(40, 40, 60, 0.8);
}

body.dark-theme .bill-user-info,
body.dark-theme .bill-items-count {
  color: #d4af37;
}

body.dark-theme .bill-item {
  background: rgba(40, 40, 55, 0.85);
  border-left-color: #d4af37;
}

body.dark-theme .bill-item-name {
  color: #f8f9fa;
}

body.dark-theme .item-quantity {
  background: linear-gradient(135deg, #d4af37, #b08c5a);
  color: #1a1a2e;
}

body.dark-theme .bill-item-promo {
  color: #2ecc71;
}

body.dark-theme .bill-item-status {
  color: #b0b0c0;
}

body.dark-theme .bill-item-price {
  color: #d4af37;
}

body.dark-theme .bill-total {
  background: rgba(40, 40, 60, 0.9);
  border-color: rgba(212, 175, 55, 0.3);
}

body.dark-theme .total-amount {
  color: #ffd700;
}

body.dark-theme .bill-footer-note {
  background: rgba(40, 40, 60, 0.6);
  color: #b0b0c0;
}

body.dark-theme #myBillBtn {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  color: #1a1a2e;
  border-color: #d4af37;
}

body.dark-theme #myBillBtn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* === КОНЕЦ СТИЛЕЙ СЧЕТА === */

/* === ИСТОРИЯ СЧЕТОВ === */

.bills-history-modal {
  max-width: 700px;
  padding: 2rem;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
}

/* Отдельные настройки позиционирования для модалки "История счетов",
   чтобы верхняя часть окна не пряталась за краем экрана */
#billHistoryModal {
  overflow-y: auto;
  padding: 20px 0;
}

#billHistoryModal[style*="display: block"] {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
}

.bills-history-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bill-history-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #8e6f42;
  transition: all 0.3s ease;
}

.bill-history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.bill-history-card[data-status="paid"] {
  border-left-color: #28a745;
  opacity: 0.9;
}

.bill-history-card[data-status="open"] {
  border-left-color: #ffc107;
}

.bill-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
}

.bill-history-date {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 600;
}

.bill-history-status {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e9ecef;
  color: #495057;
}

.bill-history-card[data-status="paid"] .bill-history-status {
  background: #d4edda;
  color: #155724;
}

.bill-history-card[data-status="open"] .bill-history-status {
  background: #fff3cd;
  color: #856404;
}

.bill-history-items {
  margin-bottom: 1rem;
}

.bill-history-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.item-name {
  color: #495057;
}

.item-price {
  font-weight: 600;
  color: #8e6f42;
}

.bill-history-more {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 0.5rem;
}

.bill-history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.bill-history-total-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

.bill-history-total-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #8e6f42;
}

.bill-history-details-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #8e6f42 0%, #6b5c47 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bill-history-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 111, 66, 0.3);
  background: linear-gradient(135deg, #6b5c47 0%, #8e6f42 100%);
}

.bill-status-badge {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.bill-status-badge.open {
  background: #fff3cd;
  color: #856404;
  border: 2px solid #ffc107;
}

.bill-status-badge.paid {
  background: #d4edda;
  color: #155724;
  border: 2px solid #28a745;
}

/* Темная тема для истории счетов */
body.dark-theme .bills-history-modal h3 {
  color: #f8f9fa;
}

body.dark-theme .bill-history-card {
  background: rgba(40, 40, 55, 0.85);
  border-left-color: #d4af37;
}

body.dark-theme .bill-history-card[data-status="paid"] {
  border-left-color: #2ecc71;
}

body.dark-theme .bill-history-card[data-status="open"] {
  border-left-color: #ffd700;
}

body.dark-theme .bill-history-date {
  color: #b0b0c0;
}

body.dark-theme .bill-history-status {
  background: rgba(60, 60, 80, 0.6);
  color: #e0e0e0;
}

body.dark-theme .bill-history-card[data-status="paid"] .bill-history-status {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

body.dark-theme .bill-history-card[data-status="open"] .bill-history-status {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

body.dark-theme .item-name {
  color: #e0e0e0;
}

body.dark-theme .item-price {
  color: #d4af37;
}

body.dark-theme .bill-history-more {
  color: #b0b0c0;
}

body.dark-theme .bill-history-total-label {
  color: #e0e0e0;
}

body.dark-theme .bill-history-total-amount {
  color: #ffd700;
}

body.dark-theme .bill-history-details-btn {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  color: #1a1a2e;
}

body.dark-theme .bill-history-details-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

body.dark-theme .bill-status-badge.open {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border-color: #ffd700;
}

body.dark-theme .bill-status-badge.paid {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border-color: #2ecc71;
}

#billHistoryBtn {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  border-color: #9b59b6;
}

#billHistoryBtn:hover {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

body.dark-theme #billHistoryBtn {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
}

body.dark-theme #billHistoryBtn:hover {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

/* === КОНЕЦ СТИЛЕЙ ИСТОРИИ СЧЕТОВ === */

/* Модальное окно успешной регистрации */
.success-modal {
  /* z-index определен в общем правиле выше */
}

.success-modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.success-content {
  max-width: 400px;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 24px;
  margin: auto;
}

.success-modal .close {
  display: none !important;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #27ae60;
}

.success-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #6b5c47;
}

.success-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #27ae60, #219653);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Модальное окно ошибок */
.error-modal {
  /* z-index определен в общем правиле выше */
}

.error-content {
  max-width: 400px;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 24px;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #e74c3c;
}

.error-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #6b5c47;
}

.error-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.error-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Админ-панель */
.admin-panel {
  z-index: 3000;
  overflow-y: auto !important;
  position: fixed;
  padding: 20px 0;
  padding-bottom: 60px;
}

.admin-panel[style*="display: block"] {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
}

.admin-content {
  max-width: 800px;
  padding: 2rem;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.admin-content h3 {
  margin-bottom: 1.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem;
  border-radius: 12px;
}

.tab-btn {
  padding: 0.6rem 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(201, 168, 124, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b5c47;
  transition: all 0.2s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover {
  background: rgba(201, 168, 124, 0.2);
  border-color: #c9a87c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201, 168, 124, 0.2);
}

/* Темная тема для вкладок админки */
body.dark-theme .admin-tabs {
  background: rgba(0, 0, 0, 0.2);
}

body.dark-theme .tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #b0b0c0;
  border-color: rgba(180, 140, 90, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  color: white;
  border-color: #c9a87c;
  box-shadow: 0 4px 12px rgba(201, 168, 124, 0.3);
}

.tab-content {
  display: none;
}

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

.admin-btn {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(180, 140, 90, 0.3);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Фильтры категорий для админки */
.admin-category-filters {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.admin-category-filters h5 {
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-filter-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #6b5c47;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-filter-btn:hover {
  background: #f8f9fa;
  border-color: #c9a87c;
  color: #8e6f42;
  transform: translateY(-1px);
}

.admin-filter-btn.active {
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  border-color: #c9a87c;
  color: white;
  box-shadow: 0 2px 8px rgba(201, 168, 124, 0.3);
}

.admin-filter-btn i {
  font-size: 0.9rem;
}

/* Стили для элементов коктейлей в админке */
.admin-cocktail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.admin-cocktail-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.admin-cocktail-info {
  flex: 1;
}

.admin-cocktail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.admin-cocktail-header h5 {
  margin: 0;
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 600;
}

.admin-cocktail-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #6b5c47;
  border: 1px solid #e9ecef;
}

.admin-cocktail-category i {
  color: #c9a87c;
}

.admin-cocktail-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-cocktail-details p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b5c47;
  line-height: 1.4;
}

.admin-cocktail-details strong {
  color: #1a1a1a;
  font-weight: 600;
}

.admin-cocktail-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.admin-cocktail-actions .edit-btn,
.admin-cocktail-actions .delete-btn {
  padding: 0.6rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-cocktail-actions .edit-btn {
  color: #3498db;
  border-color: #3498db;
}

.admin-cocktail-actions .delete-btn {
  color: #e74c3c;
  border-color: #e74c3c;
}

.admin-cocktail-actions .edit-btn:hover {
  background: #3498db;
  color: white;
  transform: scale(1.1);
}

.admin-cocktail-actions .delete-btn:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.1);
}

/* Простое отображение категории в админке */
.admin-cocktail-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-category-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: #ffffff;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.change-category-btn:hover {
  border-color: #007bff;
  color: #007bff;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.15);
}


/* Стили для простого отображения категории */
.category-select-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-badge-classic {
  background: linear-gradient(135deg, #8B4513, #A0522D);
}

.category-badge-signature {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.category-badge-shots {
  background: linear-gradient(135deg, #DC143C, #B22222);
}

.category-select-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
}

.category-select-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #6c757d;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-select-wrapper.dropdown-open .category-select-arrow {
  transform: rotate(180deg);
  color: #007bff;
}

.category-select-dropdown {
  position: fixed !important;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999 !important;
  min-width: 180px;
  max-width: 250px;
  display: block !important;
}

.category-select-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  display: block !important;
}

/* Дропдаун, открывающийся вверх */
.category-select-dropdown.open-up {
  transform: translateY(10px) scale(0.95) !important;
}

.category-select-dropdown.open-up.open {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.category-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
  position: relative;
  overflow: hidden;
  outline: none;
}

.category-option:last-child {
  border-bottom: none;
}

.category-option:focus {
  background: #f8f9fa;
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

.category-option:hover {
  background: #f8f9fa;
}

.category-option.active {
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
}

.category-option-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-option-badge.category-badge-classic {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
}

.category-option-badge.category-badge-signature {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
}

.category-option-badge.category-badge-shots {
  background: linear-gradient(135deg, #DC143C, #B22222);
  color: white;
}

.category-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.category-option-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
  line-height: 1.2;
}

.category-option-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #6c757d;
  line-height: 1.2;
}

.category-option-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #28a745;
  color: white;
  font-size: 0.6rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-option.active .category-option-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Анимации */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.category-option {
  animation: slideInUp 0.3s ease forwards;
}

.category-option:nth-child(1) { animation-delay: 0.05s; }
.category-option:nth-child(2) { animation-delay: 0.1s; }
.category-option:nth-child(3) { animation-delay: 0.15s; }

/* Улучшенные уведомления об изменении категории */
.category-change-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(39, 174, 96, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 320px;
  max-width: 400px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  overflow: hidden;
  transform: translateX(100%) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.category-change-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.category-change-notification.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.category-change-notification.hide {
  transform: translateX(100%) scale(0.9);
  opacity: 0;
}

.category-change-notification .notification-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  position: relative;
}

.category-change-notification .notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-change-notification .notification-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.category-change-notification .notification-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-change-notification .notification-subtitle {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-change-notification .notification-subtitle::before {
  content: '→';
  font-weight: 700;
  opacity: 0.8;
}

/* Анимации для уведомлений */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

.admin-order-item {
  padding: 1.2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 5px solid #c9a87c;
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-order-header div:first-child strong {
  font-size: 1.2rem;
  color: #1a1a1a;
}

.admin-order-header div:first-child div {
  color: #6b5c47;
  margin: 0.3rem 0;
}

.admin-order-header div:first-child small {
  color: #999;
}

.admin-order-status {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-order-status.pending {
  background: #fff3cd;
  color: #856404;
}

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

.admin-order-status.preparing {
  background: #cce5ff;
  color: #004085;
}

.admin-order-status.ready {
  background: #d1ecf1;
  color: #0c5460;
}

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

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

.change-status-btn {
  padding: 0.5rem 1rem;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.change-status-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* Форма коктейля */
.form-modal {
  max-width: 600px;
  padding: 2rem;
  border-radius: 24px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #c9a87c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.2);
}

/* Стоп-лист */
.stoplist-add-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.stoplist-add-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.stoplist-add-section h5 {
  margin: 0 0 1.5rem 0;
  color: #1a1a1a;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.stoplist-add-section h5 i {
  color: #e74c3c;
  font-size: 1.1rem;
}

.stoplist-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
  position: relative;
}

.stoplist-form .form-group {
  margin-bottom: 0;
  position: relative;
}

.stoplist-form .form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
}

.form-select:focus,
.form-input:focus {
  border-color: #c9a87c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.2);
}

.admin-btn.primary {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
}

.admin-btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.admin-btn.primary:hover::before {
  left: 100%;
}

.admin-btn.primary:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.admin-btn.primary:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.stoplist-current-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.stoplist-current-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6c757d, #495057, #6c757d);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
  position: relative;
}

.stoplist-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bulk-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-btn.danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn.danger:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.admin-btn.secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn.secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.section-header h5 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.section-header h5 i {
  color: #6c757d;
  font-size: 1.1rem;
}

.stoplist-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
  flex-wrap: wrap;
}

.stoplist-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 25px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-weight: 500;
}

.stoplist-stats .stat-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stoplist-stats .stat-item i {
  color: #e74c3c;
  font-size: 0.9rem;
}

.stoplist-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.stoplist-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c9a87c, #b08c5a, #c9a87c);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 1;
  font-size: 1rem;
}

.search-box input {
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  background: white;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
  border-color: #c9a87c;
  box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
  outline: none;
}

.search-box input::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.filter-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.2rem;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 124, 0.1), transparent);
  transition: left 0.6s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  background: #f8f9fa;
  border-color: #c9a87c;
  color: #c9a87c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 124, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #c9a87c, #b08c5a);
  border-color: #c9a87c;
  color: white;
  box-shadow: 0 4px 15px rgba(201, 168, 124, 0.3);
  transform: translateY(-1px);
}

.filter-btn.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.filter-btn i {
  font-size: 0.9rem;
}

/* Адаптивность для стоп-листа */
@media (max-width: 768px) {
  .stoplist-add-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .stoplist-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .admin-btn.primary {
    min-width: auto;
    width: 100%;
    padding: 1rem;
  }
  
  .stoplist-current-section {
    padding: 1.5rem;
  }
  
  .stoplist-filters {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .search-box {
    max-width: none;
  }
  
  .filter-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .filter-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .stoplist-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .bulk-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .stoplist-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .stoplist-info {
    margin-left: 0 !important;
  }
  
  .stoplist-checkbox {
    position: static;
    transform: none;
    opacity: 1;
    margin-bottom: 0.5rem;
    width: 18px;
    height: 18px;
  }
  
  .remove-from-stoplist {
    width: 40px;
    height: 40px;
    align-self: flex-end;
  }
}

.stoplist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid #e9ecef;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stoplist-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stoplist-item:hover::before {
  opacity: 1;
}

.stoplist-item.selected {
  border-color: #c9a87c;
  background: linear-gradient(135deg, #fef9f0 0%, #fff8e1 100%);
  box-shadow: 0 8px 25px rgba(201, 168, 124, 0.25);
  transform: translateY(-2px);
}

.stoplist-item.selected::before {
  background: linear-gradient(180deg, #c9a87c, #b08c5a);
  opacity: 1;
}

.stoplist-checkbox {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.stoplist-item:hover .stoplist-checkbox {
  opacity: 1;
}

.stoplist-item.selected .stoplist-checkbox {
  opacity: 1;
}

.stoplist-checkbox:checked {
  opacity: 1;
}

.stoplist-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.stoplist-info {
  flex: 1;
  margin-left: 3rem;
}

.stoplist-info strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
}

.stoplist-info span {
  display: block;
  font-size: 1rem;
  color: #6b5c47;
  margin-bottom: 0.5rem;
  font-style: italic;
  line-height: 1.4;
  padding: 0.5rem 0.8rem;
  background: rgba(201, 168, 124, 0.1);
  border-radius: 8px;
  border-left: 3px solid #c9a87c;
}

.stoplist-info small {
  font-size: 0.9rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.stoplist-info small i {
  color: #e74c3c;
  font-size: 0.8rem;
}

.remove-from-stoplist {
  padding: 0.8rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.remove-from-stoplist::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.remove-from-stoplist:hover::before {
  left: 100%;
}

.remove-from-stoplist:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.remove-from-stoplist:active {
  transform: translateY(-1px) scale(0.95);
  transition: all 0.1s ease;
}

/* Модальное окно статуса */
.status-modal {
  max-width: 500px;
  padding: 2rem;
  border-radius: 24px;
}

.status-modal h3 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#statusOrderInfo {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(249, 247, 243, 0.7);
  border-radius: 8px;
  text-align: left;
}

#statusOrderInfo p {
  margin: 0.5rem 0;
}

.status-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.status-btn {
  padding: 0.8rem;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.status-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.status-btn.cancel {
  background: #e74c3c;
}

.status-btn.cancel:hover {
  background: #c0392b;
}

/* Светлая тема для модального окна статуса */
body:not(.dark-theme) .status-modal {
  background: rgba(40, 40, 60, 0.85);
  backdrop-filter: blur(20px);
}

body:not(.dark-theme) .status-modal h3 {
  color: #ffffff;
}

body:not(.dark-theme) #statusOrderInfo {
  color: #ffffff;
  background: rgba(60, 60, 80, 0.6);
}

body:not(.dark-theme) #statusOrderInfo p {
  color: #ffffff;
}

/* Темная тема для модального окна статуса */
body.dark-theme .status-modal h3 {
  color: #f0f0f0;
}

body.dark-theme #statusOrderInfo {
  color: #e0e0e0;
  background: rgba(60, 60, 80, 0.7);
}

body.dark-theme #statusOrderInfo p {
  color: #e0e0e0;
}

/* Админские действия на карточках */
.admin-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.edit-btn,
.delete-btn {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.edit-btn {
  color: #3498db;
}

.delete-btn {
  color: #e74c3c;
}

.edit-btn:hover {
  background: #3498db;
  color: white;
  transform: scale(1.1);
}

.delete-btn:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.1);
}

/* Стоп-лист бейдж */
.stoplist-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

/* Отключенная кнопка заказа */
.order-btn.disabled {
  background: rgba(255, 255, 255, 0.8);
  color: #7d6e5d;
  cursor: not-allowed;
  /* Сохраняем те же размеры */
  min-height: 50px;
  box-sizing: border-box;
}

.order-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Состояние загрузки для кнопок */
.order-btn.loading,
button.loading {
  background: #c9a87c;
  cursor: not-allowed;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
}

.order-btn.loading:hover,
button.loading:hover {
  transform: none;
  box-shadow: none;
}

.order-btn.loading i.fa-spinner,
button.loading i.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Карточка в стоп-листе */
.cocktail-card.stopped {
  opacity: 0.7;
  filter: grayscale(50%);
}

.cocktail-card.stopped:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Заглушка для отсутствующего изображения */
.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9f7f3 0%, #f0ece6 100%);
  color: #6b5c47;
  text-align: center;
  padding: 1rem;
}

.no-image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #c9a87c;
}

.no-image-placeholder p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ============= Мобильные улучшения ============= */
@media (max-width: 1024px) {
  .header-content {
    gap: 2rem;
  }

  .logo {
    height: 100px;
    width: 100px;
  }

  .image-container {
    height: 450px;
    overflow: hidden;
    background: transparent;
  }
  
  .image-container img {
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.15) !important;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem 0;
  }

  header h1 {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.15rem;
  }

  .cocktails-grid {
    gap: 2rem;
  }

  .cocktail-card {
    min-height: 600px;
  }

  .image-container {
    height: 400px;
    overflow: hidden;
    background: transparent;
  }
  
  .image-container img {
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.15) !important;
    width: 100%;
    height: 100%;
  }

  .cocktail-card h2 {
    font-size: 1.8rem;
  }

  .auth-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .auth-buttons button {
    width: 100%;
    max-width: 250px;
  }

  header h1 {
    font-size: 2.8rem;
    text-align: center;
  }

  .subtitle {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Адаптивность для вкладок категорий */
  .categories-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1rem;
  }

  .category-tab {
    width: 100%;
    max-width: 280px;
    min-width: auto;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .category-tab span {
    font-size: 0.9rem;
  }

  /* Адаптивность для современного селекта категорий */
  .admin-cocktail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .category-select-wrapper {
    min-width: 160px;
    width: 100%;
  }

  /* На мобильных устройствах дропдаун всегда открывается вверх */
  .category-select-dropdown {
    transform: translateY(10px) scale(0.95) !important;
  }

  .category-select-dropdown.open {
    transform: translateY(0) scale(1) !important;
  }

  .category-select-button {
    padding: 0.6rem 0.8rem;
    gap: 0.6rem;
  }

  .category-select-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .category-select-label {
    font-size: 0.8rem;
  }

  .category-select-arrow {
    width: 18px;
    height: 18px;
  }

  .category-option {
    padding: 0.6rem 0.8rem;
    gap: 0.6rem;
  }

  .category-option-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .category-option-name {
    font-size: 0.8rem;
  }

  .category-option-desc {
    font-size: 0.7rem;
  }

  /* Адаптивность для уведомлений */
  .category-change-notification {
    top: 70px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
    border-radius: 12px;
  }

  .category-change-notification .notification-content {
    padding: 1rem 1.2rem;
    gap: 1rem;
  }

  .category-change-notification .notification-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .category-change-notification .notification-title {
    font-size: 0.9rem;
  }

  .category-change-notification .notification-subtitle {
    font-size: 0.8rem;
  }

  /* Имя пользователя над кнопкой "Выйти", чуть крупнее */
  .auth-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .user-name {
    font-size: 1.1rem;
    font-weight: 600;
    order: -1; /* Перемещаем имя НАД кнопками */
    margin: 0.5rem 0 0.2rem;
  }

  #ordersBtn {
    margin-top: 0.5rem;
  }

  /* Миниатюра коктейля в модальном окне подтверждения */
  .order-modal {
    padding: 1.5rem;
    margin: 10% auto;
  }

  .order-image-preview {
    width: 120px;
    height: 120px;
  }

  #orderSummary {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Уменьшаем кнопки заказа для лучшего тапа */
  .order-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }

  /* Убираем лишнее пространство под кнопкой */
  .card-content {
    padding: 1.5rem 1.2rem 1rem;
  }

  .card-bottom {
    gap: 0.7rem;
  }

  .orders-modal {
    margin: 5% auto;
    max-height: 90vh;
    padding: 1.5rem;
  }

  .order-item {
    padding: 1rem;
  }

  .order-name {
    font-size: 1.1rem;
  }

  .order-time {
    font-size: 1rem;
  }

  .alcohol-indicator {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    bottom: auto !important;
    position: fixed !important;
    z-index: 10001 !important;
    /* Фиксированные размеры для предотвращения сдвигов */
    box-sizing: border-box;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  .taste-tags-legend {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 1rem 1.5rem;
  }
  
  .legend-items {
    gap: 1rem;
  }
  
  .legend-text {
    font-size: 0.85rem;
  }

  .cocktails-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0.5rem 3rem;
  }

  .cocktail-card {
    min-height: 600px;
  }

  .image-container {
    height: 380px;
    overflow: hidden;
    background: transparent;
  }
  
  .image-container img {
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.15) !important;
    width: 100%;
    height: 100%;
  }

  .cocktail-card h2 {
    font-size: 1.6rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 15% auto;
  }

  /* Мобильные стили для нового дизайна уведомления */
  .notification-content {
    max-width: 95%;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .notification-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }
  
  .notification-text p {
    font-size: 0.9rem;
  }
  
  .notification-text p:last-child {
    font-size: 0.8rem;
  }
  
  .status-indicator {
    gap: 0.3rem;
    margin-bottom: 0.8rem;
  }
  
  .status-item {
    padding: 0.4rem;
  }
  
  .status-icon {
    font-size: 1rem;
  }
  
  .status-text {
    font-size: 0.7rem;
  }
  
  .status-arrow {
    font-size: 0.9rem;
    margin: 0 0.1rem;
  }
  
  .notification-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    max-width: 180px;
  }

  .order-modal {
    max-width: 90%;
  }

  .order-image-preview {
    width: 100px;
    height: 100px;
  }

  .auth-buttons button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .alcohol-indicator {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    position: fixed !important;
    z-index: 10001 !important;
    /* Фиксированные размеры для предотвращения сдвигов */
    box-sizing: border-box;
    flex-shrink: 0;
  }

  /* Убираем серую полоску под кнопкой заказа */
  .card-content {
    padding: 1.2rem 1rem 0.8rem;
  }

  /* Убираем лишнее пространство в нижней части карточки */
  .card-bottom {
    gap: 0.5rem;
    margin-bottom: 0;
  }

  /* Убираем серую полоску у самой кнопки */
  .order-btn {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
}

/* ============= Анимированный лоадер ============= */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 247, 243, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

.loader-container.active {
  opacity: 1;
  visibility: visible;
}

.loader {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.loader-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a87c;
  animation: bounce 1.4s infinite ease-in-out;
}

.loader-circle:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #6b5c47;
  letter-spacing: 0.5px;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Плавное появление контента после загрузки */
.fade-in-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpContent 0.8s ease forwards;
}

@keyframes fadeInUpContent {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= Фоновые эффекты ============= */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Анимированные частицы */
.sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sparkles::before,
.sparkles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: sparkle 3s ease-in-out infinite;
}

.sparkles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.sparkles::after {
  top: 60%;
  right: 20%;
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(249, 247, 243, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201, 168, 124, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, rgba(249, 247, 243, 0.9) 0%, rgba(240, 236, 230, 0.95) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

/* Темный фон для темной темы */
body.dark-theme .background-overlay {
  background:
    radial-gradient(circle at 20% 30%, rgba(26, 26, 46, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(22, 33, 62, 0.3) 0%, transparent 40%),
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.98) 100%);
  /* Сохраняем те же размеры */
  box-sizing: border-box;
}

/* Мерцающие огоньки */
.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

.sparkle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: flicker 3s infinite ease-in-out;
  opacity: 0;
}

@keyframes flicker {
  0%, 100% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Улучшенные эффекты для компьютерной версии */
@media (min-width: 1024px) {
  .background-overlay {
    background:
      radial-gradient(circle at 15% 25%, rgba(249, 247, 243, 0.4) 0%, transparent 50%),
      radial-gradient(circle at 85% 75%, rgba(201, 168, 124, 0.2) 0%, transparent 50%),
      linear-gradient(135deg, rgba(249, 247, 243, 0.92) 0%, rgba(240, 236, 230, 0.97) 100%);
  }

  body.dark-theme .background-overlay {
    background:
      radial-gradient(circle at 15% 25%, rgba(26, 26, 46, 0.6) 0%, transparent 50%),
      radial-gradient(circle at 85% 75%, rgba(22, 33, 62, 0.4) 0%, transparent 50%),
      linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.98) 100%);
  }

  .sparkle {
    animation: flicker 4s infinite ease-in-out;
  }
}

/* Анимации для карточек */
.cocktail-card {
  animation: cardAppear 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cocktail-card:nth-child(1) { animation-delay: 0.1s; }
.cocktail-card:nth-child(2) { animation-delay: 0.2s; }
.cocktail-card:nth-child(3) { animation-delay: 0.3s; }
.cocktail-card:nth-child(4) { animation-delay: 0.4s; }
.cocktail-card:nth-child(5) { animation-delay: 0.5s; }
.cocktail-card:nth-child(6) { animation-delay: 0.6s; }
.cocktail-card:nth-child(7) { animation-delay: 0.7s; }
.cocktail-card:nth-child(8) { animation-delay: 0.8s; }
.cocktail-card:nth-child(9) { animation-delay: 0.9s; }
.cocktail-card:nth-child(10) { animation-delay: 1.0s; }
.cocktail-card:nth-child(11) { animation-delay: 1.1s; }
.cocktail-card:nth-child(12) { animation-delay: 1.2s; }
.cocktail-card:nth-child(13) { animation-delay: 1.3s; }
.cocktail-card:nth-child(14) { animation-delay: 1.4s; }
.cocktail-card:nth-child(15) { animation-delay: 1.5s; }


/* Плашка с авторскими правами */
.copyright {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
}

.copyright p {
  margin: 0.3rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}


/* Анимация шампанского */
.champagne-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3000;
  overflow: hidden;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

.champagne-bubble {
  position: absolute;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: bubbleRise 3s ease-in forwards;
}

body.dark-theme .champagne-bubble {
  background: rgba(212, 175, 55, 0.7);
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) translateX(20px) scale(1.2);
    opacity: 0;
  }
}


/* === СТИЛИ МОНИТОРИНГА === */

/* Группа управления */
.control-group {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.control-group h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.dark-theme .control-group {
  background: rgba(44, 62, 80, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .control-group h4 {
  color: #ecf0f1;
}

#monitoring-tab h4 {
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.monitoring-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.monitoring-controls .admin-btn {
  /* Разрешаем перенос подписей на несколько строк,
     чтобы длинный текст полностью помещался в кнопку */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
}

.system-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-item {
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #1a1a1a;
}

.status-item.online {
  border-left-color: #27ae60;
  background: #d4edda;
  color: #1a1a1a;
}

.status-item.warning {
  border-left-color: #f39c12;
  background: #fff3cd;
  color: #1a1a1a;
}

.status-item.error {
  border-left-color: #e74c3c;
  background: #f8d7da;
  color: #1a1a1a;
}

.status-item.offline {
  border-left-color: #6c757d;
  color: #1a1a1a;
  background: #f8f9fa;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.status-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.status-indicator {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-indicator.online {
  background: #27ae60;
  color: white;
}

.status-indicator.warning {
  background: #f39c12;
  color: white;
}

.status-indicator.error {
  background: #e74c3c;
  color: white;
}

.status-indicator.offline {
  background: #6c757d;
  color: white;
}

.status-details {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.4;
}

/* Темная тема для мониторинга */
body.dark-theme #monitoring-tab h4 {
  color: #ecf0f1;
}

body.dark-theme .status-item {
  background: #3a3a4a;
  color: #f0f0f0;
}

body.dark-theme .status-title {
  color: #ecf0f1;
}

body.dark-theme .status-item.online {
  background: rgba(39, 174, 96, 0.2);
}

body.dark-theme .status-item.warning {
  background: rgba(243, 156, 18, 0.2);
}

body.dark-theme .status-item.error {
  background: rgba(231, 76, 60, 0.2);
}

body.dark-theme .status-item.offline {
  background: rgba(108, 117, 125, 0.2);
}

body.dark-theme .status-details {
  color: #a0a0b0;
}

/* === СТИЛИ TELEGRAM УПРАВЛЕНИЯ === */
.telegram-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.telegram-controls .admin-btn {
  /* Разрешаем перенос длинных подписей на несколько строк,
     чтобы текст полностью помещался в кнопку */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
}

.telegram-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.telegram-info {
  padding: 1rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 4px solid #0088cc;
}

.telegram-info h5 {
  margin: 0 0 0.5rem 0;
  color: #0088cc;
  font-size: 1rem;
}

.telegram-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.telegram-info code {
  background: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* Темная тема для Telegram */
body.dark-theme .telegram-info {
  background: #3a3a4a;
  color: #f0f0f0;
  border-left-color: #0088cc;
}

body.dark-theme .telegram-info h5 {
  color: #0088cc;
}

body.dark-theme .telegram-info p {
  color: #a0a0b0;
}

body.dark-theme .telegram-info code {
  background: #2a2a3a;
  color: #f0f0f0;
}

/* ============= Анимации для уведомлений ============= */

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

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

/* СОВЕРШЕННО НОВЫЙ ДИЗАЙН УВЕДОМЛЕНИЙ - СОВРЕМЕННЫЕ КАРТОЧКИ */
.status-update-notification,
.admin-status-update-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  width: 400px;
  min-height: 120px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  animation: notificationSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(0);
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Цветовые схемы для разных статусов - БЕЗ ЦВЕТА ТЕКСТА (задается отдельно для темной/светлой темы) */
.status-update-notification.status-confirmed {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-left: 4px solid #16a34a;
}

.status-update-notification.status-preparing {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-left: 4px solid #ea580c;
}

.status-update-notification.status-ready {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-left: 4px solid #1d4ed8;
}

.status-update-notification.status-completed {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-left: 4px solid #6d28d9;
}

.status-update-notification.status-cancelled {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-left: 4px solid #b91c1c;
}

.admin-status-update-notification {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-left: 4px solid #9d174d;
}

/* ЦВЕТА ТЕКСТА ДЛЯ ТЕМНОЙ ТЕМЫ - белый текст */
body.dark-theme .status-update-notification.status-confirmed,
body.dark-theme .status-update-notification.status-preparing,
body.dark-theme .status-update-notification.status-ready,
body.dark-theme .status-update-notification.status-completed,
body.dark-theme .status-update-notification.status-cancelled,
body.dark-theme .admin-status-update-notification {
  color: white;
}

/* ЗАТЕМНЯЕМ ГРАДИЕНТЫ ДЛЯ СВЕТЛОЙ ТЕМЫ через ::after оверлей */
body:not(.dark-theme) .status-update-notification::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

/* Контент поверх оверлея */
body:not(.dark-theme) .status-update-notification .notification-content {
  position: relative;
  z-index: 2;
}

/* НОВАЯ СТРУКТУРА УВЕДОМЛЕНИЙ - СОВРЕМЕННЫЕ КАРТОЧКИ */
.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

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

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification-body {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.notification-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #27ae60;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.notification-cocktail {
  font-size: 14px;
  font-weight: 500;
  color: #34495e;
  margin: 0 0 8px 0;
  font-style: italic;
}

.notification-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
}

/* .notification-close стили перенесены ниже */

/* Новые анимации для уведомлений */
@keyframes notificationSlideIn {
  0% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-10px) scale(1.02);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

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

@keyframes notificationShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Эффект мерцания для иконок */
.notification-icon {
  position: relative;
  overflow: hidden;
}

.notification-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: notificationShimmer 2s ease-in-out infinite;
}

.notification-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  text-align: left;
}

.notification-title {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #27ae60;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: gentlePulse 2s ease-in-out infinite;
}

/* Стили для эмодзи в уведомлениях */
.notification-title,
.notification-cocktail {
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
}

.notification-title .emoji,
.notification-cocktail .emoji {
  font-size: 1.4em;
  margin-right: 0.4em;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  line-height: 1;
  vertical-align: middle;
}

/* Специальные стили для эмодзи в заголовке уведомления */
.status-update-notification .notification-title .emoji {
  font-size: 1.6em;
  margin-right: 0.5em;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  line-height: 1;
  vertical-align: middle;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notification-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 600;
  color: #2c3e50;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Убираем автоматический sparkle emoji, так как теперь используем статусные эмодзи */
.notification-subtitle::before {
  display: none;
}

.notification-cocktail {
  font-size: 1.3rem;
  font-weight: 700;
  color: #34495e;
  font-style: italic;
  margin: 0.4rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 0.3rem 0;
}

.notification-cocktail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

.notification-close {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  opacity: 0.9;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
}

.notification-close:hover {
  opacity: 1;
  transform: scale(1.1);
  color: white;
}

/* Стили для прогресс-бара уведомлений */
.notification-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* Стили для скрывающегося уведомления */
.notification-hiding {
  pointer-events: none;
  z-index: 1;
}

.notification-hiding .notification-progress-bar {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border-radius: 0 0 12px 12px;
  transition: width linear;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Темная тема для прогресс-бара */
body.dark-theme .notification-progress-bar {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-theme .notification-progress-fill {
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.8), rgba(39, 174, 96, 0.4));
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.9), 
    rgba(255, 255, 255, 0.6), 
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.3));
  background-size: 300% 100%;
  width: 100%;
  animation: progressBar 5000ms linear, shimmer 2s ease-in-out infinite;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.notification-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Анимации для иконок в уведомлениях */
.status-update-notification .fas,
.admin-status-update-notification .fas {
  animation: float 3s ease-in-out infinite;
}

/* Темная тема для уведомлений */
body.dark-theme .status-update-notification {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-theme .admin-status-update-notification {
  background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-theme .notification-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .notification-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-theme .notification-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .notification-cocktail {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-theme .notification-close {
  background: transparent;
  border: none;
  color: white;
  opacity: 0.7;
}

/* Светлая тема для уведомлений */
body:not(.dark-theme) .status-update-notification {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #2d3748;
  border: 1px solid rgba(45, 55, 72, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 25px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.dark-theme) .admin-status-update-notification {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body:not(.dark-theme) .notification-icon {
  background: rgba(45, 55, 72, 0.1);
  color: #2d3748;
  border: 2px solid rgba(45, 55, 72, 0.2);
}

body:not(.dark-theme) .notification-title {
  color: #2d3748;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .notification-subtitle {
  color: rgba(45, 55, 72, 0.8);
}

body:not(.dark-theme) .notification-cocktail {
  color: rgba(45, 55, 72, 0.9);
}

body:not(.dark-theme) .notification-close {
  background: transparent;
  border: none;
  color: #2d3748;
  opacity: 0.6;
}

/* УДАЛЕНЫ ДУБЛИРУЮЩИЕ СТИЛИ - градиенты уже определены выше (строки 6152-6174) */

/* ====================================================================== */
/* ЦВЕТА ТЕКСТА ДЛЯ СВЕТЛОЙ ТЕМЫ - ТЕМНЫЙ ТЕКСТ НА СВЕТЛЫХ ФОНАХ */
/* ВАЖНО: Эти стили должны быть ПОСЛЕ всех базовых стилей статусов! */
/* ====================================================================== */

/* Переопределяем градиенты для светлой темы с темным текстом */
body:not(.dark-theme) .status-update-notification.status-confirmed,
body:not(.dark-theme) .status-update-notification.status-preparing,
body:not(.dark-theme) .status-update-notification.status-ready,
body:not(.dark-theme) .status-update-notification.status-completed,
body:not(.dark-theme) .status-update-notification.status-cancelled {
  color: #1a202c !important;
}

/* Псевдоэлементы ::before не должны влиять на текст */
body:not(.dark-theme) .status-update-notification.status-confirmed::before,
body:not(.dark-theme) .status-update-notification.status-preparing::before,
body:not(.dark-theme) .status-update-notification.status-ready::before,
body:not(.dark-theme) .status-update-notification.status-completed::before,
body:not(.dark-theme) .status-update-notification.status-cancelled::before {
  z-index: -1;
}

/* Все текстовые элементы внутри уведомлений */
body:not(.dark-theme) .status-update-notification .notification-title,
body:not(.dark-theme) .status-update-notification.status-confirmed .notification-title,
body:not(.dark-theme) .status-update-notification.status-preparing .notification-title,
body:not(.dark-theme) .status-update-notification.status-ready .notification-title,
body:not(.dark-theme) .status-update-notification.status-completed .notification-title,
body:not(.dark-theme) .status-update-notification.status-cancelled .notification-title {
  color: #1a202c !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

body:not(.dark-theme) .status-update-notification .notification-subtitle,
body:not(.dark-theme) .status-update-notification.status-confirmed .notification-subtitle,
body:not(.dark-theme) .status-update-notification.status-preparing .notification-subtitle,
body:not(.dark-theme) .status-update-notification.status-ready .notification-subtitle,
body:not(.dark-theme) .status-update-notification.status-completed .notification-subtitle,
body:not(.dark-theme) .status-update-notification.status-cancelled .notification-subtitle {
  color: #2d3748 !important;
  opacity: 0.85;
}

body:not(.dark-theme) .status-update-notification .notification-queue-info {
  color: #2d3748 !important;
}

body:not(.dark-theme) .status-update-notification .queue-position,
body:not(.dark-theme) .status-update-notification .queue-time {
  color: #2d3748 !important;
}

body:not(.dark-theme) .status-update-notification .notification-icon {
  background: rgba(0, 0, 0, 0.1);
  color: #1a202c !important;
}

body:not(.dark-theme) .status-update-notification .notification-body {
  color: #1a202c !important;
}

body:not(.dark-theme) .status-update-notification .notification-cocktail {
  color: #1a202c !important;
}

body:not(.dark-theme) .status-update-notification .notification-details {
  color: #2d3748 !important;
}

body:not(.dark-theme) .status-update-notification .fas,
body:not(.dark-theme) .status-update-notification i {
  color: #1a202c !important;
}

body:not(.dark-theme) .status-update-notification * {
  color: #1a202c !important;
}

/* ЦВЕТА ТЕКСТА ДЛЯ АДМИНСКИХ УВЕДОМЛЕНИЙ В СВЕТЛОЙ ТЕМЕ */
body:not(.dark-theme) .admin-status-update-notification .notification-title,
body:not(.dark-theme) .admin-status-update-notification .notification-subtitle,
body:not(.dark-theme) .admin-status-update-notification .notification-body,
body:not(.dark-theme) .admin-status-update-notification .notification-cocktail {
  color: #1a202c !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Иконки для разных статусов */
.status-update-notification.status-confirmed .notification-icon i {
  content: '\f058'; /* check-circle */
}

.status-update-notification.status-preparing .notification-icon i {
  content: '\f0c3'; /* hands */
}

.status-update-notification.status-ready .notification-icon i {
  content: '\f06b'; /* bell */
}

.status-update-notification.status-completed .notification-icon i {
  content: '\f164'; /* thumbs-up */
}

.status-update-notification.status-cancelled .notification-icon i {
  content: '\f057'; /* times-circle */
}

/* Дополнительные анимации для уведомлений */
@keyframes notificationSlideOut {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(50%) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

@keyframes notificationBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Эффект пульсации для иконок */
.notification-icon i {
  animation: notificationPulse 2s ease-in-out infinite;
}

/* Эффект мерцания для заголовка */
.notification-title {
  animation: notificationBounce 0.6s ease-out;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .status-update-notification,
  .admin-status-update-notification {
    top: 15px;
    right: 15px;
    left: 15px;
    width: auto;
    min-width: auto;
    max-width: none;
    border-radius: 16px;
  }
  
  .notification-content {
    padding: 16px;
    gap: 12px;
  }
  
  .notification-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .notification-title {
    font-size: 1.4rem;
  }
  
  .notification-subtitle {
    font-size: 1rem;
  }
  
  .notification-cocktail {
    font-size: 1.2rem;
  }
  
  .notification-close {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }
}

/* ============= Управление модальными окнами ============= */

/* Класс для блокировки прокрутки основного контента */
/* Блокировка скролла body на всех устройствах когда открыто модальное окно */
/* Закомментировано, чтобы разрешить прокрутку страницы при открытых модальных окнах */
/* body.modal-open {
  overflow: hidden;
} */

/* Убедимся, что модальные окна корректно перекрывают друг друга */
.admin-panel {
  z-index: 3000; /* Уже есть */
}

/* Модальные окна, которые открываются из админ-панели, должны быть поверх неё */
#cocktailFormModal,
#statusModal {
  z-index: 3001; /* Должно быть больше, чем у .admin-panel */
}

/* Остальные модальные окна остаются с базовым z-index */
.modal {
  z-index: 1000;
}

/* Специальные модальные окна с повышенным приоритетом */
.notification-modal,
.success-modal,
.error-modal {
  z-index: 2000;
}

/* Добавим немного стилей для лучшего UX модальных окон */
/* Модальные окна по умолчанию без ограничения высоты */
.modal-content {
  /* Уже есть стили */
  max-height: none;
}

/* ТОЛЬКО для админ-панели разрешаем прокрутку внутри */
.admin-content,
.form-modal {
  max-height: 90vh;
  overflow-y: auto; /* Разрешаем вертикальную прокрутку внутри модального окна */
  overflow-x: hidden; /* Скрываем горизонтальную прокрутку */
  display: flex;
  flex-direction: column;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
  min-height: 300px;
  /* Скрываем скролл-бар */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Скрываем скролл-бар для Chrome, Safari и Opera */
.admin-content::-webkit-scrollbar,
.form-modal::-webkit-scrollbar {
  display: none;
}

/* Убедимся, что содержимое модального окна корректно прокручивается */
.admin-content > *,
.form-modal > * {
  flex-shrink: 0;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

/* === СТИЛИ ДЛЯ СИСТЕМЫ ОЧЕРЕДИ === */

/* Контейнер для информации о позиции в очереди */
.queue-position {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(139, 69, 19, 0.2);
}

.queue-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #8B4513;
}

.queue-info i {
  font-size: 1rem;
  color: #A0522D;
}

.queue-progress {
  margin-top: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(139, 69, 19, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B4513, #A0522D);
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Стили для темной темы */
.dark-theme .queue-position {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border-color: rgba(139, 69, 19, 0.3);
}

.dark-theme .queue-info {
  color: #D2B48C;
}

.dark-theme .queue-info i {
  color: #DEB887;
}

.dark-theme .progress-bar {
  background-color: rgba(139, 69, 19, 0.3);
}

/* Анимация появления очереди */
.queue-position {
  animation: fadeInUp 0.5s ease-out;
}

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

/* Стили для контейнера очереди в заказах */
.order-queue-info {
  margin-top: 0.5rem;
}

/* Стили для информации об очереди в уведомлениях */
.notification-queue-info {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-queue-info .queue-position {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.notification-queue-info .queue-position i {
  color: #FFD700;
}

.notification-queue-info .queue-time {
  font-size: 0.8rem;
  opacity: 0.8;
  text-align: center;
}

/* Стили для уведомлений о очереди */
.queue-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
  z-index: 10000;
  max-width: 350px;
  animation: slideInRight 0.5s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.queue-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.queue-notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.queue-notification-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.queue-notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.queue-notification-text {
  flex: 1;
}

.queue-notification-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.queue-notification-details {
  font-size: 0.9rem;
  opacity: 0.9;
}

.queue-status {
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.queue-time {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.3rem;
  text-align: center;
}

/* Адаптивность для очереди */
@media (max-width: 480px) {
  .queue-position {
    padding: 0.6rem;
    margin-top: 0.6rem;
  }
  
  .queue-info {
    font-size: 0.9rem;
  }
  
  .queue-info i {
    font-size: 0.9rem;
  }
  
  .progress-bar {
    height: 4px;
  }
  
  .queue-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Стили для админской очереди */
.admin-queue-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.1));
  border-radius: 6px;
  border: 1px solid rgba(139, 69, 19, 0.2);
  font-size: 0.9rem;
  color: #8B4513;
}

.admin-queue-info i {
  color: #A0522D;
}

.queue-next {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.dark-theme .admin-queue-info {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border-color: rgba(139, 69, 19, 0.3);
  color: #D2B48C;
}

.dark-theme .admin-queue-info i {
  color: #DEB887;
}

/* === СТИЛИ ДЛЯ КНОПКИ ОЧИСТКИ === */

.admin-btn.danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-color: #dc3545;
  color: white;
}

.admin-btn.danger:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  border-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.admin-btn.danger:active {
  transform: translateY(0);
}

/* Стили для темной темы */
.dark-theme .admin-btn.danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-color: #dc3545;
}

.dark-theme .admin-btn.danger:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  border-color: #c82333;
}

/* === СТИЛИ ДЛЯ КНОПКИ АВТОНАСТРОЙКИ === */
.admin-btn.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-color: #28a745;
  color: white;
}

.admin-btn.success:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  border-color: #20c997;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.admin-btn.success:active {
  transform: translateY(0);
}

/* Стили для темной темы */
.dark-theme .admin-btn.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-color: #28a745;
}

.dark-theme .admin-btn.success:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  border-color: #20c997;
}

/* === СТИЛИ ДЛЯ КНОПКИ СБРОСА === */
.admin-btn.warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  border-color: #ffc107;
  color: #212529;
}

.admin-btn.warning:hover {
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  border-color: #fd7e14;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.admin-btn.warning:active {
  transform: translateY(0);
}

/* Стили для темной темы */
.dark-theme .admin-btn.warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  border-color: #ffc107;
  color: #212529;
}

.dark-theme .admin-btn.warning:hover {
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  border-color: #fd7e14;
}

.orders-list,
.admin-list,
.form-group {
  flex-shrink: 0;
  /* Фиксированные размеры для предотвращения сдвигов */
  box-sizing: border-box;
}

/* Стили для админ-панели промокодов */
.promo-add-section,
.promo-list-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 2px solid rgba(142, 111, 66, 0.2);
}

.promo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.promo-form .form-group {
  display: flex;
  flex-direction: column;
}

.promo-form .form-group:last-child {
  grid-column: 1 / -1;
}

.promo-form label {
  font-weight: 600;
  color: #6b5c47;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.promo-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.form-input {
  padding: 0.8rem;
  border: 2px solid rgba(142, 111, 66, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #8e6f42;
  box-shadow: 0 0 0 3px rgba(142, 111, 66, 0.1);
}

.admin-btn.primary {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border: 2px solid #4caf50;
}

.admin-btn.primary:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.promo-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(142, 111, 66, 0.2);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.promo-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.promo-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(142, 111, 66, 0.2);
}

.promo-code-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8e6f42;
  font-family: 'Courier New', monospace;
  background: rgba(142, 111, 66, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.promo-discount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4caf50;
}

.promo-item-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.promo-detail {
  display: flex;
  flex-direction: column;
}

.promo-detail-label {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.3rem;
}

.promo-detail-value {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.promo-status {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.promo-status.active {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.promo-status.inactive {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.promo-item-actions {
  display: flex;
  gap: 0.5rem;
}

.promo-item-actions .admin-btn {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.9rem;
}

/* Темная тема для промокодов */
body.dark-theme .promo-add-section,
body.dark-theme .promo-list-section {
  background: rgba(40, 40, 60, 0.5);
  border-color: rgba(200, 200, 200, 0.2);
}

body.dark-theme .promo-form label {
  color: #e0e0e0;
}

body.dark-theme .form-input {
  background: rgba(40, 40, 60, 0.6);
  border-color: rgba(200, 200, 200, 0.3);
  color: #e0e0e0;
}

body.dark-theme .promo-item {
  background: rgba(40, 40, 60, 0.6);
  border-color: rgba(200, 200, 200, 0.2);
}

body.dark-theme .promo-code-display {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

body.dark-theme .promo-detail-label {
  color: #aaa;
}

body.dark-theme .promo-detail-value {
  color: #e0e0e0;
}

/* === СТИЛИ ДЛЯ СИСТЕМЫ ОЦЕНКИ КОКТЕЙЛЕЙ === */

/* Модальное окно оценки */
.rating-modal {
  z-index: 4000;
  align-items: center;
  justify-content: center;
}

.rating-modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.rating-modal-content {
  max-width: 500px;
  padding: 0;
  overflow: visible;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
  animation: ratingModalAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: auto;
  height: auto;
  min-height: auto;
  max-height: 90vh;
  margin: auto;
}

@keyframes ratingModalAppear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Заголовок модального окна */
.rating-header {
  background: linear-gradient(135deg, #c9a87c 0%, #b08c5a 100%);
  padding: 1.5rem 2rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 16px 16px;
}

.rating-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

.rating-emoji {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  animation: bounce 2s infinite;
  display: inline-block;
}

.rating-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.3rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-style: italic;
}

/* Тело модального окна */
.rating-body {
  padding: 1.5rem 2rem;
  text-align: center;
}

/* Мобильная версия окна оценки */
@media (max-width: 768px) {
  .rating-modal-content {
    max-width: 95%;
    width: auto;
    min-width: 320px;
  }
  
  .rating-header {
    padding: 1.2rem 1rem;
  }
  
  .rating-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .rating-title {
    font-size: 1.2rem;
  }
  
  .rating-subtitle {
    font-size: 0.9rem;
  }
  
  .rating-body {
    padding: 1.2rem 1rem;
  }
  
  .stars-container {
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 0.8rem;
  }
  
  .star {
    font-size: 2.5rem;
  }
  
  .rating-text {
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  
  .thank-you-screen {
    padding: 1.5rem 1rem;
  }
  
  .thank-you-emoji {
    font-size: 3rem;
  }
  
  .thank-you-title {
    font-size: 1.3rem;
    margin: 0.5rem 0;
  }
  
  .thank-you-message {
    font-size: 0.9rem;
    margin-top: 0.3rem;
  }
}

.rating-question {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 0 0 2rem 0;
  font-weight: 500;
}

/* Контейнер звезд */
.stars-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
}

.star {
  font-size: 2.5rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.star:hover {
  transform: scale(1.2) rotate(10deg);
  color: #ffc107;
}

.star.active {
  color: #ffd700 !important;
  transform: scale(1.15);
  animation: starFillYellow 0.5s ease-out;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.star.hovered {
  color: #ffc107;
  transform: scale(1.1);
}

@keyframes starFillYellow {
  0% {
    color: #ddd;
    transform: scale(0.8) rotate(-10deg);
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
  }
  50% {
    transform: scale(1.4) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
  }
  100% {
    color: #ffd700;
    transform: scale(1.15) rotate(0);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  }
}

/* Текст оценки */
.rating-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9a87c;
  margin: 0.5rem 0 0.8rem;
  min-height: 1.5rem;
  transition: all 0.5s ease;
}

.rating-text.has-rating {
  color: #ffd700 !important;
  animation: textGlowPulse 0.8s ease-out;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transform: scale(1.1);
}

@keyframes textGlowPulse {
  0% {
    color: #c9a87c;
    text-shadow: 0 0 0px rgba(255, 215, 0, 0);
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 1);
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Поле комментария */
.rating-comment {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
}

.rating-comment:focus {
  outline: none;
  border-color: #c9a87c;
  box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.1);
}

.rating-comment::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Футер модального окна */
.rating-footer {
  padding: 1.5rem 2rem 2rem;
  background: rgba(249, 247, 243, 0.5);
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.rating-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.rating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.rating-btn:hover::before {
  left: 100%;
}

.rating-btn-submit {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.rating-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.rating-btn-submit:active {
  transform: translateY(0);
}

.rating-btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rating-btn-skip {
  background: #e0e0e0;
  color: #666;
}

.rating-btn-skip:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
}

/* Индикатор рейтинга на карточках коктейлей */
.cocktail-rating {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(201, 168, 124, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 40;
  pointer-events: none;
}

.cocktail-rating i {
  color: #ffd700;
  font-size: 0.9rem;
}

.cocktail-rating .rating-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
}

/* Анимация появления рейтинга */
.cocktail-rating {
  animation: ratingBadgeAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ratingBadgeAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Темная тема для системы оценки */
body.dark-theme .rating-modal-content {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-theme .rating-header {
  background: linear-gradient(135deg, #c9a87c 0%, #b08c5a 100%);
}

body.dark-theme .rating-question {
  color: #e0e0e0;
}

body.dark-theme .star {
  color: #4a5568;
}

body.dark-theme .rating-text {
  color: #c9a87c;
}

body.dark-theme .rating-comment {
  background: #3a3a4a;
  border-color: #4a5568;
  color: #e0e0e0;
}

body.dark-theme .rating-comment::placeholder {
  color: #718096;
}

body.dark-theme .rating-footer {
  background: rgba(26, 32, 44, 0.5);
}

body.dark-theme .rating-btn-skip {
  background: #4a5568;
  color: #e0e0e0;
}

body.dark-theme .rating-btn-skip:hover {
  background: #5a6578;
}

body.dark-theme .cocktail-rating {
  background: rgba(212, 175, 55, 0.9);
  color: #1a1a2e;
}

body.dark-theme .cocktail-rating i {
  color: #ffd700;
}

body.dark-theme .cocktail-rating .rating-value {
  color: white;
}

/* Экраны оценки и благодарности */
.rating-screen {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rating-screen.slide-out {
  opacity: 0;
  transform: translateX(-100%);
}

.thank-you-screen {
  display: none;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
  text-align: center;
  padding: 2rem 1.5rem;
}

.thank-you-screen.show {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.thank-you-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.thank-you-emoji {
  font-size: 4rem;
  animation: thankYouBounce 0.8s ease-out;
}

@keyframes thankYouBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  animation: thankYouFadeIn 0.6s ease-out 0.2s both;
}

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

.thank-you-stars {
  animation: thankYouFadeIn 0.6s ease-out 0.4s both;
}

.thank-you-stars .star-filled {
  color: #ffd700 !important;
  font-size: 2.5rem;
  margin: 0 0.25rem;
  animation: starPopIn 0.4s ease-out backwards;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.thank-you-stars .star-filled.active {
  color: #ffd700 !important;
  animation: starPopIn 0.4s ease-out backwards, starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
  }
}

.thank-you-stars .star-filled:nth-child(1) {
  animation-delay: 0.5s;
}

.thank-you-stars .star-filled:nth-child(2) {
  animation-delay: 0.6s;
}

.thank-you-stars .star-filled:nth-child(3) {
  animation-delay: 0.7s;
}

.thank-you-stars .star-filled:nth-child(4) {
  animation-delay: 0.8s;
}

.thank-you-stars .star-filled:nth-child(5) {
  animation-delay: 0.9s;
}

@keyframes starPopIn {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.thank-you-message {
  font-size: 1rem;
  color: #666;
  margin: 0;
  animation: thankYouFadeIn 0.6s ease-out 1.2s both;
}

/* Анимация плавного исчезновения модального окна */
.rating-modal.fade-out {
  animation: modalFadeOut 1s ease-out forwards;
}

@keyframes modalFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.rating-modal-content.fade-out {
  animation: contentFadeOut 1s ease-out forwards;
}

@keyframes contentFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Темная тема для экрана благодарности */
body.dark-theme .thank-you-title {
  color: #4caf50;
}

body.dark-theme .thank-you-message {
  color: #a0aec0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .rating-modal-content {
    max-width: 90%;
    margin: 0;
  }

  .rating-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .rating-emoji {
    font-size: 3rem;
  }

  .rating-title {
    font-size: 1.5rem;
  }

  .rating-subtitle {
    font-size: 1rem;
  }

  .rating-body {
    padding: 2rem 1.5rem;
  }

  .stars-container {
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .star {
    font-size: 2.5rem;
  }

  .rating-text {
    font-size: 1.1rem;
  }

  .rating-footer {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
  }

  .rating-btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }

  .cocktail-rating {
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .cocktail-rating i {
    font-size: 0.85rem;
  }

  .cocktail-rating .rating-value {
    font-size: 0.9rem;
  }
  
  .thank-you-emoji {
    font-size: 3.5rem;
  }
  
  .thank-you-title {
    font-size: 1.4rem;
  }
  
  .thank-you-stars .star-filled {
    font-size: 2rem;
    margin: 0 0.2rem;
  }
  
  .thank-you-message {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .rating-modal-content {
    max-width: 95%;
    border-radius: 16px;
  }

  .rating-header {
    padding: 1rem 0.8rem;
  }

  .rating-emoji {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
  }

  .rating-title {
    font-size: 1.1rem;
  }
  
  .rating-subtitle {
    font-size: 0.85rem;
  }

  .rating-body {
    padding: 1rem 0.8rem;
  }
  
  .stars-container {
    gap: 0.4rem;
    padding: 0.8rem 0;
    margin-bottom: 0.6rem;
  }

  .star {
    font-size: 2rem;
  }

  .rating-text {
    font-size: 0.95rem;
    margin-top: 0.4rem;
  }
  
  .thank-you-screen {
    padding: 1.2rem 0.8rem;
  }
  
  .thank-you-emoji {
    font-size: 2.5rem;
  }
  
  .thank-you-title {
    font-size: 1.2rem;
    margin: 0.4rem 0;
  }
  
  .thank-you-stars .star-filled {
    font-size: 1.8rem;
    margin: 0 0.15rem;
  }
  
  .thank-you-message {
    font-size: 0.85rem;
    margin-top: 0.2rem;
  }
  
  .thank-you-content {
    gap: 0.8rem;
  }
}

/* ============================================
   СИСТЕМА ЗАКУПОК
   ============================================ */

/* Статистика по ингредиентам */
.purchases-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(180, 140, 90, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 140, 90, 0.15);
}

.stat-card i {
  font-size: 2.5rem;
  color: #b48c5a;
}

.stat-card.warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-color: #ffa726;
}

.stat-card.warning i {
  color: #f57c00;
}

.stat-card.danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-color: #ef5350;
}

.stat-card.danger i {
  color: #d32f2f;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-top: 0.25rem;
}

/* Форма добавления ингредиента */
.ingredient-add-section {
  background: #ffffff;
  border: 1px solid rgba(180, 140, 90, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ingredient-add-section h5 {
  color: #b48c5a;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredient-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #b48c5a;
  box-shadow: 0 0 0 3px rgba(180, 140, 90, 0.1);
}

/* Раздел списка ингредиентов */
.ingredients-list-section {
  background: #ffffff;
  border: 1px solid rgba(180, 140, 90, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h5 {
  color: #b48c5a;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.purchases-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.purchases-controls .admin-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Фильтры ингредиентов */
.ingredients-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 1rem;
  color: #999;
}

.search-box .form-input {
  width: 100%;
  padding-left: 2.5rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
}

.filter-btn:hover {
  background: #f8f9fa;
  border-color: #b48c5a;
}

.filter-btn.active {
  background: #b48c5a;
  color: white;
  border-color: #b48c5a;
}

/* Карточка ингредиента */
.ingredient-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

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

.ingredient-card.low-stock {
  border-left: 4px solid #ffa726;
  background: linear-gradient(90deg, #fff8e1 0%, #ffffff 10%);
}

.ingredient-card.out-of-stock {
  border-left: 4px solid #ef5350;
  background: linear-gradient(90deg, #ffebee 0%, #ffffff 10%);
  opacity: 0.9;
}

.ingredient-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ingredient-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.ingredient-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.ingredient-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.stock-value {
  font-weight: 600;
  color: #27ae60;
}

.stock-value.low {
  color: #f57c00;
}

.stock-value.out {
  color: #d32f2f;
}

.ingredient-actions {
  display: flex;
  gap: 0.5rem;
}

.ingredient-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ingredient-btn.edit {
  background: #3498db;
  color: white;
}

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

.ingredient-btn.delete {
  background: #e74c3c;
  color: white;
}

.ingredient-btn.delete:hover {
  background: #c0392b;
}

.ingredient-btn.add-stock {
  background: #27ae60;
  color: white;
}

.ingredient-btn.add-stock:hover {
  background: #229954;
}

/* Предпросмотр списка закупок */
.purchase-list-preview {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #ff9800;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.purchase-list-preview h5 {
  color: #e65100;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.purchase-list-content {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.purchase-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.purchase-item:last-child {
  border-bottom: none;
}

.purchase-item-name {
  font-weight: 600;
  color: #2c3e50;
}

.purchase-item-amount {
  color: #e65100;
  font-weight: 600;
}

/* Темная тема для системы закупок */
body.dark-theme .stat-card {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-color: rgba(180, 140, 90, 0.3);
}

body.dark-theme .stat-card i,
body.dark-theme .stat-value,
body.dark-theme .section-header h5,
body.dark-theme .ingredient-add-section h5 {
  color: #b48c5a;
}

body.dark-theme .stat-label {
  color: #95a5a6;
}

body.dark-theme .ingredient-add-section,
body.dark-theme .ingredients-list-section {
  background: #34495e;
  border-color: rgba(180, 140, 90, 0.3);
}

body.dark-theme .form-input,
body.dark-theme .form-select {
  background: #2c3e50;
  border-color: rgba(180, 140, 90, 0.3);
  color: #ecf0f1;
}

body.dark-theme .ingredient-card {
  background: #2c3e50;
  border-color: rgba(180, 140, 90, 0.3);
}

body.dark-theme .ingredient-card.low-stock {
  background: linear-gradient(90deg, rgba(255, 167, 38, 0.2) 0%, #2c3e50 10%);
}

body.dark-theme .ingredient-card.out-of-stock {
  background: linear-gradient(90deg, rgba(239, 83, 80, 0.2) 0%, #2c3e50 10%);
}

body.dark-theme .ingredient-name {
  color: #ecf0f1;
}

body.dark-theme .ingredient-details {
  color: #95a5a6;
}

body.dark-theme .ingredient-stock {
  color: #bdc3c7;
}

body.dark-theme .stock-value {
  color: #2ecc71;
}

body.dark-theme .stock-value.low {
  color: #f39c12;
}

body.dark-theme .stock-value.out {
  color: #e74c3c;
}

body.dark-theme .form-label,
body.dark-theme label {
  color: #ecf0f1;
}

body.dark-theme .form-input::placeholder,
body.dark-theme .form-select option {
  color: #7f8c8d;
}

body.dark-theme .filter-btn {
  background: #2c3e50;
  color: #ecf0f1;
  border-color: rgba(180, 140, 90, 0.3);
}

body.dark-theme .filter-btn:hover {
  background: #34495e;
}

body.dark-theme .filter-btn.active {
  background: #b48c5a;
  color: white;
}

body.dark-theme .purchase-list-preview {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 224, 178, 0.1) 100%);
  border-color: #ff9800;
}

body.dark-theme .purchase-list-preview h5 {
  color: #ff9800;
}

body.dark-theme .purchase-list-content {
  background: #2c3e50;
}

body.dark-theme .purchase-item {
  border-color: rgba(180, 140, 90, 0.2);
}

body.dark-theme .purchase-item-name {
  color: #ecf0f1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .purchases-stats {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .purchases-controls {
    width: 100%;
  }
  
  .purchases-controls .admin-btn {
    flex: 1;
    justify-content: center;
  }
  
  .ingredients-filters {
    flex-direction: column;
  }
  
  .ingredient-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .ingredient-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ============================================
   СЧАСТЛИВЫЕ ЧАСЫ (HAPPY HOURS)
   ============================================ */

/* Баннер счастливых часов */
.happy-hour-banner {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(238, 90, 36, 0.3);
  animation: gentlePulse 2s ease-in-out infinite;
}

.happy-hour-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.happy-hour-icon {
  font-size: 3rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.happy-hour-info {
  flex: 1;
}

.happy-hour-title {
  font-size: 1.8rem;
  color: white;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.happy-hour-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.happy-hour-description span {
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffd700;
}

.happy-hour-timer {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.timer-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timer-countdown {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  font-family: 'Courier New', monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Темная тема для баннера счастливых часов */
body.dark-theme .happy-hour-banner {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  box-shadow: 0 8px 32px rgba(231, 76, 60, 0.4);
}

/* Happy Hours в админ-панели */
.happy-hours-add-section,
.happy-hours-list-section {
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8cc 100%);
  border: 2px solid #ffa726;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.happy-hours-add-section h5,
.happy-hours-list-section h5 {
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.happy-hours-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.days-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.days-selector label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.days-selector label:hover {
  background: #e0e0e0;
}

.days-selector input[type="checkbox"]:checked + label,
.days-selector label:has(input[type="checkbox"]:checked) {
  background: #ffa726;
  color: white;
}

.happy-hour-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.happy-hour-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.happy-hour-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.happy-hour-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
}

.happy-hour-discount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.happy-hour-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.happy-hour-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
}

.happy-hour-detail i {
  color: #ffa726;
}

.happy-hour-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.day-badge {
  padding: 0.3rem 0.7rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.happy-hour-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.happy-hour-status.active {
  background: #c8e6c9;
  color: #2e7d32;
}

.happy-hour-status.inactive {
  background: #ffcdd2;
  color: #c62828;
}

/* Темная тема для счастливых часов в админке */
body.dark-theme .happy-hours-add-section,
body.dark-theme .happy-hours-list-section {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 224, 178, 0.1) 100%);
  border-color: #ff9800;
}

body.dark-theme .happy-hours-add-section h5,
body.dark-theme .happy-hours-list-section h5 {
  color: #ecf0f1;
}

body.dark-theme .happy-hour-item {
  background: #2c3e50;
}

body.dark-theme .happy-hour-name {
  color: #ecf0f1;
}

body.dark-theme .days-selector {
  background: #34495e;
}

body.dark-theme .days-selector label {
  background: #2c3e50;
  color: #ecf0f1;
}

body.dark-theme .happy-hour-detail {
  color: #95a5a6;
}

/* Адаптивность для мобильных устройств - Счастливые часы */
@media (max-width: 768px) {
  .happy-hours-add-section,
  .happy-hours-list-section {
    padding: 1rem 0.8rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .happy-hours-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 0.3rem;
  }
  
  .happy-hours-form .form-group {
    width: 100%;
    padding: 0 0.2rem;
  }
  
  .happy-hours-form .form-input {
    width: calc(100% - 1rem);
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.75rem 0.5rem;
    margin: 0 0.5rem;
  }
  
  .happy-hours-form input[type="time"] {
    width: calc(100% - 1rem);
    box-sizing: border-box;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    margin: 0 0.5rem;
  }
  
  .happy-hours-form input[type="text"],
  .happy-hours-form input[type="number"] {
    width: calc(100% - 1rem);
    box-sizing: border-box;
    margin: 0 0.5rem;
  }
  
  .days-selector {
    gap: 0.5rem;
    padding: 0.8rem;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
    box-sizing: border-box;
  }
  
  .days-selector label {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  
  .happy-hour-item {
    padding: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .happy-hour-details {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .happy-hour-name {
    font-size: 1.1rem;
  }
  
  .happy-hour-discount {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================
   БОНУСНАЯ СИСТЕМА (CASHBACK)
   ============================================ */

/* Баланс бонусов в шапке */
.bonus-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #2c3e50;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bonus-balance:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.bonus-balance i {
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

#bonusPoints {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Темная тема для баланса бонусов */
body.dark-theme .bonus-balance {
  background: linear-gradient(135deg, #b48c5a 0%, #d4af37 100%);
  color: #1a1a2e;
}

/* Секция бонусов в модальном окне заказа */
.bonus-payment-section {
  background: linear-gradient(135deg, #fff9e6 0%, #ffedcc 100%);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 0.8rem;
  margin: 0.7rem 0;
}

.bonus-available {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
}

.bonus-available span:last-child {
  font-size: 1.2rem;
  color: #d4af37;
}

.bonus-input-group {
  display: flex;
  gap: 0.5rem;
}

.bonus-input-group input {
  flex: 1;
  padding: 0.7rem;
  border: 2px solid #ffd700;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.bonus-input-group input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.apply-bonus-btn {
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #2c3e50;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-bonus-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.bonus-message {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.bonus-message.success {
  background: #c8e6c9;
  color: #2e7d32;
}

.bonus-message.error {
  background: #ffcdd2;
  color: #c62828;
}

/* Информация о начислении бонусов */
.bonus-earn-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  margin-top: 0.7rem;
  color: #2e7d32;
  font-size: 0.9rem;
}

.bonus-earn-info i {
  font-size: 1.2rem;
}

.bonus-earn-info strong {
  color: #1b5e20;
  font-size: 1.1rem;
}

/* Темная тема для бонусов в модальном окне */
body.dark-theme .bonus-payment-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(180, 140, 90, 0.1) 100%);
  border-color: #b48c5a;
}

body.dark-theme .bonus-available {
  color: #ecf0f1;
}

body.dark-theme .bonus-input-group input {
  background: #2c3e50;
  border-color: #b48c5a;
  color: #ecf0f1;
}

body.dark-theme .apply-bonus-btn {
  background: linear-gradient(135deg, #b48c5a 0%, #8b6f47 100%);
  color: #ecf0f1;
}

body.dark-theme .bonus-earn-info {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(67, 160, 71, 0.1) 100%);
  border-color: #4caf50;
  color: #81c784;
}

body.dark-theme .bonus-earn-info strong {
  color: #a5d6a7;
}

/* Бонусная система в админ-панели */
.bonus-settings-section,
.bonus-stats-section,
.bonus-users-section {
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8cc 100%);
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bonus-settings-section h5,
.bonus-stats-section h5,
.bonus-users-section h5 {
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bonus-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bonus-settings-form small {
  display: block;
  margin-top: 0.3rem;
  color: #666;
  font-size: 0.85rem;
}

.bonus-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.bonus-search {
  position: relative;
  margin-bottom: 1rem;
}

.bonus-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.bonus-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 2px solid #ffd700;
  border-radius: 8px;
  font-size: 1rem;
}

.bonus-user-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bonus-user-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.bonus-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bonus-user-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.bonus-user-points {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.bonus-user-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.bonus-user-detail {
  display: flex;
  flex-direction: column;
}

.bonus-user-detail strong {
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

/* Темная тема для бонусной системы в админке */
body.dark-theme .bonus-settings-section,
body.dark-theme .bonus-stats-section,
body.dark-theme .bonus-users-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-color: #b48c5a;
}

body.dark-theme .bonus-settings-section h5,
body.dark-theme .bonus-stats-section h5,
body.dark-theme .bonus-users-section h5 {
  color: #ecf0f1;
}

body.dark-theme .bonus-settings-form small {
  color: #95a5a6;
}

body.dark-theme .bonus-user-item {
  background: #2c3e50;
}

body.dark-theme .bonus-user-name,
body.dark-theme .bonus-user-detail strong {
  color: #ecf0f1;
}

body.dark-theme .bonus-user-details {
  color: #95a5a6;
}

body.dark-theme .bonus-search input {
  background: #2c3e50;
  border-color: #b48c5a;
  color: #ecf0f1;
}

/* Обновленные стили для модального окна заказа с новыми секциями */
.discount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 4px solid #ff9800;
  border-radius: 8px;
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.discount-label {
  font-weight: 600;
  color: #e65100;
}

.discount-value {
  font-weight: 700;
  color: #ff6b6b;
  font-size: 1.1rem;
}

.total-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  margin-top: 0.7rem;
}

.total-label {
  font-size: 1rem;
  font-weight: 600;
  color: #2e7d32;
}

.total-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1b5e20;
}

/* Темная тема для информации о скидках и итоге */
body.dark-theme .discount-info {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 224, 178, 0.1) 100%);
  border-color: #ff9800;
}

body.dark-theme .discount-label {
  color: #ff9800;
}

body.dark-theme .total-price-info {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(67, 160, 71, 0.1) 100%);
  border-color: #4caf50;
}

body.dark-theme .total-label {
  color: #81c784;
}

body.dark-theme .total-value {
  color: #a5d6a7;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .happy-hour-content {
    flex-direction: column;
    text-align: center;
  }
  
  .happy-hour-timer {
    width: 100%;
  }
  
  .timer-countdown {
    font-size: 1.5rem;
  }
  
  .bonus-balance {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .bonus-stats {
    grid-template-columns: 1fr;
  }
  
  .bonus-input-group {
    flex-direction: column;
  }
  
  .days-selector {
    gap: 0.5rem;
  }
  
  .days-selector label {
    flex: 1;
    min-width: calc(33.333% - 0.5rem);
    justify-content: center;
  }
}

/* ============================================
   ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ
   ============================================ */

/* Контейнер кнопок пользователя */
.user-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Кнопка профиля в шапке */
.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  min-width: 180px;
  min-height: 48px;
  height: 48px;
  justify-content: center;
  box-sizing: border-box;
}

.profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.profile-btn i {
  font-size: 1.3rem;
}

.bonus-preview {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Кнопка админки в шапке */
.admin-btn-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
  min-width: 180px;
  min-height: 48px;
  height: 48px;
  justify-content: center;
  box-sizing: border-box;
}

.admin-btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(238, 90, 36, 0.4);
}

.admin-btn-header i {
  font-size: 1.3rem;
}

/* Темная тема для кнопок в шапке */
body.dark-theme .profile-btn {
  background: linear-gradient(135deg, #b48c5a 0%, #8b6f47 100%);
  box-shadow: 0 4px 12px rgba(180, 140, 90, 0.3);
}

body.dark-theme .profile-btn:hover {
  box-shadow: 0 6px 16px rgba(180, 140, 90, 0.4);
}

body.dark-theme .admin-btn-header {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

body.dark-theme .admin-btn-header:hover {
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Модальное окно профиля */
.profile-modal {
  overflow-y: auto !important;
  position: fixed;
  padding: 20px 0;
  padding-bottom: 60px;
}

.profile-modal[style*="display: block"] {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
}

.profile-modal .profile-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
}

/* Шапка профиля */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 24px 24px 16px 16px;
  margin-bottom: 0.5rem;
}

.profile-avatar {
  font-size: 3rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.profile-info h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.profile-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Темная тема для шапки профиля */
body.dark-theme .profile-header {
  background: linear-gradient(135deg, #b48c5a 0%, #8b6f47 100%);
}

/* Вкладки профиля */
.profile-tabs {
  display: flex;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
  padding: 0.5rem;
}

.profile-tab {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0.7rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.profile-tab i {
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.profile-tab span {
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.profile-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateY(-2px);
}

.profile-tab:hover i {
  transform: scale(1.15);
}

.profile-tab.active {
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* Темная тема для вкладок */
body.dark-theme .profile-tabs {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .profile-tab {
  color: #ecf0f1;
  background: rgba(44, 62, 80, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .profile-tab:hover {
  background: rgba(180, 140, 90, 0.2);
  color: #ffd700;
}

body.dark-theme .profile-tab.active {
  color: #1a1a2e;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Контент вкладок */
.profile-content-wrapper {
  flex: 1;
  overflow: visible;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .profile-content-wrapper {
    padding-top: 1.25rem; /* добавляем запас под вкладками, чтобы карточка бонусов не наезжала на кнопки */
  }
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Большая карточка бонусов */
.bonus-card-large {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.bonus-icon-large {
  font-size: 3rem;
  animation: pulse 2s ease-in-out infinite;
}

.bonus-balance-large {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bonus-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.bonus-label {
  font-size: 1rem;
  color: #555;
  margin-top: 0.3rem;
}

/* Темная тема для карточки бонусов */
body.dark-theme .bonus-card-large {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border: 2px solid #b48c5a;
  box-shadow: 0 8px 24px rgba(180, 140, 90, 0.3);
}

body.dark-theme .bonus-amount {
  color: #ffd700;
}

body.dark-theme .bonus-label {
  color: #95a5a6;
}

/* Сетка статистики бонусов */
.bonus-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.bonus-stat-item {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bonus-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bonus-stat-item i {
  font-size: 1.5rem;
  color: #667eea;
}

.bonus-stat-info {
  display: flex;
  flex-direction: column;
}

.bonus-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
}

.bonus-stat-label {
  font-size: 0.8rem;
  color: #666;
}

/* Темная тема для статистики */
body.dark-theme .bonus-stat-item {
  background: #2c3e50;
}

body.dark-theme .bonus-stat-item i {
  color: #b48c5a;
}

body.dark-theme .bonus-stat-value {
  color: #ecf0f1;
}

body.dark-theme .bonus-stat-label {
  color: #95a5a6;
}

/* Информационная карточка */
.bonus-info-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  border-radius: 10px;
  padding: 1rem;
}

.bonus-info-card h4 {
  margin: 0 0 0.7rem 0;
  color: #1976d2;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bonus-info-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.bonus-info-card li {
  color: #424242;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* Темная тема для информационной карточки */
body.dark-theme .bonus-info-card {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
  border-color: #2196f3;
}

body.dark-theme .bonus-info-card h4 {
  color: #64b5f6;
}

body.dark-theme .bonus-info-card li {
  color: #95a5a6;
}

/* Секции счетов */
.profile-bill-section,
.profile-history-section {
  /* Используем существующие стили для счетов */
}

/* Секция настроек */
.settings-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-section h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-weight: 500;
  color: #2c3e50;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Темная тема для настроек */
body.dark-theme .settings-section {
  background: #2c3e50;
}

body.dark-theme .settings-section h4 {
  color: #ecf0f1;
}

body.dark-theme .setting-item {
  border-color: rgba(180, 140, 90, 0.2);
}

body.dark-theme .setting-item label {
  color: #ecf0f1;
}

/* Кнопка переключения темы в профиле */
.theme-toggle-btn {
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

body.dark-theme .theme-toggle-btn {
  background: linear-gradient(135deg, #b48c5a 0%, #8b6f47 100%);
}

/* Опасная зона */
.danger-zone {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%) !important;
  border-left: 4px solid #f44336;
}

.logout-btn {
  width: 100%;
  padding: 1rem;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

body.dark-theme .danger-zone {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.1) 100%) !important;
}

/* Адаптивность для профиля */
@media (max-width: 768px) {
  .user-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    padding: 0 1rem;
  }
  
  .profile-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    height: 44px;
    min-height: 44px;
    justify-content: center;
  }
  
  .profile-btn i {
    font-size: 1.1rem;
  }
  
  .profile-btn span#profileUserName {
    display: inline !important;
    font-size: 0.85rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .bonus-preview {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .admin-btn-header {
    padding: 0.6rem 1rem;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    height: 44px;
    min-height: 44px;
    justify-content: center;
  }
  
  .admin-btn-header i {
    font-size: 1.1rem;
  }
  
  .admin-btn-header span {
    display: inline !important;
  }
  
  .profile-modal {
    padding: 0;
    padding-bottom: 20px;
  }
  
  .profile-modal .profile-content {
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
    overflow-y: auto;
  }
  
  .profile-header {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }
  
  .profile-avatar {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .profile-info h3 {
    font-size: 1.1rem;
  }
  
  .profile-info p {
    font-size: 0.85rem;
  }
  
  .profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.3rem;
    padding: 0.3rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .profile-tab {
    min-width: 80px;
    padding: 0.7rem 0.4rem;
    flex-shrink: 0;
  }
  
  .profile-tab i {
    font-size: 1.2rem;
  }
  
  .profile-tab span {
    font-size: 0.7rem;
  }
  
  .profile-content-wrapper {
    padding: 0.8rem;
    padding-bottom: 2rem;
    overflow: visible;
  }
  
  .bonus-card-large {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
  
  .bonus-icon-large {
    font-size: 2.5rem;
  }
  
  .bonus-amount {
    font-size: 2rem;
  }
  
  .bonus-label {
    font-size: 0.9rem;
  }
  
  .bonus-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .bonus-stat-item {
    padding: 0.8rem;
  }
  
  .bonus-stat-value {
    font-size: 1.2rem;
  }
  
  .bonus-info-card {
    padding: 0.8rem;
  }
  
  .profile-bill-items-grid {
    grid-template-columns: 1fr;
  }
}

/* Оптимизация изображений коктейлей для мобильных */
@media (max-width: 768px) {
  .cocktails-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .image-container {
    height: 500px;
    overflow: hidden;
    background: transparent;
  }
  
  .image-container img {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100%;
    height: 100%;
    transform: scale(1.15) !important;
  }
}

@media (max-width: 600px) {
  .cocktails-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-container {
    height: 480px;
    overflow: hidden;
    background: transparent;
  }
  
  .image-container img {
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.15) !important;
    width: 100%;
    height: 100%;
  }
}

/* Дополнительные стили для профиля */

/* Сообщения "нет данных" */
.no-bill-message,
.no-history-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
}

.no-bill-message i,
.no-history-message i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.no-bill-message p,
.no-history-message p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.hint {
  font-size: 0.9rem !important;
  color: #bbb !important;
}

body.dark-theme .no-bill-message,
body.dark-theme .no-history-message {
  color: #666;
}

body.dark-theme .no-bill-message i,
body.dark-theme .no-history-message i {
  color: #444;
}

body.dark-theme .hint {
  color: #555 !important;
}

/* Карточка текущего счета */
.current-bill-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.bill-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bill-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4caf50;
}

/* Сетка позиций в счете профиля */
.profile-bill-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-bill-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.profile-bill-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.profile-bill-item-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-bill-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-bill-item-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
  font-size: 1.5rem;
}

.profile-bill-item-info {
  flex: 1;
  min-width: 0;
}

.profile-bill-item-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-bill-item-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #4caf50;
}

.profile-bill-item-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-bill-item-status.status-confirmed {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.profile-bill-item-status.status-preparing {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.profile-bill-item-status.status-ready {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.profile-bill-item-status.status-completed {
  background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
  color: #558b2f;
}

.profile-bill-item-status.status-cancelled {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
}

/* Итоговая информация по счету */
.bill-summary {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.bill-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: #1565c0;
}

.bill-summary-row.total {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid #1976d2;
  font-size: 1.1rem;
}

.bill-summary-row strong {
  font-size: 1.2rem;
}

.bill-summary-row.total strong {
  font-size: 1.5rem;
  color: #0d47a1;
}

/* Темная тема для счетов */
body.dark-theme .current-bill-card {
  background: #2c3e50;
}

body.dark-theme .bill-header {
  border-color: rgba(180, 140, 90, 0.2);
}

body.dark-theme .bill-header h4 {
  color: #ecf0f1;
}

body.dark-theme .profile-bill-item {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

body.dark-theme .profile-bill-item:hover {
  border-color: #b48c5a;
}

body.dark-theme .profile-bill-item-placeholder {
  background: linear-gradient(135deg, #b48c5a 0%, #8b6f47 100%);
}

body.dark-theme .profile-bill-item-name {
  color: #ecf0f1;
}

body.dark-theme .profile-bill-item-status.status-confirmed {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 152, 0, 0.2) 100%);
  color: #ff9800;
}

body.dark-theme .profile-bill-item-status.status-preparing {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0.2) 100%);
  color: #64b5f6;
}

body.dark-theme .profile-bill-item-status.status-ready {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.2) 100%);
  color: #81c784;
}

body.dark-theme .profile-bill-item-status.status-completed {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.3) 0%, rgba(139, 195, 74, 0.2) 100%);
  color: #aed581;
}

body.dark-theme .profile-bill-item-status.status-cancelled {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.3) 0%, rgba(244, 67, 54, 0.2) 100%);
  color: #ef5350;
}

body.dark-theme .bill-summary {
  background: linear-gradient(135deg, rgba(180, 140, 90, 0.2) 0%, rgba(180, 140, 90, 0.1) 100%);
}

body.dark-theme .bill-summary-row {
  color: #b48c5a;
}

body.dark-theme .bill-summary-row.total {
  border-color: #b48c5a;
}

body.dark-theme .bill-summary-row.total strong {
  color: #d4af37;
}

/* История счетов */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
}

.history-info {
  flex: 1;
}

.history-date {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

.history-details {
  font-size: 0.9rem;
  color: #666;
}

.history-amount {
  font-weight: 700;
  font-size: 1.2rem;
  color: #4caf50;
}

.view-all-history-btn {
  width: 100%;
  padding: 1rem;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.view-all-history-btn:hover {
  background: #667eea;
  color: white;
}

body.dark-theme .history-item {
  background: #2c3e50;
}

body.dark-theme .history-date {
  color: #ecf0f1;
}

body.dark-theme .history-details {
  color: #95a5a6;
}

body.dark-theme .view-all-history-btn {
  background: #2c3e50;
  color: #b48c5a;
  border-color: #b48c5a;
}

body.dark-theme .view-all-history-btn:hover {
  background: #b48c5a;
  color: white;
}

/* ============================================
   УПРАВЛЕНИЕ СЧЕТАМИ (АДМИН)
   ============================================ */

/* Статистика по счетам */
.bills-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.bills-filters {
  margin-bottom: 2rem;
}

/* Карточка счета в админке */
.admin-bill-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #667eea;
}

.admin-bill-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.admin-bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.bill-user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bill-user-info i {
  font-size: 2rem;
  color: #667eea;
}

.bill-user-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
}

.bill-date {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.2rem;
}

.bill-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bill-status-badge.open {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.bill-status-badge.paid {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.admin-bill-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.bill-items-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.bill-items-preview i {
  color: #667eea;
  margin-top: 0.2rem;
}

.bill-amount-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
}

.bill-amount-label {
  font-weight: 600;
  color: #1565c0;
  font-size: 1.1rem;
}

.bill-amount-value {
  font-weight: 700;
  color: #0d47a1;
  font-size: 1.5rem;
}

.bill-discount-info,
.bill-payment-info,
.bill-paid-date {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bill-discount-info i,
.bill-payment-info i,
.bill-paid-date i {
  color: #ff9800;
}

.admin-bill-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-bill-actions .admin-btn {
  flex: 1;
  min-width: 150px;
}

/* Темная тема для счетов в админке */
body.dark-theme .admin-bill-card {
  background: #2c3e50;
  border-color: #b48c5a;
}

body.dark-theme .admin-bill-header {
  border-color: rgba(180, 140, 90, 0.2);
}

body.dark-theme .bill-user-info i {
  color: #b48c5a;
}

body.dark-theme .bill-user-name {
  color: #ecf0f1;
}

body.dark-theme .bill-date {
  color: #95a5a6;
}

body.dark-theme .bill-status-badge.open {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 152, 0, 0.2) 100%);
  color: #ff9800;
}

body.dark-theme .bill-status-badge.paid {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.2) 100%);
  color: #81c784;
}

body.dark-theme .bill-items-preview {
  background: #34495e;
  color: #ecf0f1;
  font-weight: 500;
}

body.dark-theme .bill-items-preview i {
  color: #b48c5a;
}

body.dark-theme .bill-amount-section {
  background: linear-gradient(135deg, rgba(180, 140, 90, 0.2) 0%, rgba(180, 140, 90, 0.1) 100%);
}

body.dark-theme .bill-amount-label {
  color: #b48c5a;
}

body.dark-theme .bill-amount-value {
  color: #d4af37;
}

body.dark-theme .bill-discount-info,
body.dark-theme .bill-payment-info,
body.dark-theme .bill-paid-date {
  color: #95a5a6;
}

/* Детали счета в модалке */
.bill-details-modal-content {
  padding: 1rem;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.bill-details-modal-content h3 {
  margin: 0 0 1.5rem 0;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bill-details-modal-content h4 {
  margin: 1.5rem 0 1rem 0;
  color: #f0f0f0;
}

.bill-detail-section {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bill-detail-section:last-of-type {
  border-bottom: none;
}

.bill-detail-section.highlight {
  background: #fff3e0;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border-bottom: none;
  margin: 0.5rem 0;
}

.bill-details-items {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.bill-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  color: #2c3e50;
}

.bill-detail-item:last-child {
  border-bottom: none;
}

/* Улучшенное отображение позиций в счете */
.bill-detail-item-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.bill-detail-item-enhanced:last-child {
  margin-bottom: 0;
}

.bill-detail-item-enhanced .item-info {
  flex: 1;
}

.bill-detail-item-enhanced .item-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.4rem;
}

.bill-detail-item-enhanced .item-details {
  font-size: 0.9rem;
  color: #555;
}

.bill-detail-item-enhanced .item-details strong {
  color: #2c3e50;
}

.bill-detail-item-enhanced .item-discount {
  color: #28a745;
  font-weight: 600;
  margin-left: 0.5rem;
}

.bill-detail-item-enhanced .item-price {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: 700;
  text-align: right;
  min-width: 100px;
}

.bill-detail-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 8px;
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #2c3e50;
}

.bill-detail-total strong {
  color: #2c3e50;
}

.bill-detail-total strong:last-child {
  font-size: 1.5rem;
  color: #2e7d32;
}

/* Темная тема для деталей счета */
body.dark-theme .bill-details-modal-content h3,
body.dark-theme .bill-details-modal-content h4 {
  color: #ecf0f1;
}

body.dark-theme .bill-detail-section {
  border-color: rgba(180, 140, 90, 0.2);
  color: #ecf0f1;
}

body.dark-theme .bill-detail-section.highlight {
  background: rgba(255, 152, 0, 0.2);
}

body.dark-theme .bill-details-items {
  background: #34495e;
}

body.dark-theme .bill-detail-item {
  border-color: rgba(180, 140, 90, 0.2);
  color: #ecf0f1;
}

body.dark-theme .bill-detail-item-enhanced {
  background: #34495e;
  border-color: rgba(180, 140, 90, 0.2);
  border-left-color: #b48c5a;
}

body.dark-theme .bill-detail-item-enhanced .item-name {
  color: #ecf0f1;
}

body.dark-theme .bill-detail-item-enhanced .item-details {
  color: #95a5a6;
}

body.dark-theme .bill-detail-item-enhanced .item-details strong {
  color: #ecf0f1;
}

body.dark-theme .bill-detail-item-enhanced .item-discount {
  color: #52c75a;
}

body.dark-theme .bill-detail-item-enhanced .item-price {
  color: #b48c5a;
}

body.dark-theme .bill-detail-total {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
  color: #ecf0f1;
}

body.dark-theme .bill-detail-total strong:last-child {
  color: #81c784;
}

/* Модальное окно подтверждения оплаты */
.payment-confirm-content {
  max-width: 550px;
  max-height: 90vh;
  padding: 0 1.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
}

.payment-confirm-content::-webkit-scrollbar {
  width: 8px;
}

.payment-confirm-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.payment-confirm-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.payment-confirm-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.payment-confirm-header {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
  border-radius: 24px 24px 16px 16px;
}

.payment-icon {
  font-size: 3rem;
  margin-bottom: 0.7rem;
  animation: pulse 2s ease-in-out infinite;
}

.payment-confirm-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.payment-bill-info {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 1rem 0;
  color: #2c3e50;
}

.payment-bill-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
  color: #2c3e50;
}

.payment-bill-info-row:last-child {
  border-bottom: none;
  padding-top: 0.7rem;
  margin-top: 0.3rem;
  border-top: 2px solid #4caf50;
  font-size: 1.1rem;
  font-weight: 700;
}

.payment-method-section {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.payment-method-section h4 {
  margin: 0 0 0.8rem 0;
  color: #f0f0f0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.payment-method-option {
  cursor: pointer;
}

.payment-method-option input[type="radio"] {
  display: none;
}

.payment-method-card {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-method-card i {
  font-size: 2rem;
  color: #666;
  transition: all 0.3s ease;
}

.payment-method-card span {
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  border-color: #4caf50;
  background: #f1f8f4;
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #4caf50;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card i {
  color: #4caf50;
  transform: scale(1.1);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card span {
  color: #2e7d32;
}

.payment-confirm-actions {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 1rem 0;
}

.payment-btn {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.payment-btn.cancel {
  background: #e0e0e0;
  color: #666;
}

.payment-btn.cancel:hover {
  background: #bdbdbd;
  transform: translateY(-2px);
}

.payment-btn.confirm {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.payment-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Темная тема для модального окна оплаты */
body.dark-theme .payment-confirm-header {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

body.dark-theme .payment-bill-info {
  background: #2c3e50;
  color: #ecf0f1;
}

body.dark-theme .payment-bill-info-row {
  border-color: rgba(180, 140, 90, 0.2);
}

body.dark-theme .payment-bill-info-row:last-child {
  border-color: #4caf50;
}

body.dark-theme .payment-method-section {
  background: #34495e;
}

body.dark-theme .payment-method-section h4 {
  color: #ecf0f1;
}

body.dark-theme .payment-method-card {
  background: #2c3e50;
  border-color: rgba(180, 140, 90, 0.3);
}

body.dark-theme .payment-method-card i,
body.dark-theme .payment-method-card span {
  color: #95a5a6;
}

body.dark-theme .payment-method-card:hover {
  border-color: #4caf50;
  background: #34495e;
}

body.dark-theme .payment-method-option input[type="radio"]:checked + .payment-method-card {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.2) 100%);
  border-color: #4caf50;
}

body.dark-theme .payment-method-option input[type="radio"]:checked + .payment-method-card i,
body.dark-theme .payment-method-option input[type="radio"]:checked + .payment-method-card span {
  color: #81c784;
}

body.dark-theme .payment-confirm-actions {
  background: #2c3e50;
}

body.dark-theme .payment-btn.cancel {
  background: #34495e;
  color: #95a5a6;
}

body.dark-theme .payment-btn.cancel:hover {
  background: #3d566e;
}

body.dark-theme .payment-confirm-content::-webkit-scrollbar-track {
  background: #34495e;
}

body.dark-theme .payment-confirm-content::-webkit-scrollbar-thumb {
  background: #5a6e7f;
}

body.dark-theme .payment-confirm-content::-webkit-scrollbar-thumb:hover {
  background: #7a8e9f;
}

/* Адаптивность для модального окна оплаты */
@media (max-width: 768px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }
  
  .payment-confirm-actions {
    flex-direction: column;
  }
}

/* Модальное окно подтверждения действий */
.confirm-action-content {
  max-width: 500px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
}

.confirm-action-header {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
  color: white;
  border-radius: 24px 24px 16px 16px;
}

.confirm-action-header.danger {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.confirm-action-header.success {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.confirm-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.confirm-action-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.confirm-action-body {
  padding: 2rem;
  text-align: center;
}

.confirm-action-body p {
  margin: 0;
  font-size: 1.1rem;
  color: #ecf0f1;
  line-height: 1.6;
}

.confirm-action-buttons {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
}

.confirm-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.confirm-btn.cancel {
  background: #e0e0e0;
  color: #666;
}

.confirm-btn.cancel:hover {
  background: #bdbdbd;
  transform: translateY(-2px);
}

.confirm-btn.confirm {
  background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.confirm-btn.confirm.danger {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.confirm-btn.confirm.success {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.confirm-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.confirm-btn.confirm.danger:hover {
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.confirm-btn.confirm.success:hover {
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Темная тема для модального окна подтверждения */
body.dark-theme .confirm-action-header {
  background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
}

body.dark-theme .confirm-action-header.danger {
  background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
}

body.dark-theme .confirm-action-header.success {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

body.dark-theme .confirm-action-body {
  background: #2c3e50;
}

body.dark-theme .confirm-action-body p {
  color: #ecf0f1;
}

body.dark-theme .confirm-action-buttons {
  background: #2c3e50;
}

body.dark-theme .confirm-btn.cancel {
  background: #34495e;
  color: #95a5a6;
}

body.dark-theme .confirm-btn.cancel:hover {
  background: #3d566e;
}

@media (max-width: 768px) {
  .confirm-action-buttons {
    flex-direction: column;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .bills-stats {
    grid-template-columns: 1fr;
  }
  
  .admin-bill-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .admin-bill-actions {
    flex-direction: column;
  }
  
  .admin-bill-actions .admin-btn {
    width: 100%;
    min-width: auto;
  }
}

.wheel-open-btn:disabled {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(255, 152, 0, 0.5);
  cursor: not-allowed;
}

/* Модальное окно колеса */
.wheel-modal {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px 0 !important;
  padding-bottom: 60px !important;
  overflow-y: auto !important;
}

.wheel-modal[style*="display: block"] {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.wheel-modal .modal-content {
  max-width: 700px;
  max-height: 90vh;
  padding: 0;
  overflow-y: auto;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
}

.wheel-content {
  background: white;
  border-radius: 24px;
}

.wheel-header {
  background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
  padding: 2rem;
  text-align: center;
  color: white;
  border-radius: 24px 24px 16px 16px;
}

.wheel-header-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: wheelPulse 2s ease-in-out infinite;
}

.wheel-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.wheel-subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  opacity: 0.95;
}

/* Доступность */
.wheel-availability {
  padding: 1.5rem;
  background: #f8f9fa;
}

.availability-info {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.availability-available {
  color: #4caf50;
  font-weight: 600;
}

.availability-locked {
  color: #f44336;
  font-weight: 600;
}

.availability-timer {
  font-size: 1.5rem;
  color: #ff9800;
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Контейнер колеса */
.wheel-container {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 600px; /* Обеспечиваем минимальную высоту для видимости кнопок */
}

.wheel-arrow {
  position: absolute;
  top: 2rem;
  font-size: 2.5rem;
  color: #ff9800;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#wheelCanvas {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

#wheelCanvas.spinning {
  animation: wheelSpin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Кнопка вращения */
.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px !important;
  height: 120px !important;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
  border: 6px solid white;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0;
  box-shadow: 
    0 4px 16px rgba(251, 140, 0, 0.4),
    0 0 0 0 rgba(255, 152, 0, 0.7);
  transition: all 0.3s ease;
  z-index: 20;
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 
      0 4px 16px rgba(251, 140, 0, 0.4),
      0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(251, 140, 0, 0.6),
      0 0 0 10px rgba(255, 152, 0, 0);
  }
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 6px 20px rgba(251, 140, 0, 0.6) !important;
  background: linear-gradient(135deg, #fb8c00 0%, #ff9800 100%);
  animation: none;
}

.spin-button:active:not(:disabled) {
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 2px 8px rgba(251, 140, 0, 0.4) !important;
  animation: none;
}

.spin-button:disabled {
  background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Кнопка админа для обхода ожидания */
.admin-spin-bypass {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.admin-spin-bypass:hover {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.4);
}

.admin-spin-bypass i {
  margin-right: 0.5rem;
}

/* Кнопка бесконечного режима для админа */
.admin-infinite-mode {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  width: auto;
  z-index: 100;
  position: relative;
}

.admin-infinite-mode:hover {
  background: linear-gradient(135deg, #ee5a6f 0%, #e74c3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.admin-infinite-mode.active {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  animation: pulseInfinite 2s ease-in-out infinite;
}

.admin-infinite-mode.active:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

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

.admin-infinite-mode i {
  margin-right: 0.5rem;
}

.spin-icon {
  font-size: 2rem;
  line-height: 1;
}

.spin-text {
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

/* Результат */
.wheel-result {
  padding: 2rem;
  text-align: center;
}

.result-animation {
  animation: resultPopup 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.result-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: wheelPulse 1.5s ease-in-out infinite;
}

.result-title {
  color: #ff9800;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.result-description {
  color: #666;
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
}

.result-claim-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
}

.result-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* История выигрышей */
.wheel-history {
  padding: 1.5rem;
  background: #f8f9fa;
  border-top: 2px solid #e0e0e0;
  border-radius: 0 0 24px 24px;
}

.wheel-history h5 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wheel-history-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wheel-history-item {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-item-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.history-item-info {
  flex: 1;
}

.history-item-prize {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.history-item-date {
  font-size: 0.85rem;
  color: #999;
}

.history-item-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.history-item-status.claimed {
  background: #e8f5e9;
  color: #4caf50;
}

.history-item-status.pending {
  background: #fff3e0;
  color: #ff9800;
}

/* Админ панель - статистика колеса */
.wheel-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.wheel-settings-section,
.wheel-prizes-section,
.wheel-spins-history {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wheel-settings-section h5,
.wheel-prizes-section h5,
.wheel-spins-history h5 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-description {
  color: #666;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.wheel-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Список призов */
.prizes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prize-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prize-item-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.prize-item-info {
  flex: 1;
}

.prize-item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.prize-item-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.prize-item-probability {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #ff9800;
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.prize-item-actions {
  display: flex;
  gap: 0.5rem;
}

.prize-item-actions .admin-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-width: auto;
}

/* Темная тема */
body.dark-theme .wheel-content {
  background: #2c3e50;
}

body.dark-theme .wheel-availability {
  background: #34495e;
}

body.dark-theme .availability-info {
  background: #2c3e50;
  color: #ecf0f1;
}

body.dark-theme .wheel-history {
  background: #34495e;
  border-top-color: #2c3e50;
}

body.dark-theme .wheel-history h5 {
  color: #ecf0f1;
}

body.dark-theme .wheel-history-item {
  background: #2c3e50;
  color: #ecf0f1;
}

body.dark-theme .history-item-prize {
  color: #ecf0f1;
}

body.dark-theme .result-description {
  color: #bdc3c7;
}

body.dark-theme .wheel-settings-section,
body.dark-theme .wheel-prizes-section,
body.dark-theme .wheel-spins-history {
  background: #2c3e50;
}

body.dark-theme .wheel-settings-section h5,
body.dark-theme .wheel-prizes-section h5,
body.dark-theme .wheel-spins-history h5 {
  color: #ecf0f1;
}

body.dark-theme .section-description {
  color: #95a5a6;
}

body.dark-theme .prize-item {
  background: #34495e;
  color: #ecf0f1;
}

body.dark-theme .prize-item-name {
  color: #ecf0f1;
}

body.dark-theme .prize-item-description {
  color: #95a5a6;
}

/* Адаптивность */
@media (max-width: 768px) {
  .wheel-header-icon {
    font-size: 3rem;
  }
  
  .wheel-title {
    font-size: 1.5rem;
  }
  
  #wheelCanvas {
    width: 320px !important;
    height: 320px !important;
  }
  
  .spin-button {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
  }
  
  .spin-icon {
    font-size: 1.8rem;
  }
  
  .spin-text {
    font-size: 0.7rem;
  }
  
  .result-icon {
    font-size: 3.5rem;
  }
  
  .result-title {
    font-size: 1.5rem;
  }
  
  .result-description {
    font-size: 1rem;
  }
  
  .wheel-admin-stats {
    grid-template-columns: 1fr;
  }
  
  .prize-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .prize-item-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .prize-item-actions .admin-btn {
    width: 100%;
  }
}

/* ========================================
   АДАПТИВНОСТЬ АДМИН-ПАНЕЛИ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

@media (max-width: 768px) {
  .admin-content {
    padding: 1rem;
  }
  
  .admin-tabs {
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .admin-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .monitoring-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .monitoring-controls .admin-btn {
    width: 100%;
  }
  
  .telegram-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .telegram-controls .admin-btn {
    width: 100%;
  }
  
  .purchases-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .purchases-controls .admin-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.7rem;
  }
  
  .admin-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .admin-filter-btn {
    width: 100%;
    padding: 0.7rem 0.6rem;
    font-size: 0.8rem;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
  }
  
  .admin-filter-btn i {
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  
  /* Кнопка "Создать промокод" и другие primary кнопки */
  .admin-btn.primary {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    white-space: normal;
    line-height: 1.1;
    min-height: auto;
    word-break: break-word;
  }
  
  .admin-btn.primary i {
    display: none;
  }
  
  .admin-list {
    gap: 0.75rem;
  }
  
  .bills-filters .filter-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}