/* 
   Fura Shop Premium Stylesheet
   Theme: Deep Dark Charcoal & Amber/Orange Dashboard Glow
   Includes: Mobile PWA, Desktop Split-Layout Simulator, Admin Dashboard
*/

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-tertiary: #1a1a20;
  --accent: #ff7a00;
  --accent-rgb: 255, 122, 0;
  --accent-hover: #e56d00;
  --accent-glow: rgba(255, 122, 0, 0.2);
  --text-main: #f3f3f7;
  --text-muted: #9094a6;
  --border-color: #242430;
  
  --glass-bg: rgba(18, 18, 22, 0.85);
  --glass-border: rgba(255, 255, 255, 0.04);
  --glass-blur: 16px;
  
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2);
  
  --font-primary: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* =========================================================================
   АДАПТИВНЫЙ ПК-МАКЕТ (DESKTOP SPLIT LAYOUT)
   ========================================================================= */
#desktop-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.phone-simulator-column {
  flex: 0 0 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #181822 0%, #060608 100%);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  z-index: 100;
}

/* 3D Рамка Смартфона */
.smartphone-frame {
  width: 375px;
  height: 760px;
  background: #000;
  border-radius: 44px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 
              inset 0 0 2px 2px rgba(255, 255, 255, 0.15),
              0 0 0 10px #1c1c1e;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.smartphone-screen {
  flex: 1;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
}

.phone-home-button {
  width: 50px;
  height: 4px;
  background: #2c2c2e;
  border-radius: 2px;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

#app-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

/* Правая промо-колонка для ПК */
.desktop-promo-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 80px;
  overflow-y: auto;
  background: radial-gradient(circle at bottom right, var(--accent-glow) 0%, transparent 60%);
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.promo-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
}

.promo-brand {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.promo-brand span {
  color: var(--accent);
}

.promo-content {
  max-width: 650px;
  margin: 40px 0;
}

.promo-content h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 20px;
}

.promo-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.supported-brands-box {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.brand-badge.volvo { border-color: rgba(0, 100, 180, 0.3); }
.brand-badge.man { border-color: rgba(220, 0, 0, 0.3); }
.brand-badge.maz { border-color: rgba(255, 122, 0, 0.3); }

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.f-bullet {
  display: flex;
  gap: 18px;
}

.bullet-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.f-bullet h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.f-bullet p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.qr-install-section {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
}

.qr-code-box {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.qr-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.qr-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.admin-entry-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.admin-entry-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.promo-footer {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.promo-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Мобильный брейкпоинт: убираем симулятор */
@media (max-width: 899px) {
  #desktop-layout { display: contents; }
  .phone-simulator-column { display: contents; }
  .smartphone-frame { display: contents; }
  .smartphone-screen { display: contents; }
  .desktop-promo-column { display: none; }
  
  #app-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    box-shadow: none;
  }
}

/* =========================================================================
   ОБЩИЕ ЭКРАНЫ PWA (SPA)
   ========================================================================= */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 10;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 20;
}

.screen-header {
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.screen-header h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 15px;
  color: var(--text-main);
}

.screen-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.center-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Скроллбары */
.screen-content::-webkit-scrollbar,
.tab-scroll-container::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.catalog-products-scroll::-webkit-scrollbar,
.admin-chat-users-box::-webkit-scrollbar,
.chat-console-messages::-webkit-scrollbar,
.admin-table-wrapper::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.screen-content::-webkit-scrollbar-thumb,
.tab-scroll-container::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.catalog-products-scroll::-webkit-scrollbar-thumb,
.admin-chat-users-box::-webkit-scrollbar-thumb,
.chat-console-messages::-webkit-scrollbar-thumb,
.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

/* Кнопки возврата */
.btn-icon-only {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.btn-icon-only svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-icon-only:hover {
  background: rgba(255, 122, 0, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon-only.danger:hover {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  color: #f44336;
}

/* --- WELCOME SCREEN --- */
.welcome-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 50px 24px;
  text-align: center;
  background: radial-gradient(circle at top, var(--accent-glow) 0%, transparent 60%);
}

.logo-box {
  margin-top: 40px;
  animation: pulse-light 4s infinite alternate;
}

.app-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.3), 0 0 40px rgba(255, 122, 0, 0.1);
  margin-bottom: 20px;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

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

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
  padding: 0 20px;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 40px;
}

.welcome-footer {
  font-size: 0.9rem;
}

/* --- КНОПКИ --- */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  height: 48px; /* Задаем комфортную массивную высоту по умолчанию */
  padding: 0 24px;
  font-size: 0.95rem;
}

.btn-lg {
  height: 54px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff5100 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.2);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: currentColor;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-link span {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.btn-link:hover span {
  color: var(--accent-hover);
}

@keyframes pulse-light {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* --- КАРТОЧКИ GLASSMORPHISM --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.w-100 { width: 100%; }

.status-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.status-icon-box.warning {
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent);
}

.status-icon-box svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.contact-highlight {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  padding: 16px;
  border-radius: 12px;
  margin: 15px 0;
}

.contact-highlight p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.accent-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

/* --- ФОРМЫ И ВВОД --- */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .col {
  flex: 1;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

label .required {
  color: var(--accent);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

/* Фикс видимости текста в выпадающих списках */
select option {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

/* Фикс для iOS/Safari, где фон нативного пикера светлый, а белый текст не виден */
@supports (-webkit-overflow-scrolling: touch) {
  select option {
    color: #121216; /* Черный текст для отличной читаемости на светлом фоне */
  }
}

textarea {
  height: auto;
  padding: 12px 16px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255, 122, 0, 0.02);
}

select:disabled, input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.input-prefix-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-prefix-box input {
  padding-left: 32px;
  width: 100%;
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 10px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider-text:not(:empty)::before { margin-right: .5em; }
.divider-text:not(:empty)::after { margin-left: .5em; }

.form-error-msg {
  background: rgba(244, 67, 54, 0.1);
  color: #ff5252;
  border: 1px solid rgba(244, 67, 54, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-msg-info {
  background: rgba(255, 122, 0, 0.08);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.hidden { display: none !important; }

/* --- ГЛАВНЫЙ ЭКРАН (MAIN) --- */
#screen-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.app-header {
  height: 64px;
  min-height: 64px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.user-brief {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff5100 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(255, 122, 0, 0.3);
}

.user-info-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.user-info-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Навигация bottom-bar */
.app-nav {
  height: 64px;
  min-height: 64px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-item.active { color: var(--accent); }
.nav-item.active svg { filter: drop-shadow(0 0 6px var(--accent-glow)); }

/* Контент вкладок */
.tab-content-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-secondary);
}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
}

.tab-pane.active { display: flex; }

.tab-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

/* --- ЧАТ С БЭНОМ --- */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: radial-gradient(circle at bottom, var(--accent-glow) 0%, transparent 50%);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: bubble-appear 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.msg-bubble p { margin-bottom: 8px; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble ul, .msg-bubble ol { margin-left: 20px; margin-top: 8px; margin-bottom: 8px; }

.msg-bubble.ben {
  align-self: flex-start;
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.msg-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1) 0%, rgba(255, 122, 0, 0.2) 100%);
  color: #fff;
  border: 1px solid var(--accent-glow);
  border-bottom-right-radius: 4px;
}

.msg-bubble.operator {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08) 0%, rgba(0, 136, 204, 0.18) 100%);
  color: #fff;
  border: 1px solid rgba(0, 136, 204, 0.25);
  border-bottom-left-radius: 4px;
}

.chat-img-wrapper {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 200px;
}

.chat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clickable-chat-img {
  cursor: pointer;
  transition: opacity 0.2s;
}

.clickable-chat-img:hover { opacity: 0.85; }

.msg-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

@keyframes bubble-appear {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Зона прикрепления фото перед отправкой */
.chat-preview-container {
  padding: 10px 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-thumbnail-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  overflow: visible;
}

.preview-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.btn-clear-preview {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f44336;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Шаблоны подсказок чата */
.chat-suggestions-wrapper {
  padding: 8px 16px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.chat-suggestions-wrapper::-webkit-scrollbar { display: none; }
.chat-suggestions { display: inline-flex; gap: 8px; }

.suggestion-chip {
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-chip:active { background: var(--accent); border-color: var(--accent); color: white; }

/* Зона ввода чата */
.chat-input-bar {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.btn-chat-attach {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-chat-attach svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-chat-attach:active, .btn-chat-attach.active {
  border-color: var(--accent);
  color: var(--accent);
}

#chat-input {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 0 18px;
  color: var(--text-main);
  font-size: 0.92rem;
}
#chat-input:focus { border-color: var(--accent); }

.btn-chat-send-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: var(--transition);
}
.btn-chat-send-icon svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.btn-chat-send-icon:active { transform: scale(0.95); background: var(--accent-hover); }

/* --- ГАРАЖ --- */
.garage-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.garage-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.15) 0%, transparent 60%);
  z-index: 1;
}
.garage-card-content { position: relative; z-index: 2; }

.garage-brand-tag {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.garage-card h3 { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.spec-list { display: flex; flex-direction: column; gap: 8px; }
.spec-item { display: flex; justify-content: space-between; font-size: 0.85rem; }
.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 600; color: var(--text-main); }

/* --- КАТАЛОГ ДЕТАЛЕЙ --- */
.catalog-view { display: flex; flex-direction: column; height: 100%; }

.catalog-search-bar {
  padding: 16px 16px 8px 16px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; width: 20px; height: 20px; fill: var(--text-muted); }

#catalog-search-input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  padding: 0 16px 0 44px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.compatibility-toggle-wrapper { display: flex; align-items: center; gap: 10px; }
.switch-label { font-size: 0.82rem; font-weight: 500; color: var(--text-main); }

/* Свитч */
.switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-color); transition: .3s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(18px); }

/* Фильтр категорий */
.categories-filter-wrapper { padding: 10px 16px; border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); overflow-x: auto; white-space: nowrap; }
.categories-filter-wrapper::-webkit-scrollbar { display: none; }
.categories-filter { display: inline-flex; gap: 8px; }

.category-chip {
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.category-chip.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* Сетка товаров */
.catalog-products-scroll { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.products-grid { display: flex; flex-direction: column; gap: 16px; }

/* Карточка товара */
.product-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:active { transform: scale(0.99); }
.product-details { padding: 16px; }

.product-category-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: inline-block;
}

.product-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text-main); line-height: 1.3; }
.product-compat { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.product-compat svg { width: 12px; height: 12px; fill: currentColor; }
.product-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-family: var(--font-title); font-size: 1.15rem; font-weight: 700; color: white; }
.product-actions { display: flex; gap: 8px; }
.btn-ask-ben { background: rgba(255, 122, 0, 0.08); border: 1px solid var(--accent-glow); color: var(--accent); }

/* --- КОНТАКТЫ --- */
.contact-main-card { margin-bottom: 20px; background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(18, 18, 22, 0.4) 100%); }
.contact-main-card h3 { font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.company-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.contact-details-list { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item { display: flex; gap: 16px; }
.contact-detail-item svg { width: 24px; height: 24px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-detail-item h5 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail-item p { font-size: 0.92rem; font-weight: 500; }
.contact-detail-item a { color: var(--text-main); text-decoration: none; transition: var(--transition); }
.contact-detail-item a:hover { color: var(--accent); }

.quick-contacts-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.contact-action-btn { height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; color: white; text-decoration: none; font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.contact-action-btn svg { width: 20px; height: 20px; fill: currentColor; }
.whatsapp-btn { background: #25D366; }
.whatsapp-btn:active { background: #20ba59; }
.telegram-btn { background: #0088cc; }
.telegram-btn:active { background: #0077b3; }
.phone-btn { background: var(--accent); }
.phone-btn:active { background: var(--accent-hover); }

/* --- PWA INSTALL BANNER --- */
.pwa-banner {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--accent);
  box-shadow: 0 10px 40px rgba(255, 122, 0, 0.25);
  border-radius: 16px;
  padding: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slide-up 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.pwa-banner-content { display: flex; gap: 12px; align-items: center; }
.pwa-mini-icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--accent); }
.pwa-text-box h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.pwa-text-box p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
.pwa-banner-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* iOS Инструкция */
.ios-tooltip { background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--border-color); padding: 12px; border-radius: 8px; font-size: 0.78rem; line-height: 1.4; color: var(--text-main); position: relative; }
.ios-share-icon { display: inline-block; width: 14px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7a00'%3E%3Cpath d='M16 5l-1.42 1.42L18.16 10H8v2h10.16l-3.59 3.58L16 17l6-6-6-6zm-4 10h-8V5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2z'/%3E%3C/svg%3E") no-repeat center; background-size: contain; vertical-align: middle; margin: 0 2px; }
.ios-add-icon { display: inline-block; width: 16px; height: 16px; background: var(--border-color); color: white; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-align: center; line-height: 16px; vertical-align: middle; margin: 0 2px; }

@keyframes slide-up {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.ripple { position: relative; overflow: hidden; }

/* =========================================================================
   ПАНЕЛЬ АДМИНИСТРАТОРА (ADMIN PANEL)
   ========================================================================= */
.admin-body {
  background-color: #07070a;
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: text; /* Разрешаем выделение текста в админке */
}

#admin-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Сайдбар админки */
.admin-sidebar {
  width: 260px;
  background-color: #0d0d11;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--accent);
}

.sidebar-brand h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.sidebar-brand p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-menu {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  height: 48px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.sidebar-link.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Основная рабочая зона админки */
.admin-main {
  flex: 1;
  background-color: #0f0f13;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.admin-pane {
  display: none;
  width: 100%;
  height: 100%;
  padding: 30px;
  overflow-y: auto;
}

.admin-pane.active {
  display: flex;
  flex-direction: column;
}

.admin-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-pane-header h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: white;
}

/* Вкладка чатов (Сплит-сетка консоли) */
#admin-tab-chats {
  padding: 0; /* на весь экран без падингов */
}

.admin-chat-grid {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Колонка пользователей (слева) */
.admin-chat-list-col {
  width: 320px;
  border-right: 1px solid var(--border-color);
  background-color: #0c0c10;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-chat-list-col .col-header {
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-refresh {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.btn-refresh svg { width: 18px; height: 18px; fill: currentColor; }
.btn-refresh:hover { color: var(--accent); }

.admin-chat-users-box {
  flex: 1;
  overflow-y: auto;
}

.admin-chat-user-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition);
}

.admin-chat-user-item:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.admin-chat-user-item.active {
  background-color: rgba(255, 122, 0, 0.04);
  border-left: 3px solid var(--accent);
}

.user-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.admin-chat-user-item.active .user-item-avatar {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.user-item-details {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-item-details h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-item-truck {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.user-item-last-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-warning { background-color: rgba(255, 122, 0, 0.15); color: var(--accent); border: 1.5px solid var(--accent-glow); }
.badge-danger { background-color: rgba(244, 67, 54, 0.15); color: #ff5252; border: 1.5px solid rgba(244, 67, 54, 0.2); }

/* Правая консоль чата */
.admin-chat-console-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #0f0f13;
  overflow: hidden;
}

.chat-console-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.chat-console-placeholder svg {
  width: 64px;
  height: 64px;
  fill: var(--border-color);
  margin-bottom: 20px;
}

.chat-console-placeholder p {
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-console-active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-console-header {
  height: 68px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0c0c10;
}

.active-chat-user-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.active-chat-user-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.takeover-switch-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-console-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #0e0e11;
}

.console-msg-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-msg-bubble.user {
  align-self: flex-start;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-top-left-radius: 4px;
}

.console-msg-bubble.operator {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent) 0%, #ff5100 100%);
  color: white;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.console-msg-bubble.ben {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-top-left-radius: 4px;
  opacity: 0.85;
}

.console-msg-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-msg-bubble.operator .console-msg-header {
  color: rgba(255, 255, 255, 0.8);
}

.console-msg-time {
  font-weight: 400;
  text-transform: none;
  font-size: 0.7rem;
  margin-left: 10px;
}

.console-msg-text ul, .console-msg-text ol {
  margin-left: 20px;
  margin-top: 5px;
}

.chat-console-input-bar {
  height: 72px;
  padding: 0 24px;
  border-top: 1px solid var(--border-color);
  background-color: #0c0c10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-console-input-bar input {
  flex: 1;
  height: 46px;
  border-radius: 10px;
}

/* Таблица Водителей */
.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: #0c0c10;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.font-semibold { font-weight: 600; }
.font-mono { font-family: monospace; }
.font-xs { font-size: 0.75rem; }

.table-brand-badge {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.accent-link-table {
  color: var(--text-main);
  text-decoration: none;
}
.accent-link-table:hover {
  color: var(--accent);
  text-decoration: underline;
}

.table-chat-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* Формы настроек в админке */
.max-width-form {
  max-width: 680px;
}

.input-help-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* Модалка картинок в админке */
.admin-image-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade 0.25s ease;
}

.modal-content-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close-modal:hover { color: var(--accent); }

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Оверлей входа в админку */
#admin-login-screen {
  width: 100vw;
  height: 100vh;
  background-color: #07070a;
  background: radial-gradient(circle at center, #181822 0%, #07070a 100%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* Оверлей и выдвижной Drawer для PWA установки */
.pwa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
}

.pwa-sheet {
  width: 100%;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slide-up-sheet 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slide-up-sheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.pwa-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  align-self: center;
  margin-bottom: 5px;
}

.pwa-sheet-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--accent);
  align-self: center;
  margin-bottom: 8px;
}

.pwa-sheet-content {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pwa-sheet-content h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.pwa-sheet-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.pwa-instruction-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
}

.pwa-instruction-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pwa-steps-list {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.83rem;
}

.pwa-steps-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
  color: var(--text-light);
}

.pwa-steps-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pwa-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Стили для Аккордеона в Сайдбаре Админки */
.sidebar-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar-link.sub-toggle .accordion-arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.sidebar-accordion.expanded .accordion-arrow {
  transform: rotate(180deg);
}

.sidebar-accordion-content {
  display: none;
  flex-direction: column;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  margin-left: 24px;
  margin-bottom: 8px;
  gap: 4px;
}

.sidebar-accordion.expanded .sidebar-accordion-content {
  display: flex;
}

.sidebar-link.sub-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  opacity: 0.8;
}

.sidebar-link.sub-link:hover, .sidebar-link.sub-link.active {
  opacity: 1;
  color: var(--accent);
}

/* Модальные окна управления каталогом */
.admin-modal-overlay {
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade 0.25s ease;
}

.admin-modal {
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.admin-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-secondary);
}

.admin-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.btn-close-admin-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.btn-close-admin-modal:hover {
  color: #ff5252;
}

.admin-modal-body {
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}

.admin-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-secondary);
}
