/* ========================================================
   🍔 BURGER MENU STYLES
   ======================================================== */

/* Основная навигация */
.cyber-nav {
    position: relative;
    z-index: 1000;
}

/* Логотип */
.logo-link {
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.5));
}

/* Кнопка бургера */
.burger-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.burger-btn:hover {
    transform: scale(1.1);
}

.burger-line {
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #00ff99, #0cf);
    margin: 6px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 255, 153, 0.5);
}

/* Анимация бургера при открытии */
.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.98), rgba(32, 32, 32, 0.98));
    backdrop-filter: blur(10px);
    border-left: 2px solid #00ff99;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center; /* Добавить эту строку */
    min-height: calc(100vh - 100px); /* И эту строку */
    margin-left: 0px;
}

.mobile-nav-item {
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    justify-content: center; /* Центрирование содержимого по горизонтали */
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mobile-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover {
    background: rgba(0, 255, 153, 0.1);
    border-color: #00ff99;
    color: #00ff99;
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.mobile-nav-item .cyber-icon {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-nav-item span {
    font-weight: 500;
    font-size: 16px;
}

/* Overlay для закрытия меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================================
   🎨 CYBER ICONS (CSS-based)
   ======================================================== */

.cyber-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.cyber-icon::before,
.cyber-icon::after {
    content: "";
    position: absolute;
    background: #00ff99;
    transition: all 0.3s ease;
}

/* Home Icon */
.home-icon::before {
    width: 20px;
    height: 20px;
    top: 8px;
    left: 6px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.home-icon::after {
    width: 8px;
    height: 8px;
    bottom: 6px;
    left: 12px;
    background: rgba(0, 255, 153, 0.3);
}

/* About Icon */
.about-icon::before {
    width: 24px;
    height: 24px;
    top: 4px;
    left: 4px;
    border: 2px solid #00ff99;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.about-icon::after {
    width: 2px;
    height: 8px;
    top: 12px;
    left: 15px;
    background: #00ff99;
}

/* Booking Icon */
.booking-icon::before {
    width: 20px;
    height: 16px;
    top: 8px;
    left: 6px;
    border: 2px solid #00ff99;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.booking-icon::after {
    width: 12px;
    height: 2px;
    top: 14px;
    left: 10px;
    background: #00ff99;
}

/* Admin Icon */
.admin-icon::before {
    width: 20px;
    height: 20px;
    top: 6px;
    left: 6px;
    border: 2px solid #00ff99;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.admin-icon::after {
    width: 6px;
    height: 6px;
    top: 13px;
    left: 13px;
    background: #00ff99;
    border-radius: 50%;
}

/* Profile Icon */
.profile-icon::before {
    width: 12px;
    height: 12px;
    top: 4px;
    left: 10px;
    border: 2px solid #00ff99;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.profile-icon::after {
    width: 20px;
    height: 12px;
    bottom: 4px;
    left: 6px;
    border: 2px solid #00ff99;
    border-radius: 10px 10px 0 0;
    background: transparent;
}

/* Login Icon */
.login-icon::before {
    width: 16px;
    height: 12px;
    top: 10px;
    left: 4px;
    border: 2px solid #00ff99;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.login-icon::after {
    width: 8px;
    height: 2px;
    top: 15px;
    right: 6px;
    background: #00ff99;
    clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}

/* Logout Icon */
.logout-icon::before {
    width: 16px;
    height: 12px;
    top: 10px;
    right: 4px;
    border: 2px solid #00ff99;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.logout-icon::after {
    width: 8px;
    height: 2px;
    top: 15px;
    left: 6px;
    background: #00ff99;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%);
}

/* Register Icon */
.register-icon::before {
    width: 20px;
    height: 20px;
    top: 6px;
    left: 6px;
    border: 2px solid #00ff99;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.register-icon::after {
    width: 8px;
    height: 2px;
    top: 15px;
    left: 12px;
    background: #00ff99;
    box-shadow: 0 -3px 0 #00ff99, 0 3px 0 #00ff99;
}

/* Sales (Холодильник) Icon */
.sales-icon::before {
    width: 16px;
    height: 20px;
    top: 6px;
    left: 8px;
    border: 2px solid #00ff99;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
    border-radius: 2px;
}

.sales-icon::after {
    width: 12px;
    height: 2px;
    top: 12px;
    left: 10px;
    background: #00ff99;
    box-shadow: 0 4px 0 #00ff99;
}

/* VK Icon */
.vk-icon::before {
    width: 24px;
    height: 24px;
    top: 4px;
    left: 4px;
    background: #4680c2;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(70, 128, 194, 0.5);
}

.vk-icon::after {
    width: 16px;
    height: 8px;
    top: 12px;
    left: 8px;
    background: white;
    clip-path: polygon(0 0, 60% 0, 100% 100%, 40% 100%);
}

/* Telegram Icon */
.telegram-icon::before {
    width: 24px;
    height: 24px;
    top: 4px;
    left: 4px;
    background: #0088cc;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

.telegram-icon::after {
    width: 12px;
    height: 12px;
    top: 10px;
    left: 10px;
    background: white;
    clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%);
}

/* Hover эффекты для иконок */
.nav-button:hover .cyber-icon::before,
.nav-button:hover .cyber-icon::after,
.mobile-nav-item:hover .cyber-icon::before,
.mobile-nav-item:hover .cyber-icon::after {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Социальные сети */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}


.mobile-menu.active ~ .container .social-sidebar,
body.menu-open .social-sidebar {
    opacity: 0;
    visibility: hidden;
}


.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
}

.social-link .cyber-icon {
    width: 22px;
    height: 22px;
    margin-right: 9px;
}

/* Исправление для кнопки заметок в футере */
.site-footer .cyber-btn {
    font-size: 12px;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
    min-width: fit-content;
}

/* Адаптивность */
@media (max-width: 991px) {
    .desktop-nav {
        display: none !important;
    }

    .social-sidebar {
        right: 10px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Адаптивные стили для футера */
@media (max-width: 768px) {
    .site-footer .cyber-btn {
        font-size: 10px;
        padding: 0.3rem 0.6rem;
    }

    .site-footer .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-footer .text-center {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .social-sidebar {
        bottom: 80px;
        top: auto;
        transform: none;
        flex-direction: row;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer .cyber-btn {
        font-size: 9px;
        padding: 0.25rem 0.5rem;
    }
}


.bookings-burger-menu {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: auto;
}

.bookings-burger-btn {
    width: 100%;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px 12px;
    color: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.bookings-burger-btn:hover {
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
    color: #00ff99;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.3);
}

.bookings-burger-btn.active {
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.15);
    color: #00ff99;
}

/* Бургер иконка */
.burger-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
    height: 14px;
    transition: all 0.3s ease;
}

/*.burger-line {*/
/*  width: 100%;*/
/*  height: 2px;*/
/*  background: currentColor;*/
/*  border-radius: 1px;*/
/*  transition: all 0.3s ease;*/
/*}*/

/* Анимация бургера при активации */
.bookings-burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.bookings-burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.bookings-burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.burger-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

/* Список бронирований */
.bookings-list {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid transparent;
    border-radius: 6px;
    margin-top: 10px;
    opacity: 0;
}

.bookings-list.active {
    max-height: 400px;
    border-color: #333;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bookings-list-header {
    padding: 12px 15px 8px;
    border-bottom: 1px solid #333;
    background: rgba(0, 255, 153, 0.05);
}

.bookings-list-content {
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
}

/* Кастомный скроллбар */
.bookings-list-content::-webkit-scrollbar {
    width: 6px;
}

.bookings-list-content::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.5);
    border-radius: 3px;
}

.bookings-list-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 153, 0.3);
    border-radius: 3px;
}

.bookings-list-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 153, 0.5);
}

/* Элемент бронирования */
.booking-item {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.booking-item:hover {
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.05);
    transform: translateX(3px);
}

.booking-item:last-child {
    margin-bottom: 0;
}

.booking-time {
    color: #00ff99;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.booking-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.booking-price {
    color: #ffd700;
    font-weight: 600;
}

.booking-info {
    color: #bbb;
    font-style: italic;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

/* Мини кнопки */
.cyber-btn-mini {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    border-radius: 3px;
    padding: 4px 8px;
    color: #d0d0d0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-btn-mini:hover {
    border-color: #00ff99;
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
    transform: scale(1.1);
}

.cyber-btn-mini:active {
    transform: scale(0.95);
}

/* Анимация появления элементов */
.booking-item {
    opacity: 0;
    transform: translateY(10px);
    animation: slideInBooking 0.3s ease forwards;
}

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

/* Задержка анимации для каждого элемента */
.booking-item:nth-child(1) {
    animation-delay: 0.1s;
}

.booking-item:nth-child(2) {
    animation-delay: 0.2s;
}

.booking-item:nth-child(3) {
    animation-delay: 0.3s;
}

.booking-item:nth-child(4) {
    animation-delay: 0.4s;
}

.booking-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bookings-burger-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .burger-lines {
        width: 16px;
        height: 12px;
    }

    .booking-item {
        padding: 3px;
    }

    .booking-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .bookings-list.active {
        max-height: 200px;
    }
}


/* ========================================================
   📋 BOOKING RULES - TEXT WRAP FIX
   ======================================================== */

/* Кастомный алерт */
.cyber-alert {
  background: rgba(0, 255, 153, 0.1);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.cyber-alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.1), transparent);
  animation: alert-shimmer 3s infinite;
}

.alert-content {
  font-size: 0.9rem;
}

/* Секция правил */
.booking-rules-section {
  border-top: 1px solid #333;
  padding-top: 1rem;
}

/* Кнопка переключения */
.cyber-toggle-btn {
  width: 100%;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.cyber-toggle-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 153, 0.05);
  color: var(--primary);
  transform: translateY(-1px);
}

.cyber-toggle-btn[aria-expanded="true"] {
  border-color: var(--primary);
  background: rgba(0, 255, 153, 0.1);
  color: var(--primary);
}

/* Иконка переключения */
.toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 153, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.toggle-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.cyber-toggle-btn[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

.cyber-toggle-btn[aria-expanded="true"] .toggle-icon {
  background: rgba(0, 255, 153, 0.2);
  box-shadow: 0 0 8px rgba(0, 255, 153, 0.3);
}

/* Текст кнопки */
.toggle-text {
  color: #00ff99;
  flex: 1;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Эффект свечения */
.toggle-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.1), transparent);
  transition: left 0.5s ease;
}

.cyber-toggle-btn:hover .toggle-glow {
  left: 100%;
}

/* Контент правил */
.rules-content {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 1rem;
  margin-top: -1px;
  animation: rules-slide-down 0.3s ease;
}

.rules-header {
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Список правил */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rule-item {
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(30, 30, 30, 0.5);
}

.rule-item:hover {
  background: rgba(0, 255, 153, 0.05);
  transform: translateX(3px);
}

.rule-item.highlight {
  background: rgba(0, 255, 153, 0.1);
  border-left: 3px solid var(--primary);
}

/* ГЛАВНОЕ ИСПРАВЛЕНИЕ: делаем span блочным элементом */
.rule-text {
  display: block; /* Это ключевое изменение! */
  font-size: 0.85rem;
  line-height: 1.4;
  color: #d0d0d0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal; /* Разрешаем перенос строк */
}

.rule-item.highlight .rule-text {
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================================
   🎬 ANIMATIONS
   ======================================================== */

@keyframes alert-shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes rules-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация появления элементов списка */
.rule-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: rule-item-appear 0.3s ease forwards;
}

.rule-item:nth-child(1) {
  animation-delay: 0.1s;
}
.rule-item:nth-child(2) {
  animation-delay: 0.2s;
}
.rule-item:nth-child(3) {
  animation-delay: 0.3s;
}
.rule-item:nth-child(4) {
  animation-delay: 0.4s;
}
.rule-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes rule-item-appear {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================================
   📱 RESPONSIVE
   ======================================================== */

@media (max-width: 768px) {
  .cyber-alert {
    padding: 0.6rem;
  }

  .alert-content {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .cyber-toggle-btn {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }

  .toggle-text {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .toggle-icon {
    width: 20px;
    height: 20px;
  }

  .rules-content {
    padding: 0.75rem;
  }

  .rule-item {
    padding: 0.4rem;
  }

  .rule-text {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .rules-header h6 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .cyber-alert {
    padding: 0.5rem;
  }

  .alert-content {
    font-size: 0.8rem;
  }

  .cyber-toggle-btn {
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
  }

  .toggle-text {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .toggle-icon {
    width: 18px;
    height: 18px;
  }

  .rules-content {
    padding: 0.6rem;
  }

  .rule-item {
    padding: 0.3rem;
  }

  .rule-text {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .rules-header h6 {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
}

/* ========================================================
   🔧 BOOTSTRAP COLLAPSE OVERRIDE
   ======================================================== */

.collapse {
  transition: height 0.3s ease !important;
}

.collapsing {
  transition: height 0.3s ease !important;
}

