/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.2vw, 16px);
  width: 100%;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(44, 62, 22, 0.16);
  transition: transform var(--transition-fast);
  background: #fff;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06) rotate(4deg);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand-title-main {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--kraft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

.nav-link {
  font-weight: 600;
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link-vk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0077FF !important;
  font-weight: 600;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Адаптивная компактизация шапки на экранах ноутбуков и мониторах среднего разрешения */
@media (min-width: 1141px) and (max-width: 1420px) {
  .brand-subtitle {
    display: none !important;
  }
  .nav-link-vk span {
    display: none !important;
  }
  .header-nav {
    gap: clamp(8px, 1.2vw, 14px);
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .admin-btn-label {
    display: none !important;
  }
  .cart-btn-label {
    display: none !important;
  }
  .admin-switch-btn {
    padding: 7px 10px;
    font-size: 1rem;
  }
  .cart-toggle-btn {
    padding: 7px 11px;
    font-size: 0.95rem;
  }
  .user-name {
    max-width: 85px;
  }
}

@media (min-width: 1141px) and (max-width: 1240px) {
  .city-badge {
    display: none !important;
  }
  .header-nav {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .user-name {
    max-width: 75px;
  }
}

/* User Profile Widget in Header */
.user-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  max-width: 170px;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.user-profile-btn:hover {
  background: #e8f0eb;
  border-color: var(--accent);
}

.user-profile-btn .user-role-badge {
  display: none !important;
}

.user-avatar,
.user-avatar-wrap {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.user-avatar {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.user-avatar-wrap {
  border: 1.5px solid var(--accent);
  background: #f1f5f9;
}

.header-avatar-img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.user-info-brief {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
}

.user-dropdown-arrow {
  font-size: 0.65rem;
  color: var(--text-subtle);
  margin-left: 2px;
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 150;
  display: none;
  animation: slideUp 0.2s ease forwards;
}

.user-dropdown-menu.open {
  display: block;
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.dropdown-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dropdown-header-name {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.dropdown-header-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-main);
  color: var(--primary);
}

.dropdown-item.logout {
  color: var(--berry);
}

.dropdown-item.logout:hover {
  background: var(--berry-light);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

.auth-open-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.auth-open-btn:hover {
  background: #e6eee9;
  border-color: var(--accent);
}

/* Role Badges */
.user-role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-admin {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-user {
  background: #d1fae5;
  color: #065f46;
}

.admin-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: #fff0f0;
  border: 1px solid #fecaca;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b91c1c;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.admin-switch-btn:hover {
  background: #fee2e2;
}

.admin-switch-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cart-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(14, 59, 46, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cart-toggle-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 59, 46, 0.35);
}

.cart-count-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 32px;
}

.hero-card {
  background: linear-gradient(135deg, #243513 0%, #3b531e 50%, #4d6c27 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147, 191, 64, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-preview-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Controls Bar (Filter, Search, Sort) */
.controls-section {
  padding: 24px 0 16px;
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 59, 46, 0.2);
}

.search-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Product Grid */
.catalog-section {
  padding: 16px 0 64px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(74, 104, 40, 0.18), 0 4px 12px rgba(124, 168, 54, 0.12);
  border-color: var(--accent);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #eef3f0;
  overflow: hidden;
  cursor: pointer;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.02em;
}

.card-badge.hit {
  background: var(--berry);
}

.card-quick-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card-glass);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.product-card:hover .card-quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-latin {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-subtle);
}

.card-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.card-title:hover {
  color: var(--accent);
}

.card-taste-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.card-price-block {
  display: flex;
  flex-direction: column;
}

.card-weight {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.card-old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-subtle);
  margin-left: 6px;
  font-weight: 500;
}

.btn-add-cart {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-add-cart:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

/* Out-of-Stock (Товар закончился на складе) State & Styling */
.product-card.out-of-stock {
  background: #f1f3f0 !important;
  border-color: #d8dfd4 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.product-card.out-of-stock:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07) !important;
  border-color: #c5cec1 !important;
}

.product-card.out-of-stock .card-image-wrap {
  background: #e6eae4 !important;
}

.product-card.out-of-stock .card-image {
  filter: grayscale(88%) contrast(88%) brightness(0.96) !important;
  opacity: 0.68 !important;
}

.product-card.out-of-stock .card-title {
  color: #63715b !important;
}

.product-card.out-of-stock .card-price {
  color: #798771 !important;
}

.product-card.out-of-stock .card-taste-tag {
  background: #e8ece6 !important;
  color: #788572 !important;
}

/* Badge on card image */
.card-out-of-stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(45, 55, 72, 0.92);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Out of stock button in card footer */
.btn-out-of-stock {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: #e2e8f0 !important;
  color: #64748b !important;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #cbd5e1 !important;
  cursor: not-allowed !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: auto;
  user-select: none;
}

/* Quick view modal out of stock state */
.modal-stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.modal-add-btn.disabled,
.modal-add-btn:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 59, 46, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.modal-overlay:not(.open) {
  display: none !important;
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-floating);
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-smooth);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e9e5;
  color: var(--primary);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
}

.modal-img-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.modal-latin {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.benefit-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.benefit-item span {
  color: var(--accent);
}

.modal-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.modal-add-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all var(--transition-fast);
}

.modal-add-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Toast Notifications — Premium Glassmorphic */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(35, 49, 24, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255,255,255,0.08) inset;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toastSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 380px;
  border-left: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  animation: toastProgress 3.5s linear forwards;
  border-radius: 0 2px 2px 0;
}

.toast.error {
  border-left-color: var(--berry);
  background: rgba(90, 20, 30, 0.88);
}
.toast.error::before {
  background: var(--berry);
}

.toast.info {
  border-left-color: var(--amber);
  background: rgba(60, 50, 20, 0.88);
}
.toast.info::before {
  background: var(--amber);
}

@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateX(80px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}

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

/* ============================
   Animate on Scroll (AOS)
   ============================ */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-aos="fade-up"] {
  transform: translateY(32px);
}
[data-aos="fade-in"] {
  transform: none;
}
[data-aos="scale-in"] {
  transform: scale(0.92);
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }

/* ============================
   Skeleton Loader for Products
   ============================ */
.product-skeleton {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-skeleton .skel-image {
  aspect-ratio: 1;
  background: linear-gradient(110deg, #eef3f0 30%, #e0e8e2 50%, #eef3f0 70%);
  background-size: 250% 100%;
  animation: shimmerSlide 1.6s ease-in-out infinite;
}

.product-skeleton .skel-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-skeleton .skel-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(110deg, #eef3f0 30%, #e0e8e2 50%, #eef3f0 70%);
  background-size: 250% 100%;
  animation: shimmerSlide 1.6s ease-in-out infinite;
}

.product-skeleton .skel-line.short { width: 55%; }
.product-skeleton .skel-line.medium { width: 80%; }
.product-skeleton .skel-line.price {
  width: 40%;
  height: 22px;
  margin-top: 6px;
}

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

/* ============================
   Tactile Button Press
   ============================ */
.btn-add-cart:active,
.tab-btn:active,
.cart-toggle-btn:active,
.admin-switch-btn:active {
  transform: scale(0.94) !important;
  transition-duration: 80ms;
}

/* Footer */
.site-footer {
  background: #19250f;
  color: #c9d5be;
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7d8f6d;
}

/* Native Authentication Modal Styling */
.auth-modal-content {
  max-width: 480px;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-modal-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.auth-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.auth-modal-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Tabs switcher */
.auth-tabs {
  display: flex;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
  border: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn:hover:not(.active) {
  color: var(--text-main);
}

.auth-panel {
  display: block;
}

.auth-error-box {
  background: var(--berry-light);
  color: var(--berry);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.auth-switch-link {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.auth-switch-link a {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.auth-switch-link a:hover {
  color: var(--accent-hover);
}

.auth-demo-hint {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-main);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-demo-hint code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--primary);
}

/* Password Recovery Styles */
.auth-forgot-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-forgot-link:hover {
  color: var(--accent);
}

.auth-forgot-intro {
  text-align: center;
  margin-bottom: 18px;
}

.auth-forgot-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.auth-forgot-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-forgot-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 360px;
  margin: 0 auto;
}

.auth-code-sent-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #2e7d32;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.auth-code-sent-badge strong {
  color: var(--primary);
  font-size: 0.92rem;
}

.code-input {
  letter-spacing: 6px;
  font-weight: 800;
  font-size: 1.25rem;
  text-align: center;
}

/* Header Auth Open Button */
.auth-open-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-open-btn:hover {
  background: var(--bg-main);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 104, 40, 0.15);
}

.user-role-badge.badge-user {
  background: rgba(74, 104, 40, 0.1);
  color: var(--primary);
  border: 1px solid rgba(74, 104, 40, 0.2);
}

.dropdown-vk-item {
  color: #0077FF !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

/* Reviews VK Styling */
.review-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0077FF;
  flex-shrink: 0;
}

.verified-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(74, 104, 40, 0.1);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(74, 104, 40, 0.2);
  line-height: 1.1;
}

/* Customer Review Gate Banner (When unauthenticated) */
.customer-review-gate-banner {
  background: linear-gradient(135deg, rgba(74, 104, 40, 0.05) 0%, rgba(139, 195, 74, 0.06) 100%);
  border: 1px solid rgba(74, 104, 40, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customer-gate-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.customer-gate-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.customer-gate-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.customer-gate-btn {
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================================
   Customer Account Dashboard (Личный кабинет САВА)
   ========================================================================== */
.account-modal-content {
  max-width: 780px;
  width: 95%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.account-header-card {
  background: linear-gradient(135deg, rgba(74, 104, 40, 0.08) 0%, rgba(139, 195, 74, 0.12) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 28px 20px;
}

.account-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.account-avatar-wrapper {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  max-width: 62px !important;
  max-height: 62px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.account-avatar-img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary);
  display: block !important;
  box-sizing: border-box !important;
}

.account-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(74, 104, 40, 0.25);
}

.account-user-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-name-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-user-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.account-contacts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.account-contact-chip {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.btn-account-logout {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: #c62828;
  border-radius: var(--radius-full);
  padding: 7px 15px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-account-logout:hover {
  background: #fdf2f2;
  border-color: #c62828;
  transform: translateY(-1px);
}

.account-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.account-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.account-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.kpi-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.account-nav-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  padding: 0 24px;
  gap: 6px;
  overflow-x: auto;
}

.account-tab-btn {
  background: transparent;
  border: none;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.account-tab-btn:hover {
  color: var(--primary);
}

.account-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.account-modal-body {
  padding: 24px 28px;
  max-height: calc(85vh - 240px);
  overflow-y: auto;
  background: var(--bg-main);
  flex: 1;
}

/* Order Cards */
.account-order-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.account-order-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(74, 104, 40, 0.35);
}

.account-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.account-order-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.account-order-number {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.account-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-status-badge.status-new {
  background: rgba(33, 150, 243, 0.12);
  color: #1976d2;
  border: 1px solid rgba(33, 150, 243, 0.25);
}

.account-status-badge.status-confirmed {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.account-status-badge.status-assembling {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.account-status-badge.status-delivering {
  background: rgba(156, 39, 176, 0.12);
  color: #7b1fa2;
  border: 1px solid rgba(156, 39, 176, 0.25);
}

.account-status-badge.status-delivered {
  background: rgba(46, 125, 50, 0.15);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.account-status-badge.status-cancelled {
  background: rgba(211, 47, 47, 0.12);
  color: #c62828;
  border: 1px solid rgba(211, 47, 47, 0.25);
}

.account-order-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.account-order-total-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.account-order-total-sum {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-reorder-action {
  background: rgba(74, 104, 40, 0.08);
  border: 1px solid rgba(74, 104, 40, 0.24);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reorder-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-cancel-order-action {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.24);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cancel-order-action:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.account-order-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.account-order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.account-order-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.account-order-item-meta {
  flex: 1;
}

.account-order-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.account-order-item-qty {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.account-order-item-total {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.account-order-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  font-size: 0.82rem;
}

.account-detail-label {
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.account-detail-val {
  color: var(--text-main);
}

.account-order-loyalty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted var(--border-color);
}

.account-order-loyalty-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.account-order-loyalty-tag.tag-awarded {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.28);
}

.account-order-loyalty-tag.tag-pending {
  background: rgba(255, 152, 0, 0.1);
  color: #d84315;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.account-order-loyalty-tag.tag-cancelled {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.25);
}

.account-order-loyalty-tag.tag-refund {
  background: rgba(2, 136, 209, 0.1);
  color: #0277bd;
  border: 1px solid rgba(2, 136, 209, 0.25);
}

.account-order-loyalty-tag.tag-spent {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Profile & Settings Tab */
.account-profile-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-card-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.account-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.account-box-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Reviews Tab */
.account-review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.account-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.account-review-product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.account-review-prod-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.account-review-prod-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.account-review-date {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.account-review-stars {
  color: var(--amber);
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.account-review-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
}

.btn-view-prod-link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition-fast);
}

.btn-view-prod-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Empty States & Loaders */
.account-loading-state,
.account-empty-state,
.account-error-state {
  text-align: center;
  padding: 40px 20px;
}

.account-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(74, 104, 40, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.account-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.account-empty-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.account-empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .hero-preview-img {
    height: 220px;
  }
  .modal-body {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-nav {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .search-sort-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
  }
  .user-name {
    display: none;
  }
}

/* ==========================================================================
   Product Reviews Styles
   ========================================================================== */
.modal-reviews-wrap {
  grid-column: 1 / -1;
  border-top: 2px solid var(--border-color);
  padding-top: 28px;
  margin-top: 12px;
}

.reviews-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.reviews-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-count-badge {
  background: var(--bg-main);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.btn-toggle-review-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle-review-form:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Rating Summary & Breakdown */
.reviews-summary-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  background: var(--bg-main);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  align-items: center;
}

@media (max-width: 600px) {
  .reviews-summary-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.summary-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  padding-right: 18px;
}

@media (max-width: 600px) {
  .summary-score-box {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

.summary-big-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.summary-stars {
  color: var(--amber);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.summary-total-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.breakdown-star-label {
  min-width: 32px;
  color: var(--text-muted);
  font-weight: 600;
}

.breakdown-track {
  flex-grow: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--sprout) 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.breakdown-count {
  min-width: 32px;
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
}

/* Review Form Box */
.review-form-container {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.star-rating-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.star-rating-selector .stars-wrap {
  display: flex;
  gap: 4px;
  font-size: 1.6rem;
  cursor: pointer;
}

.star-rating-selector .star-btn {
  color: #d1d5db;
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.star-rating-selector .star-btn.hovered,
.star-rating-selector .star-btn.active {
  color: var(--amber);
  transform: scale(1.15);
}

.rating-selected-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 8px;
}

/* Reviews List */
.reviews-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.review-item-card:hover {
  box-shadow: var(--shadow-sm);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar,
.review-avatar-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  box-sizing: border-box !important;
}

.review-avatar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.review-author-meta {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.review-card-stars {
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-card-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 6px;
}

.review-pros-cons-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
}

.review-pro-item {
  color: #1b5e20;
}

.review-con-item {
  color: #b71c1c;
}

.btn-review-delete {
  background: transparent;
  border: none;
  color: var(--berry);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-review-delete:hover {
  background: #fdf2f2;
}

.reviews-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.reviews-empty-state .empty-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

/* VK Social Integration */
.nav-link.nav-link-vk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0077ff;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-link.nav-link-vk:hover {
  color: #0055cc;
}

.social-vk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0077ff;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
  margin-top: 10px;
}

.social-vk-btn:hover {
  background: #0066dd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 255, 0.35);
  color: #ffffff !important;
}

.about-vk-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #f0f7ff;
  border: 1px solid #cce3ff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-top: 20px;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.about-vk-badge:hover {
  background: #e5f1ff;
  border-color: #0077ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.15);
}

.about-vk-badge-content {
  display: flex;
  flex-direction: column;
}

.about-vk-badge-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0077ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-vk-badge-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer-vk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0077ff;
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
  transition: all var(--transition-fast);
}

.drawer-vk-btn:hover {
  background: #0066dd;
  box-shadow: 0 6px 16px rgba(0, 119, 255, 0.35);
}

/* ==========================================================================
   Loyalty Program & Cashback («Зеленые баллы» САВА)
   ========================================================================== */
.cart-cashback-pill {
  background: linear-gradient(135deg, rgba(74, 104, 40, 0.12) 0%, rgba(139, 195, 74, 0.18) 100%);
  border: 1px solid rgba(74, 104, 40, 0.25);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.checkout-loyalty-card {
  background: linear-gradient(135deg, rgba(74, 104, 40, 0.05) 0%, rgba(139, 195, 74, 0.08) 100%);
  border: 1px solid rgba(74, 104, 40, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.checkout-loyalty-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-loyalty-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  user-select: none;
}

.loyalty-checkbox-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loyalty-balance-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.checkout-loyalty-expand {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(74, 104, 40, 0.2);
}

.checkout-points-avail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.checkout-points-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkout-points-input-row .form-input {
  max-width: 140px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  text-align: center;
}

.btn-loyalty-max {
  background: #ffffff;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-loyalty-max:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Account Dashboard - Bonus Hero & Tab */
.account-bonus-hero {
  background: linear-gradient(135deg, #3d5821 0%, #5d8332 50%, #8bc34a 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(61, 88, 33, 0.25);
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.bonus-badge-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 6px;
}

.bonus-hero-balance-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bonus-hero-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bonus-hero-currency {
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0.95;
}

.bonus-hero-equiv {
  font-size: 0.88rem;
  margin-top: 8px;
  opacity: 0.92;
  font-weight: 500;
}

.bonus-tier-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-icon {
  font-size: 1.8rem;
}

.tier-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.tier-sub {
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 600;
}

.account-bonus-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.bonus-rule-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.bonus-rule-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.bonus-rule-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.bonus-rule-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.bonus-rule-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Bonus Transactions Table */
.account-bonus-history-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  gap: 12px;
  transition: all var(--transition-fast);
}

.tx-row:hover {
  background: #ffffff;
  border-color: rgba(74, 104, 40, 0.3);
}

.tx-meta-col {
  flex: 1;
  min-width: 0;
}

.tx-desc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.tx-date-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.tx-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tx-badge-welcome {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.tx-badge-review {
  background: rgba(156, 39, 176, 0.12);
  color: #7b1fa2;
  border: 1px solid rgba(156, 39, 176, 0.25);
}

.tx-badge-spent {
  background: rgba(211, 47, 47, 0.12);
  color: #c62828;
  border: 1px solid rgba(211, 47, 47, 0.25);
}

.tx-badge-earned {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.tx-badge-cancelled {
  background: rgba(244, 67, 54, 0.12);
  color: #d32f2f;
  border: 1px solid rgba(244, 67, 54, 0.25);
}

.tx-badge-refund {
  background: rgba(2, 136, 209, 0.12);
  color: #0277bd;
  border: 1px solid rgba(2, 136, 209, 0.25);
}

.tx-amount-col {
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.amount-plus {
  color: #2e7d32;
}

.amount-minus {
  color: #c62828;
}

/* ==========================================================================
   Monthly Loyalty Tiers (Gazprom Neft Model)
   ========================================================================== */
.user-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.user-tier-pill.tier-silver {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  border: 1px solid #cbd5e1;
}

.user-tier-pill.tier-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.user-tier-pill.tier-platinum {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
}

/* Cart & Checkout Tier Pills */
.cart-tier-pill,
.checkout-tier-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}

.cart-tier-pill.pill-silver,
.checkout-tier-pill.pill-silver {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.cart-tier-pill.pill-gold,
.checkout-tier-pill.pill-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.cart-tier-pill.pill-platinum,
.checkout-tier-pill.pill-platinum {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

/* Hero Right Status Badge Variations */
.bonus-tier-badge.tier-silver {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9));
  border-color: #cbd5e1;
  color: #334155;
}

.bonus-tier-badge.tier-gold {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.9));
  border-color: #fbbf24;
  color: #78350f;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.16);
}

.bonus-tier-badge.tier-platinum {
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.95), rgba(221, 214, 254, 0.9));
  border-color: #a78bfa;
  color: #4c1d95;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.16);
}

/* Monthly Tier Tracker Card */
.account-tier-tracker-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

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

.tier-tracker-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sprout);
  margin-bottom: 3px;
}

.tier-tracker-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.tier-status-highlight {
  color: var(--primary);
  font-weight: 800;
}

.tier-header-pill {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tier-header-pill.pill-silver {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tier-header-pill.pill-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.tier-header-pill.pill-platinum {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

/* Progress Widget */
.tier-progress-widget {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.tier-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.tier-progress-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tier-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tier-progress-fill.fill-silver {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.tier-progress-fill.fill-gold {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.tier-progress-fill.fill-platinum {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.tier-progress-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 3 Tiers Comparison Grid */
.tier-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tier-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tier-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(74, 104, 40, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, rgba(74, 104, 40, 0.02) 100%);
}

.tier-card-silver {
  border-color: #cbd5e1;
}

.tier-card-gold {
  border-color: #fcd34d;
}

.tier-card-platinum {
  border-color: #c4b5fd;
}

.tier-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tier-card-icon-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-card-icon {
  font-size: 1.25rem;
}

.tier-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.tier-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tier-card-badge.active-badge {
  background: #2e7d32;
  color: #ffffff;
}

.tier-card-badge.unlocked-badge {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.tier-card-badge.locked-badge {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.tier-card-cashback {
  margin-bottom: 8px;
}

.tier-card-cashback .cashback-num {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}

.tier-card-cashback .cashback-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.tier-card-threshold {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-main);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.tier-card-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-main);
  flex: 1;
}

.tier-card-benefits li {
  display: flex;
  align-items: baseline;
  line-height: 1.35;
}

.tier-card-benefits .ben-check {
  color: #2e7d32;
  font-weight: 800;
  margin-right: 5px;
  flex-shrink: 0;
}

/* Footnote Explanation */
.tier-rules-footnote {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(74, 104, 40, 0.05);
  border: 1px solid rgba(74, 104, 40, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.45;
}

.footnote-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Product Image Uploader & Subfolder Gallery Styles
   ========================================================================== */
.product-image-upload-group {
  margin-bottom: 16px;
}

.product-image-uploader-card {
  display: flex;
  gap: 16px;
  background: var(--bg-main);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  align-items: center;
  transition: all var(--transition-fast);
}

.product-image-uploader-card.drag-active {
  border-color: var(--primary);
  background: rgba(74, 104, 40, 0.08);
}

.product-image-preview-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.product-image-preview-wrap:hover .product-upload-preview-img {
  transform: scale(1.05);
}

.product-preview-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-image-preview-wrap:hover .product-preview-overlay-hint {
  opacity: 1;
}

.product-image-upload-spinner {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

.product-image-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.product-upload-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-upload-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-upload-file:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.upload-file-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.product-existing-image-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.picker-sublabel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-upload-status-msg {
  font-size: 0.78rem;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.product-upload-status-msg.status-success {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.product-upload-status-msg.status-error {
  background: rgba(244, 67, 54, 0.12);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.product-upload-status-msg.status-loading {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

/* ==========================================================================
   VK Posts & Community Page (Новости, Польза микрозелени, Акции)
   ========================================================================== */

.posts-section {
  padding: 40px 0 80px;
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, rgba(238, 245, 233, 0.4) 0%, rgba(255, 255, 255, 1) 320px);
}

.posts-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.posts-bc-sep {
  color: var(--text-muted);
}

.posts-bc-curr {
  color: var(--text-muted);
  font-weight: 500;
}

.posts-hero-header {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 20px);
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.posts-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0077FF 0%, var(--sprout) 50%, var(--primary) 100%);
}

.posts-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 119, 255, 0.08);
  color: #0077FF;
  border: 1px solid rgba(0, 119, 255, 0.2);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.posts-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.posts-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-subtle);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 24px;
}

.posts-inline-vk-link {
  color: #0077FF;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.posts-community-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(246, 248, 244, 0.8);
  border: 1px solid rgba(44, 62, 22, 0.08);
  border-radius: var(--radius-md, 14px);
  padding: 16px 20px;
}

.posts-community-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.posts-group-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background: #fff;
}

.posts-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.posts-group-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.posts-community-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-vk-subscribe {
  background: #0077FF;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
}

.btn-vk-subscribe:hover {
  background: #0066de;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-refresh {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-refresh:hover {
  background: #f4f4f4;
  border-color: #ccc;
}

/* Controls Bar */
.posts-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.posts-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.posts-filter-pill {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.posts-filter-pill:hover {
  border-color: var(--sprout);
  background: rgba(76, 175, 80, 0.04);
}

.posts-filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.posts-filter-pill.active .posts-count {
  opacity: 0.85;
}

.posts-count {
  font-size: 0.8rem;
  opacity: 0.7;
}

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

.posts-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.posts-search-input {
  width: 100%;
  padding: 8px 36px 8px 36px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.posts-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.posts-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px;
}

.posts-search-clear:hover {
  color: var(--text-main);
}

.posts-status-msg {
  text-align: center;
  padding: 12px;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Grid for Cards */
.posts-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* Post Card */
.post-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  border-color: rgba(76, 175, 80, 0.4);
}

.post-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f0f3eb;
  cursor: pointer;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-img {
  transform: scale(1.04);
}

.post-card-media-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.post-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}

.badge-benefits {
  background: rgba(236, 253, 245, 0.95);
  color: #15803d;
  border: 1px solid rgba(187, 247, 208, 0.8);
}

.badge-promotions {
  background: rgba(255, 251, 235, 0.95);
  color: #b45309;
  border: 1px solid rgba(253, 230, 138, 0.8);
}

.badge-news {
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.8);
}

.post-pinned-badge {
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card-date {
  font-weight: 500;
}

.post-vk-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0077FF;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.post-vk-link:hover {
  background: rgba(0, 119, 255, 0.08);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.post-card-title:hover {
  color: var(--primary);
}

.post-card-text {
  font-size: 0.92rem;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-bottom: 14px;
}

.post-card-text p {
  margin-bottom: 8px;
}

.post-card-text p:last-child {
  margin-bottom: 0;
}

.post-hashtag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  background: rgba(46, 125, 50, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  margin: 1px 2px;
  font-size: 0.85rem;
}

.post-read-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  text-align: left;
  display: inline-block;
}

.post-read-more-btn:hover {
  text-decoration: underline;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.post-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}

.post-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-vk {
  background: #fff;
  border: 1px solid #0077FF;
  color: #0077FF;
}

.btn-outline-vk:hover {
  background: #0077FF;
  color: #fff;
}

.btn-primary-sprout {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.btn-primary-sprout:hover {
  background: var(--primary-hover, #256628);
  border-color: var(--primary-hover, #256628);
}

/* Empty State */
.posts-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg, 18px);
}

/* Skeletons */
.post-card-skeleton .skeleton-media {
  height: 220px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.post-card-skeleton .skeleton-body {
  padding: 22px;
}

.post-card-skeleton .skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.post-card-skeleton .skeleton-footer {
  height: 36px;
  margin-top: 16px;
  border-radius: 6px;
  background: #f4f4f4;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .posts-hero-header {
    padding: 24px 20px;
  }
  .posts-hero-title {
    font-size: 1.6rem;
  }
  .posts-community-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .posts-community-actions {
    width: 100%;
    justify-content: space-between;
  }
  .posts-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .posts-search-box {
    width: 100%;
  }
  .posts-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================================================
 * ADMIN PUSH NOTIFICATIONS STYLES
 * ========================================================================= */
.btn-notification-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-notification-toggle:hover {
  background: var(--bg-main);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-notification-toggle.active {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.btn-notification-toggle.denied {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.notif-channel-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
}
.notif-channel-box:hover {
  border-color: rgba(68, 140, 39, 0.35);
}

.notif-channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}
.notif-channel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notif-channel-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.notif-channel-subtitle {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.notif-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.notif-badge-granted {
  background: #dcfce7;
  color: #15803d;
}
.notif-badge-granted .notif-badge-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.notif-badge-denied {
  background: #fee2e2;
  color: #b91c1c;
}
.notif-badge-denied .notif-badge-dot {
  background: #ef4444;
}
.notif-badge-prompt {
  background: #fef3c7;
  color: #b45309;
}
.notif-badge-prompt .notif-badge-dot {
  background: #f59e0b;
}

.tg-setup-guide {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.tg-setup-guide-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.tg-setup-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.6;
}
.tg-setup-steps li {
  margin-bottom: 6px;
}
.tg-setup-steps code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #0f172a;
}
.tg-setup-steps a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
}


