@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#app {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

/* Liquid Glass эффект */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Страницы */
.page {
  position: absolute;
  inset: 0;
  padding: 60px 20px 100px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
}

#visits.page {
  overflow-y: auto;
}

/* Заголовок */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-left h2 {
  margin: 0;
  font-size: 1.6em;
}

.header-left h3 {
  margin: 0;
  opacity: 0.7;
}

.header-right {
  display: flex;
  align-items: center;
}

.discount-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(45, 45, 45, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  padding: 8px;
  width: 50px;
  height: 50px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 1.8px 3px 0px -2px rgba(255, 255, 255, 0.9),
    inset -2px -2px 0px -2px rgba(255, 255, 255, 0.8),
    inset -3px -8px 1px -6px rgba(255, 255, 255, 0.6),
    inset -0.3px -1px 4px 0px rgba(0, 0, 0, 0.12),
    inset -1.5px 2.5px 0px -2px rgba(0, 0, 0, 0.2),
    inset 0px 3px 4px -2px rgba(0, 0, 0, 0.2),
    inset 2px -6.5px 1px -4px rgba(0, 0, 0, 0.1),
    0px 1px 5px 0px rgba(0, 0, 0, 0.1),
    0px 6px 16px 0px rgba(0, 0, 0, 0.08);
}

.discount-percent {
  font-size: 1.1em;
  font-weight: 700;
  color: #4CAF50;
  line-height: 1;
}

.discount-label {
  font-size: 0.6em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1px;
  text-transform: lowercase;
}

/* Карточки */
.card {
  margin: 20px 0;
  padding: 20px;
  text-align: center;
}

.card.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card .points {
  font-size: 2.4em;
  margin: 0;
  color: #4CAF50;
  font-weight: 700;
}

/* Карточка предупреждения об истечении баллов */
.warning-card {
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 16px;
  background: rgba(255, 152, 0, 0.03);
  padding: 12px 16px;
  margin: 10px 0;
}

.warning-card h4 {
  color: #ff9800;
  margin-bottom: 8px;
  font-size: 0.9em;
  opacity: 0.8;
}

.expiring-points {
  font-size: 1em;
  margin: 6px 0;
  color: #fff;
  opacity: 0.9;
}

.expiring-amount {
  font-weight: 600;
  color: #ff5722;
}

.expiring-date {
  font-size: 0.85em;
  margin: 6px 0 0 0;
  color: #ccc;
  font-weight: 400;
  opacity: 0.8;
}

/* История */
.history h4 {
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.history h4::after {
  content: 'Показать все';
  font-size: 0.75em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.operation {
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.operation.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.operation.glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.operation span {
  font-weight: 600;
}

.operation small {
  opacity: 0.7;
}

.loyalty-rules {
  margin-top: 16px;
}

.loyalty-rules__trigger {
  width: 100%;
  outline: none;
  color: rgba(255, 255, 255, 0.6);
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.history-modal,
.rules-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.history-modal.hidden,
.rules-modal.hidden {
  display: none;
}

.history-modal__content,
.rules-modal__content {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.history-modal__close,
.rules-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.history-modal__close:hover,
.rules-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.history-modal__operations {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-modal__operations .operation {
  margin: 0;
}

.rules-modal__body {
  margin-top: 16px;
  color: #fff;
  font-size: 0.95em;
  line-height: 1.5;
}

.rules-modal__body p {
  margin-bottom: 12px;
}

.rules-modal__loader,
.rules-modal__error {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.rules-modal__error {
  color: #ff8a80;
}

.deal-status {
  font-size: 0.8em;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  display: inline-block;
  font-weight: 500;
}

/* Стили для карточек визитов без подложки */
.visit-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin: 8px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.visit-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visit-category {
  font-weight: 600;
  color: #fff;
  font-size: 1em;
}

.visit-date {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

.visit-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.offers-empty-message {
  padding: 40px 20px;
  text-align: center;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.visit-amount {
  font-weight: 600;
  color: #4CAF50;
  font-size: 1.1em;
}

.visit-status {
  font-size: 0.85em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  font-weight: 500;
  white-space: nowrap;
}

/* Разные цвета для разных статусов */
.visit-status[data-status="Запись"],
.visit-status[data-status="В работе"] {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.visit-status[data-status="Завершена"],
.visit-status[data-status="Выполнено"] {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.visit-status[data-status="Отменена"],
.visit-status[data-status="Отменено"],
.visit-status[data-status="Отменен"] {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
}

/* Стили для деталей сделки */
.deal-details {
  padding: 25px 0px 25px;
  color: #fff;
  max-height: none;
  overflow-y: visible;
  width: 100%;
  margin: 0;
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-header h3 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
}

.back-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.deal-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  min-width: 120px;
  flex-shrink: 0;
}

.info-value {
  color: #fff;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

.loading,
.error {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  font-size: 1.1em;
}

.error {
  color: #F44336;
}

/* Стили для таблицы товаров */
.products-section {
  margin-top: 24px;
}

.products-section h4 {
  margin: 0 0 16px 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #fff;
}

.products-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 60px 70px 70px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 60px 70px 70px;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
  align-items: center;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-row:last-child {
  border-bottom: none;
}

.product-name {
  color: #fff;
  font-weight: 500;
  font-size: 0.9em;
}

.product-quantity {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.85em;
}

.product-price {
  text-align: center;
  color: #4CAF50;
  font-weight: 600;
  font-size: 0.8em;
}

.product-sum {
  text-align: right;
  color: #2196F3;
  font-weight: 600;
  font-size: 0.8em;
}

.table-total {
  display: grid;
  grid-template-columns: 1fr 60px 70px 70px;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.1em;
}

.total-label {
  text-align: left;
  color: #fff;
}

.total-sum {
  text-align: right;
  color: #FF9800;
}

/* Visits Tabs - аналогично навигационной панели */
.visits-tabs {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.visits-tab-list {
  position: relative;
  background: rgba(45, 45, 45, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 1.8px 3px 0px -2px rgba(255, 255, 255, 0.9),
    inset -2px -2px 0px -2px rgba(255, 255, 255, 0.8),
    inset -3px -8px 1px -6px rgba(255, 255, 255, 0.6),
    inset -0.3px -1px 4px 0px rgba(0, 0, 0, 0.12),
    inset -1.5px 2.5px 0px -2px rgba(0, 0, 0, 0.2),
    inset 0px 3px 4px -2px rgba(0, 0, 0, 0.2),
    inset 2px -6.5px 1px -4px rgba(0, 0, 0, 0.1),
    0px 1px 5px 0px rgba(0, 0, 0, 0.1),
    0px 6px 16px 0px rgba(0, 0, 0, 0.08);
}

.visits-tab-item {
  position: relative;
  flex: 1;
  z-index: 2;
  background: rgba(45, 45, 45, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 12px 16px;
  border-radius: 35px;
}

.visits-tab-item.active .visits-tab-text {
  color: rgba(255, 255, 255, 0.9);
}

.visits-tab-text {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visits-tab-list::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  display: block;
  width: var(--visits-bg-width, 100px);
  height: calc(100% - 16px);
  border-radius: 35px;
  background: rgba(240, 240, 240, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 2px 1px 0px -1px rgba(255, 255, 255, 0.9),
    inset -1.5px -1px 0px -1px rgba(255, 255, 255, 0.8),
    inset -2px -6px 1px -5px rgba(255, 255, 255, 0.6),
    inset -1px 2px 3px -1px rgba(0, 0, 0, 0.2),
    inset 0px -4px 1px -2px rgba(0, 0, 0, 0.1),
    0px 3px 6px 0px rgba(0, 0, 0, 0.08);
  transition:
    background-color 400ms cubic-bezier(1, 0.0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0.0, 0.4, 1),
    translate 400ms cubic-bezier(1, 0.0, 0.4, 1),
    width 400ms cubic-bezier(1, 0.0, 0.4, 1);
  transform-origin: left;
  translate: var(--visits-bg-left, 0) 0;
  z-index: -1;
}

.visits-tab-list.animate::after {
  animation: scaleToggle 440ms ease;
}


#visits-content.content {
  padding: 0;
  overflow: visible;
  max-height: none;
}

/* Стиль для сообщения "Нет данных" в визитах */
#visits-content p {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  margin: 8px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  text-align: center;
  min-height: 60px;
}

/* Стили для карточек акций */
.offer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.offer-card {
  cursor: pointer;
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.offer-title {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  flex: 1;
  margin-right: 12px;
}

.offer-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
}

.offer-type.скидка {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.offer-type.бесплатно {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.offer-type.бонусы {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.offer-type.акция {
  background: rgba(156, 39, 176, 0.2);
  color: #9C27B0;
}

.offer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  line-height: 1.4;
}

.offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.offer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-source {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.offer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.offer-more {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.offer-more:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Модальное окно для подробностей акции */
.offer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.offer-modal.show {
  opacity: 1;
  visibility: visible;
}

.offer-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.offer-modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.offer-modal.show .offer-modal-content {
  transform: scale(1) translateY(0);
}

.offer-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-modal-title {
  margin: 0;
  font-size: 1.3em;
  font-weight: 600;
  color: #fff;
  flex: 1;
  margin-right: 16px;
}

.offer-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.offer-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.offer-modal-body {
  padding: 20px 24px 24px;
}

.offer-modal-type {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.offer-modal-description {
  margin-bottom: 20px;
}

.offer-modal-description h3 {
  margin: 0 0 8px 0;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.offer-modal-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.offer-modal-details {
  margin-bottom: 24px;
}

.offer-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offer-detail-item:last-child {
  border-bottom: none;
}

.offer-detail-item strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.offer-detail-item span {
  color: rgba(255, 255, 255, 0.7);
}

.offer-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.offer-btn-primary,
.offer-btn-secondary {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9em;
}

.offer-btn-primary {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.offer-btn-primary:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
}

.offer-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Индикатор загрузки для акций */
.offer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.offer-loading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

/* Стили для правил акции */
.offer-modal-rules {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-modal-rules h3 {
  margin: 0 0 12px 0;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.offer-rules-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
}

.offer-rules-content::-webkit-scrollbar {
  width: 6px;
}

.offer-rules-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.offer-rules-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.offer-rules-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.offer-validity {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
}

.offer-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.offer-status.active {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.offer-status.inactive {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
}

/* Нижнее меню - Liquid Glass Effect */
.glass-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 320px;
  z-index: 1000;
  background: rgba(45, 45, 45, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 1.8px 3px 0px -2px rgba(255, 255, 255, 0.9),
    inset -2px -2px 0px -2px rgba(255, 255, 255, 0.8),
    inset -3px -8px 1px -6px rgba(255, 255, 255, 0.6),
    inset -0.3px -1px 4px 0px rgba(0, 0, 0, 0.12),
    inset -1.5px 2.5px 0px -2px rgba(0, 0, 0, 0.2),
    inset 0px 3px 4px -2px rgba(0, 0, 0, 0.2),
    inset 2px -6.5px 1px -4px rgba(0, 0, 0, 0.1),
    0px 1px 5px 0px rgba(0, 0, 0, 0.1),
    0px 6px 16px 0px rgba(0, 0, 0, 0.08);
}

/* Черный градиент под навигационным меню */
.nav-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%);
  z-index: 999;
  pointer-events: none;
}

/* Градиент затемнения сверху */
.top-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%);
  z-index: 999;
  pointer-events: none;
}

.nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px;
  position: relative;
}

.nav-item {
  position: relative;
  flex: 1;
  z-index: 2;
}

.nav-link {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 14px 18px;
  border-radius: 35px;
  background: rgba(45, 45, 45, 0.05);
}


.nav-item.active .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.nav-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(30%) sepia(15%) saturate(500%) hue-rotate(200deg) brightness(70%) contrast(120%);
}


.nav-list::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  display: block;
  width: var(--nav-bg-width, 80px);
  height: calc(100% - 20px);
  border-radius: 35px;
  background: rgba(240, 240, 240, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 2px 1px 0px -1px rgba(255, 255, 255, 0.9),
    inset -1.5px -1px 0px -1px rgba(255, 255, 255, 0.8),
    inset -2px -6px 1px -5px rgba(255, 255, 255, 0.6),
    inset -1px 2px 3px -1px rgba(0, 0, 0, 0.2),
    inset 0px -4px 1px -2px rgba(0, 0, 0, 0.1),
    0px 3px 6px 0px rgba(0, 0, 0, 0.08);
  transition:
    background-color 400ms cubic-bezier(1, 0.0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0.0, 0.4, 1),
    translate 400ms cubic-bezier(1, 0.0, 0.4, 1),
    width 400ms cubic-bezier(1, 0.0, 0.4, 1);
  transform-origin: left;
  translate: var(--nav-bg-left, 0) 0;
  z-index: -1;
}

/* Анимация для выделения */
.nav-list.animate::after {
  animation: scaleToggle 440ms ease;
}

/* Анимации как в примере */
@keyframes scaleToggle {
  0% {
    scale: 1 1;
  }

  50% {
    scale: 1.1 1;
  }

  100% {
    scale: 1 1;
  }
}

@keyframes scaleToggle2 {
  0% {
    scale: 1 1;
  }

  50% {
    scale: 1.2 1;
  }

  100% {
    scale: 1 1;
  }
}

@keyframes scaleToggle3 {
  0% {
    scale: 1 1;
  }

  50% {
    scale: 1.1 1;
  }

  100% {
    scale: 1 1;
  }
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 25%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 8px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.skeleton-line {
  height: 16px;
  margin: 8px 0;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-line.long {
  width: 100%;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
}

.skeleton-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.skeleton-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-badge {
  width: 60px;
  height: 24px;
  border-radius: 12px;
}

/* Loading states */
.loading-skeleton {
  opacity: 0.7;
  pointer-events: none;
}

.loading-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  margin: 20px 0;
}

/*     */
.offer-image-container {
  width: calc(100% + 40px);
  margin: -20px -20px 16px -20px;
  height: 180px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-image {
  transform: scale(1.05);
}