:root {
  --bg: #0f1115;
  --fg: #e9eef1;
  --muted: #9aa4ad;
  --card: #151922;
  --border: #222;
  --accent: #4ade80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--fg);
}

.topbar {
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
}

.sheet-picker {
  display: flex;
  gap: 8px;
  align-items: center;
}

select {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}

.container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
}

.grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* 🎴 Карточка */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: 0.25s ease-in-out;
  box-shadow: 0 0 0 transparent;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: #0b0e13;
}

.title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.qty button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1117;
  color: var(--fg);
  font-size: 20px;
}

.qty span {
  min-width: 24px;
  text-align: center;
}

.cart {
  border-left: 1px solid var(--border);
  padding: 16px;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow: auto;
}

.cart h2 {
  margin-top: 0;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.cart-name {
  font-weight: 600;
}

.cart-qty {
  color: var(--muted);
}

.cart-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.cart-fields input,
.cart-fields textarea {
  background: #0d1117;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.cart-fields textarea {
  min-height: 80px;
  resize: vertical;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  background: var(--accent);
  color: #0a0f12;
}

.empty,
.muted {
  color: var(--muted);
  padding: 12px;
}

button.add {
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0f1115;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

button.add:hover {
  filter: brightness(1.1);
}

h1 {
  text-align: center;
  font-size: 26px;
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #4ade80;
  }
  to {
    text-shadow: 0 0 20px #22d3ee;
  }
}

@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .cart {
    border-left: none;
    border-top: 1px solid var(--border);
    position: relative;
    top: 0;
    height: auto;
  }
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs .tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none !important;       /* жёстко убираем обводку */
  -webkit-tap-highlight-color: transparent; /* на мобильных Chrome/Safari */
  user-select: none;              /* запрет выделения */
}

.tabs .tab:focus-visible {
  outline: 2px solid var(--accent); /* ✅ оставим для клавиатуры */
  outline-offset: 2px;
}


.tabs .tab:hover {
  background: var(--accent);
  color: #0a0f12;
}

.tabs .tab.active {
  background: linear-gradient(270deg, #4ade80, #22d3ee, #4ade80);
  background-size: 400% 400%;
  animation: shine 5s ease infinite;
  color: #0a0f12;
  border-color: transparent;
  transform: scale(1.05);
}


/* 🔍 Поисковая строка */
.search-bar {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 12px 16px 0;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
}

/* ✨ Анимация кнопки Add */
button.add.pulse {
  animation: pulse 0.5s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.5);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 transparent;
  }
}

/* 🚫 Заблокированная кнопка */
button.disabled {
  background: #444 !important;
  color: #aaa !important;
  cursor: not-allowed !important;
}
/* 🚀 Подскок кнопки */
button.add.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.1); }
  50%  { transform: scale(0.95); }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.schedule-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.schedule-bar .tag {
  background: #1f252f;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  flex: 1 1 auto;
  text-align: center;
}
.floating-cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0f1115;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  outline: none !important; /* 💥 убираем рамку */
  -webkit-tap-highlight-color: transparent; /* 💥 убираем синий мигающий фон на мобилках */
  user-select: none; /* 🔒 запрет выделения */
}

.floating-cart-button:focus {
  outline: none !important;
}


.floating-cart-button.bounce {
  animation: bounce 0.4s ease;
}

.floating-cart-button:hover {
  transform: scale(1.05);
}

#cartCount {
  background: #0f1115;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}

/* анимация подскока */
@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.2); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* 💀 Скелетные карточки */
.card.skeleton {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.card.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  animation: shimmer 1.5s infinite;
}

.skeleton-img,
.skeleton-text,
.skeleton-button {
  background: #2a2f38;
  border-radius: 12px;
  animation: glow 2s ease-in-out infinite;
}

.skeleton-img {
  width: 100%;
  height: 180px;
}

.skeleton-text {
  height: 16px;
  margin-top: 12px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  margin-top: 16px;
  height: 36px;
  width: 100%;
}

@keyframes shimmer {
  0%   { left: -150px; }
  100% { left: 100%; }
}

@keyframes glow {
  0%, 100% { background-color: #2a2f38; }
  50%      { background-color: #3c3f49; }
}
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 📋 Строгий VIP стиль расписания */
/* 📋 Стиль для расписания VIP */
.schedule-bar {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  gap: 6px;
  border-radius: 16px;
  margin: 12px 0;
}

/* 🎩 Строгая строка расписания */
.schedule-row {
  display: grid;
  grid-template-columns: 1fr 140px;  /* имя занимает всё, время фиксировано */
  align-items: center;               /* выравнивание по вертикали */
  padding: 14px 0;
  border-bottom: 1px solid #1c1f26;

  animation: fadeInUpVip 1.2s ease both;
  animation-delay: var(--delay, 0s);
  opacity: 0.001;
  transform: translateY(16px);
  animation-fill-mode: forwards;
  will-change: opacity, transform;
}

.schedule-row:last-child {
  border-bottom: none;
}

/* Имя слева */
.schedule-name {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 левый край */
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: 0.3px;
}

/* Время справа */
.schedule-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* 👉 правый край */
  font-family: 'Roboto Mono', monospace;
  color: var(--muted);
  font-size: 14px;
}

/* 🌟 Анимация появления */
@keyframes fadeInUpVip {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



#menuSchedule {
  background: var(--bg); /* ✅ фон как у всего сайта */
  padding: 16px;
  border-radius: 16px;
  margin: 12px 0;
}



@keyframes softGlow {
  0% {
    text-shadow: 0 0 0px transparent;
    color: #e0e0e0;
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 0px transparent;
    color: #e0e0e0;
  }
}

@keyframes loungeGlow {
  0% {
    text-shadow: 0 0 0px transparent;
    color: #e0e0e0;
  }
  50% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.5),
      0 0 8px rgba(74, 222, 128, 0.4),
      0 0 12px rgba(74, 222, 128, 0.3);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 0px transparent;
    color: #e0e0e0;
  }
}

/* 👇 Добавляем glow только к тексту в строке */
#menuSchedule .schedule-row .schedule-name,
#menuSchedule .schedule-row .schedule-time {
  animation: loungeGlow 6s ease-in-out infinite;
}
.schedule-row span,
.schedule-name,
.schedule-time {
  display: block;
  text-align: center;
  margin: 0 auto;
}


/* === Градиентное свечение заголовка === */
@keyframes glow {
  from {
    text-shadow: 0 0 6px #4ade80;
  }
  to {
    text-shadow: 0 0 16px #22d3ee;
  }
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.glow-header {
  font-size: 28px;
  text-align: center;
  background: linear-gradient(90deg, #4ade80, #22d3ee, #4ade80);
  background-size: 300% 300%;
  background-clip: text;             /* ✅ добавлено */
  -webkit-background-clip: text;     /* ✅ для Chrome/Safari */
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: glow 3s ease-in-out infinite alternate, shine 10s linear infinite;
  margin: 0;
  padding: 8px 0;
}

