/*
================================================================================
 ПРОГРАММНЫЙ КОМПЛЕКС: ЭКОСИСТЕМА САС (СИСТЕМА АВТОМАТИЗАЦИИ СЕРВИСОВ И ЧИСТОТЫ)
 АВТОР И ИСКЛЮЧИТЕЛЬНЫЙ ПРАВООБЛАДАТЕЛЬ (ФИЗИЧЕСКОЕ ЛИЦО):
 Саттаров Станислав Азамович (дата рождения: 26.10.1974 г.)
 
 Все исключительные авторские, имущественные и интеллектуальные права на программный
 код, архитектуру, интерфейсные решения, алгоритмы и базы данных принадлежат
 непосредственно Автору — Саттарову Станиславу Азамовичу.
 
 Программный комплекс создан Автором для предоставления в пользование компании
 ООО «САС», а также иным уполномоченным юридическим лицам и партнерам на основании
 лицензионных соглашений об использовании программного обеспечения.
 Все права защищены в соответствии с законодательством РФ и международным правом.
================================================================================
*/

/* Глобальные настройки и сброс */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #0b0f19;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Полноэкранный адаптивный контейнер приложения без симуляторов */
.device-container {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-frame {
  width: 100%;
  height: 100%;
  flex: 1;
  background-color: #0b0f19;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Статус-бар отключен (настоящее нативное приложение) */
.status-bar {
  display: none !important;
}

.status-time {
  letter-spacing: 0.5px;
}

.status-icons span {
  margin-left: 6px;
}

/* Навигационная панель */
.app-header {
  height: 56px;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  flex-shrink: 0;
}

.app-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.main-header {
  height: 80px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #1e293b, #111827);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 22px;
}

.logo-container h1 {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(to right, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.btn-back {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #38bdf8 !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3), inset 0 0 8px rgba(56, 189, 248, 0.1) !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  font-size: 0 !important;
  margin-right: 8px !important;
  position: relative !important;
}

.btn-back::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-left: 2px solid #38bdf8 !important;
  border-bottom: 2px solid #38bdf8 !important;
  transform: rotate(45deg) !important;
  margin-left: 3px !important;
  display: block !important;
}

.btn-back:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(56, 189, 248, 0.2) !important;
}

.btn-back:hover::before {
  border-color: #60a5fa !important;
}

.btn-back:active {
  transform: scale(0.92) !important;
}

.btn-logout {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Экраны */
.screen {
  display: none !important;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.screen.active {
  display: flex !important;
}

.screen-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: #0b0f19;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.screen-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Главное меню секторов */
.main-menu-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 12px 12px 30px 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.sector-card {
  width: 100% !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  box-sizing: border-box;
}

.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.pro-sector {
  background: linear-gradient(135deg, #0e7490, #1e293b);
}

.pro-sector .sector-badge {
  margin-top: 8px;
}

.pro-sector .sector-card-body {
  padding: 8px 16px 10px 16px;
}

.pro-sector .sector-info h3 {
  margin-bottom: 3px;
}


.sub-sector {
  background: linear-gradient(135deg, #5b21b6, #2e1065);
}

.b2b-sector {
  background: linear-gradient(135deg, #0d5c48, #05261d);
}

.b2b-sector .sector-badge {
  margin-top: 8px;
}

.b2b-sector .sector-card-body {
  padding: 8px 16px 10px 16px;
}

.b2b-sector .sector-info h3 {
  margin-bottom: 3px;
}

.free-sector {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a, #172554);
}

.sector-badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 14px;
  margin-left: 16px;
  letter-spacing: 0.5px;
}

.badge-pro {
  background-color: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.45);
}

.badge-sub {
  background-color: rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.5);
}

.badge-b2b {
  background-color: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
}

.badge-free {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sector-card-body {
  display: flex;
  padding: 12px 16px 16px 16px;
  align-items: center;
  justify-content: space-between;
}

.sector-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.sub-sector .sector-info h3 {
  font-family: 'Oranienbaum', serif !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-shadow: 0px 0px 8px rgba(196, 181, 253, 0.8), 1px 1px 0px rgba(0,0,0,0.5) !important;
  letter-spacing: 0.5px !important;
}

.sector-info p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  padding-right: 12px;
}

.sector-icon {
  font-size: 32px;
  opacity: 0.25;
}

.free-sector .sector-icon,
.b2b-sector .sector-icon,
.sub-sector .sector-icon {
  opacity: 1 !important;
}

.pro-sector .sector-icon {
  opacity: 1 !important;
  filter: drop-shadow(0px 0px 6px rgba(6, 182, 212, 0.8)) drop-shadow(0px 2px 4px rgba(0,0,0,0.6));
}

.sector-status {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 6px 16px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Вспомогательная под-навигация (вкладки) */
.sub-nav {
  display: flex;
  background-color: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.scroll-x {
  overflow-x: auto;
  white-space: nowrap;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.sub-nav-item {
  flex: 0 0 auto;
  min-width: 80px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.sub-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.sub-nav-item.active {
  color: #22d3ee;
  border-bottom-color: #22d3ee;
  background: rgba(34, 211, 238, 0.06);
}

#screen-sub-workspace .sub-nav-item.active {
  color: #c084fc;
  border-bottom-color: #c084fc;
  background: rgba(192, 132, 252, 0.06);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Формы и поля ввода */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input, .form-group select {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  border-color: #06b6d4;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

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

.flex-1 {
  flex: 1;
}

/* Кнопки */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #06b6d4;
  color: #0f172a;
}

.btn-primary:hover {
  background-color: #22d3ee;
}

.btn-success {
  background-color: #10b981;
  color: #0f172a;
}

.btn-success:hover {
  background-color: #34d399;
}

/* Карточки */
.camera-card, .simulator-card, .result-card {
  background-color: #1e293b;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.camera-card h3, .simulator-card h4, .result-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.camera-card p, .simulator-card p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  line-height: 1.4;
}

.simulator-buttons {
  display: flex;
  gap: 8px;
  justify-content: space-around;
}

.btn-sim {
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #22d3ee;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.detected-material {
  font-size: 16px;
  font-weight: 700;
}

.text-teal { color: #22d3ee; }
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }
.text-orange { color: #f97316; }
.text-purple { color: #c084fc; }

.card-warning {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.card-warning h5 {
  color: #f87171;
}

.card-warning p {
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.4;
  margin-top: 6px;
}

/* pH Слайдер */
.ph-slider-container {
  margin: 16px 0;
}

.ph-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  align-items: center;
}

.ph-desc-box {
  margin-top: 12px;
  background-color: #0b0f19;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
}

/* CRM / АТС Списки */
.crm-lead-item, .ats-call-item, .doc-item {
  background-color: #111827;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.crm-lead-info, .ats-call-info, .doc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crm-lead-name, .ats-phone, .doc-title {
  font-weight: 700;
  color: #fff;
}

.crm-lead-sub, .ats-sub, .doc-sub {
  color: #64748b;
  font-size: 10px;
}

.crm-status {
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-new { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-work { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-done { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }

.btn-play-call, .btn-share-doc {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Финансовая статистика */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 15px;
  font-weight: 800;
}

/* Форум и Чат */
.forum-post, .secret-card-item {
  background-color: #1e293b;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.post-author {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.post-category {
  font-size: 9px;
  font-weight: 800;
  background-color: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  padding: 2px 6px;
  border-radius: 6px;
}

.post-content {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 10px;
  color: #64748b;
}

.btn-like {
  background: none;
  border: none;
  color: #f43f5e;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Активация */
.activation-content {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  align-items: stretch;
}

.activation-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.activation-large-icon {
  font-size: 32px;
}

.activation-desc {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 24px;
}

.message-banner {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.banner-success {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.banner-error {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.api-config-section {
  background-color: #111827;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-config-section input {
  background: none;
  border: none;
  color: #fff;
  font-size: 10px;
  flex: 1;
  outline: none;
}

/* Всплывающие панели (Bottom Sheets) */
.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  background-color: #1e293b;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-sheet.open {
  bottom: 0;
}

.sheet-content {
  padding: 20px;
  max-height: 550px;
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sheet-header h3 {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.btn-close-sheet {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}

.estimate-preview-box {
  background-color: #0b0f19;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.shampoo-box {
  background-color: #0b0f19;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #e2e8f0;
  border-left: 4px solid #c084fc;
}

.btn-large-shop {
  width: 100%;
  padding: 16px;
  background-color: #8c624d !important;
  background-image: 
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%233b1a0d' stroke-width='3.2' stroke-linecap='round'><path d='M4 18 C4 10 10 4 18 4 C22 4 22 10 18 10 C15 10 14 8 16 6 C17 5 19 6 18 8'/></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%233b1a0d' stroke-width='3.2' stroke-linecap='round'><g transform='rotate(90 12 12)'><path d='M4 18 C4 10 10 4 18 4 C22 4 22 10 18 10 C15 10 14 8 16 6 C17 5 19 6 18 8'/></g></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%233b1a0d' stroke-width='3.2' stroke-linecap='round'><g transform='rotate(180 12 12)'><path d='M4 18 C4 10 10 4 18 4 C22 4 22 10 18 10 C15 10 14 8 16 6 C17 5 19 6 18 8'/></g></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%233b1a0d' stroke-width='3.2' stroke-linecap='round'><g transform='rotate(270 12 12)'><path d='M4 18 C4 10 10 4 18 4 C22 4 22 10 18 10 C15 10 14 8 16 6 C17 5 19 6 18 8'/></g></svg>");
  background-position: 
    top 6px left 6px, 
    top 6px right 6px, 
    bottom 6px right 6px, 
    bottom 6px left 6px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  border: 2px solid #3b1a0d !important;
  border-radius: 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 
    inset 0 0 0 2px #8c624d, 
    inset 0 0 0 4px #3b1a0d,
    inset 0 0 0 6px #8c624d,
    0 4px 15px rgba(140, 98, 77, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  margin-top: 16px;
  flex-shrink: 0;
}

.btn-large-shop:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 0 0 2px #9d705a, 
    inset 0 0 0 4px #3b1a0d, 
    inset 0 0 0 6px #9d705a,
    0 8px 25px rgba(140, 98, 77, 0.35);
  background-color: #9d705a !important;
}

.btn-large-shop:active {
  transform: translateY(1px);
}

.shop-icon {
  font-size: 18px;
}

@keyframes pulse-live {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Стили кнопки SOS в шапке */
.sos-btn-header {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: sos-pulse-header 2s infinite ease-in-out;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@keyframes sos-pulse-header {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
}

/* Модальное окно экстренной помощи SOS */
.sos-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sos-modal-content {
  background: #111827;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 20px;
  width: 85%;
  max-width: 320px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

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

.sos-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.sos-close:hover {
  color: #fff;
}

.sos-action-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s, transform 0.1s;
}

.sos-action-btn:hover {
  background: #f87171;
}

.sos-action-btn:active {
  transform: scale(0.98);
}

.sos-action-btn.btn-secondary {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.sos-action-btn.btn-secondary:hover {
  background: #334155;
  color: #fff;
}

/* Личный кабинет пользователя */
.profile-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0f19;
  z-index: 15000;
  display: block;
}

.profile-modal-content {
  background: #0b0f19;
  border: none;
  border-radius: 0;
  padding: 20px 16px;
  width: 100%;
  height: 100%;
  max-width: none;
  color: #fff;
  box-shadow: none;
}

.profile-avatar-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin: 0 auto 12px auto;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.profile-role-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.main-menu-footer {
  padding: 12px 16px 16px 16px;
  background-color: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  z-index: 10;
}

.main-menu-footer .btn-large-shop {
  margin-top: 0;
  margin-bottom: 5px;
}

/* Стили для чата Наставников (Полноценное полноэкранное окно) */
#sheet-web-ai-chat {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  border-top: none !important;
  background-color: #0b0f19 !important;
  z-index: 14000 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#sheet-web-ai-chat.open {
  transform: translateY(0) !important;
}

#sheet-web-ai-chat .sheet-content {
  height: 100% !important;
  max-height: 100% !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#web-ai-chat-messages {
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  padding: 10px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#web-ai-chat-messages div,
#web-ai-chat-messages p,
#web-ai-chat-messages span {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

/* Поле ввода чата с авто-переносом строк и растяжением по высоте */
#web-ai-chat-input {
  flex-grow: 1 !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  outline: none !important;
  resize: none !important;
  min-height: 36px !important;
  max-height: 130px !important;
  overflow-y: auto !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: pre-wrap !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, background-color 0.2s !important;
}

#web-ai-chat-input:focus {
  border-color: rgba(56, 189, 248, 0.6) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

/* Анимации эквалайзера и пульсирующей подсветки микрофона */
@keyframes vwave {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1.4); opacity: 1; }
}

@keyframes voice-pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
}

.voice-recording-active {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  animation: voice-pulse-glow 1.1s infinite !important;
}

/* ==========================================================================
   ПЛАНШЕТНАЯ АДАПТИВНОСТЬ: РАСТЯЖЕНИЕ БЛОКОВ НА ВЕСЬ ЭКРАН (от 600px)
   ========================================================================== */
@media (min-width: 600px) {
  /* Полноэкранный растянутый главный экран меню */
  #screen-main-menu.active {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .main-menu-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 100% !important;
    height: 100% !important;
    justify-content: space-between !important;
    padding: 16px 22px 24px 22px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  .sector-card {
    flex: 1 1 auto !important;
    min-height: 95px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
  }

  .sector-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  }

  .sector-card-body {
    padding: 14px 24px 16px 24px !important;
  }

  .sector-info h3 {
    font-size: 20px !important;
    margin-bottom: 5px !important;
  }

  .sub-sector .sector-info h3 {
    font-size: 24px !important;
  }

  .sector-info p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    padding-right: 20px !important;
  }

  .sector-icon {
    font-size: 42px !important;
  }

  .sector-badge {
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    margin-left: 24px !important;
    margin-top: 12px !important;
    letter-spacing: 0.6px !important;
  }

  .sector-status {
    padding: 8px 24px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .btn-large-shop {
    flex: 0 0 auto !important;
    padding: 18px 24px !important;
    border-radius: 18px !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
  }

  .shop-text {
    font-size: 28px !important;
    letter-spacing: 4px !important;
  }

  /* Экран приветствия на планшете */
  .welcome-screen-overlay {
    padding: 70px 40px 90px 40px !important;
  }

  .welcome-logo {
    font-size: 48px !important;
    letter-spacing: 6px !important;
    margin-bottom: 32px !important;
  }

  .welcome-title {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  .welcome-subtitle {
    font-size: 16px !important;
    max-width: 500px !important;
    line-height: 1.5 !important;
  }

  .power-button-welcome {
    width: 90px !important;
    height: 90px !important;
  }

  .power-icon-welcome {
    width: 36px !important;
    height: 36px !important;
  }

  .welcome-sos-button {
    padding: 10px 24px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
  }

  /* Внутренние рабочие пространства на планшете */
  .screen-content {
    padding: 20px 24px !important;
  }

  .app-header {
    height: 64px !important;
    padding: 0 20px !important;
  }

  .app-header h2 {
    font-size: 18px !important;
  }

  .sub-nav {
    height: 52px !important;
  }

  .sub-nav-item {
    font-size: 14px !important;
    padding: 14px 20px !important;
  }

  .stats-grid {
    gap: 14px !important;
  }

  .stat-card {
    padding: 14px 18px !important;
    border-radius: 14px !important;
  }

  .stat-title {
    font-size: 12px !important;
  }

  .stat-value {
    font-size: 20px !important;
  }

  .crm-lead-item, .ats-call-item, .doc-item {
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .crm-lead-name, .ats-phone, .doc-title {
    font-size: 15px !important;
  }

  .forum-post, .secret-card-item {
    padding: 16px 20px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  .post-author {
    font-size: 14px !important;
  }

  .post-content {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .accordion-header {
    padding: 14px 18px !important;
    font-size: 14px !important;
  }

  .accordion-body {
    padding: 14px 18px !important;
    font-size: 13px !important;
  }

  .pro-pill {
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 18px !important;
  }

  .pro-search-bar {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  .camera-card, .simulator-card, .result-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .form-group input, .form-group select {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .btn {
    padding: 14px 22px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .sos-modal-content {
    max-width: 440px !important;
    width: 90% !important;
    padding: 26px !important;
    border-radius: 24px !important;
  }

  .sos-action-btn {
    padding: 14px !important;
    font-size: 15px !important;
  }

  #shop-sheet .sheet-content {
    padding: 24px 32px !important;
  }

  /* Окно чата Наставников */
  #sheet-web-ai-chat .sheet-content {
    padding: 20px 24px !important;
  }
  
  #sheet-web-ai-chat .sheet-header {
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
  }
  
  #adam-chat-header {
    font-size: 17px !important;
  }
  
  #btn-burger-history-chat {
    width: 40px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
  
  #btn-new-chat {
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
  }
  
  #tts-mute-btn-chat {
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
  }
  
  #tts-mute-icon-chat {
    font-size: 16px !important;
  }
  
  #sheet-web-ai-chat .btn-close-sheet {
    font-size: 22px !important;
    width: 36px !important;
    height: 36px !important;
  }
  
  #web-ai-chat-messages {
    padding: 14px 4px !important;
    gap: 14px !important;
  }
  
  #web-ai-chat-messages > div {
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    max-width: 85% !important;
  }
  
  #web-ai-chat-messages p,
  #web-ai-chat-messages span,
  #web-ai-chat-messages li,
  #web-ai-chat-messages strong {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  
  #web-ai-chat-messages div[onclick] {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
  
  #web-ai-chat-messages div[onclick] span {
    font-size: 16px !important;
  }
  
  #web-ai-chat-input {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 10px 14px !important;
    min-height: 46px !important;
    max-height: 170px !important;
    border-radius: 12px !important;
  }
  
  #btn-web-ai-voice {
    width: 46px !important;
    height: 46px !important;
    font-size: 20px !important;
    border-radius: 10px !important;
  }
  
  #sheet-web-ai-chat button[onclick="sendWebAiMessage()"],
  #sheet-web-ai-chat .btn-primary {
    font-size: 15px !important;
    height: 46px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
  }

  /* Выдвижная история диалогов на планшете */
  #sas-chat-sessions-drawer {
    padding: 20px !important;
  }
  #sas-sessions-list-container > div {
    font-size: 15px !important;
    padding: 12px 16px !important;
  }
  #sas-chat-sessions-drawer button {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   ШИРОКИЙ ПЛАНШЕТ / АЛЬБОМНАЯ ОРИЕНТАЦИЯ (от 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .main-menu-content {
    padding: 24px 36px 36px 36px !important;
    gap: 18px !important;
  }

  .sector-card {
    min-height: 110px !important;
  }

  .sector-card-body {
    padding: 18px 30px !important;
  }

  .sector-info h3 {
    font-size: 22px !important;
  }

  .sub-sector .sector-info h3 {
    font-size: 26px !important;
  }

  .sector-info p {
    font-size: 14px !important;
  }

  .sector-icon {
    font-size: 46px !important;
  }

  .btn-large-shop {
    padding: 22px !important;
  }

  .shop-text {
    font-size: 32px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Магазин чистоты как полноценный полноэкранный экран */
#shop-sheet {
  height: 100% !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  border-radius: 0 !important;
  border-top: none !important;
  background-color: #0b0f19 !important;
  z-index: 14000 !important;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#shop-sheet.open {
  transform: translateY(0) !important;
}

#shop-sheet .sheet-content {
  height: 100% !important;
  max-height: none !important;
  padding: 20px 16px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#shop-sheet .sheet-header h3 {
  font-family: 'Oranienbaum', serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  letter-spacing: 0.5px !important;
}

.shop-text {
  font-family: 'Georgia', serif !important;
  font-weight: 900 !important;
  font-size: 26px !important;
  letter-spacing: 3.5px !important;
  color: #ffffff !important;
  text-shadow: 
    -1px -1px 0 #27140b,  
     1px -1px 0 #27140b,
    -1px  1px 0 #27140b,
     1px  1px 0 #27140b,
    -2px  0px 0 #27140b,
     2px  0px 0 #27140b,
     0px -2px 0 #27140b,
     0px  2px 0 #27140b,
     2px  2px 3px rgba(0,0,0,0.6) !important;
  display: block;
  text-align: center;
}

.shop-decor {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.decor-left, .decor-right {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='%233b1a0d'><circle cx='8' cy='8' r='5'/></svg>");
}

.community-title {
  line-height: 1.25 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin: 0 0 6px 0 !important;
}

.title-vintage {
  font-family: 'Oranienbaum', serif !important;
  font-size: 23px !important;
  font-weight: normal !important;
  letter-spacing: 0.5px !important;
  color: #fffde6 !important;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.4) !important;
}

.title-and {
  font-family: 'Oranienbaum', serif !important;
  font-style: italic !important;
  font-size: 18px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.title-modern {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  color: #38bdf8 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
}

.b2b-custom-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.b2b-custom-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(192, 153, 122, 0.4));
}

/* Стили для интерактивной базы знаний PRO-обучения */
.pro-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.pro-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s;
}

.pro-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #22d3ee;
}

.pro-search-bar {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  margin-bottom: 12px;
  outline: none;
}

.pro-search-bar:focus {
  border-color: #06b6d4;
  background: rgba(255, 255, 255, 0.05);
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #cbd5e1;
  user-select: none;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-header::after {
  content: '▼';
  font-size: 9px;
  color: #64748b;
  transition: transform 0.2s;
}

.accordion-item.open .accordion-header::after {
  transform: rotate(180deg);
  color: #22d3ee;
}

.accordion-body {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
}

.pro-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.pro-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #22d3ee;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: top;
}

.pro-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* === Стили для AR Сектора === */

/* Карточка сектора в меню */
.ar-sector {
  background: linear-gradient(135deg, #b45309, #78350f, #451a03) !important;
}

.badge-ar {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

/* Эффект сканирующего луча */
@keyframes ar-scanner-glow {
  0% {
    top: 5%;
    opacity: 0.1;
  }
  50% {
    top: 95%;
    opacity: 0.8;
  }
  100% {
    top: 5%;
    opacity: 0.1;
  }
}

.ar-scanner-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, #fbbf24, transparent);
  box-shadow: 0 0 12px #fbbf24;
  animation: ar-scanner-glow 4s infinite linear;
  pointer-events: none;
}

/* Плавающие в пространстве 3D-метки товаров */
.ar-floating-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
}

.ar-floating-card:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(251, 191, 36, 0.4);
}

.ar-item-model-bubble {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  animation: ar-float-emoji 3s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes ar-float-emoji {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Карточки тарифов/позиций */
.tariff-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tariff-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

/* Стили элементов списка каталога */
.ar-catalog-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.2s, border-color 0.2s;
}

.ar-catalog-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.ar-catalog-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Полковая структура прилавков */
.ar-shelf-row {
  width: 100%;
  margin-bottom: 16px;
}

.ar-shelf-body {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 12px 10px 12px;
  border-bottom: 3px solid rgba(251, 191, 36, 0.4);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 -2px 6px rgba(251, 191, 36, 0.15);
  scrollbar-width: none;
}

.ar-shelf-body::-webkit-scrollbar {
  display: none;
}

.ar-shelf-item {
  flex: 0 0 120px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ar-shelf-item:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  box-shadow: 0 6px 12px rgba(251, 191, 36, 0.25);
}

/* Пульсация для предупреждений о лимитах */
@keyframes warning-pulse {
  0% { opacity: 0.7; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

#ar-limit-warning {
  animation: warning-pulse 0.8s infinite alternate ease-in-out;
}

/* ==========================================================================
   САС — СИСТЕМНЫЙ МОДУЛЬ «ДАЙ ЗНАТЬ» (NOTIFY & TASKS STYLING)
   ========================================================================== */

.notify-task-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.notify-task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.notify-task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.notify-task-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.notify-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-triggered, .status-notified {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  animation: notify-pulse-glow 1.5s infinite ease-in-out;
}

.status-acknowledged, .status-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-paused {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-waiting {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.notify-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
}

.notify-task-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notify-task-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-task-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-task-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Карточки входящих уведомлений в Inbox */
.inbox-alert-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  animation: notify-inbox-slide 0.3s ease-out;
}

@keyframes notify-inbox-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes notify-pulse-glow {
  0% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.6); }
  100% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.2); }
}

.inbox-alert-buttons {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-ack-inbox {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-snooze-inbox {
  flex: 1;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.btn-close-inbox {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.quick-chip {
  transition: all 0.2s ease;
}
.quick-chip:hover {
  background: rgba(251, 191, 36, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.quick-chip:active {
  transform: scale(0.96);
}

.mentor-card-widget {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mentor-card-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border-color: rgba(251, 191, 36, 0.6) !important;
}

.btn-timer-preset {
  transition: all 0.2s ease;
}
.btn-timer-preset:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  border-color: #60a5fa !important;
}
.btn-timer-preset:active {
  transform: scale(0.96);
}

#btn-chat-notify-strip {
  transition: all 0.2s ease;
}
#btn-chat-notify-strip:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.45)) !important;
  border-color: #fbbf24 !important;
  transform: translateY(-1px);
}
#btn-chat-notify-strip:active {
  transform: scale(0.98);
}







/* ==========================================================================
   НЕОНОВЫЕ СТЕКЛЯННЫЕ ГРАНИ И ЦВЕТНЫЕ РАМКИ ОКОН САС (GLASSMORPHISM & NEON)
   ========================================================================== */

/* Эффект матового стекла для карточек и контейнеров */
.neon-glass-card {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 14px;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.neon-glass-card:hover {
  transform: translateY(-2px);
}

/* Цветные тонкие неоновые грани карточек и рамок окон */
.neon-border-cyan {
  border: 1.2px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neon-border-cyan:hover {
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.neon-border-emerald {
  border: 1.2px solid rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(52, 211, 153, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neon-border-emerald:hover {
  border-color: rgba(52, 211, 153, 0.85) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.neon-border-purple {
  border: 1.2px solid rgba(192, 132, 252, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(192, 132, 252, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neon-border-purple:hover {
  border-color: rgba(192, 132, 252, 0.85) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(192, 132, 252, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.neon-border-amber {
  border: 1.2px solid rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(251, 191, 36, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neon-border-amber:hover {
  border-color: rgba(251, 191, 36, 0.85) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.neon-border-rose {
  border: 1.2px solid rgba(251, 113, 133, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(251, 113, 133, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neon-border-rose:hover {
  border-color: rgba(251, 113, 133, 0.85) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 113, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.neon-border-blue {
  border: 1.2px solid rgba(96, 165, 250, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(96, 165, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neon-border-blue:hover {
  border-color: rgba(96, 165, 250, 0.85) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(96, 165, 250, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Неоновые кнопки озвучки Наставника */
.btn-neon-voice {
  font-size: 11px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.2px solid #38bdf8;
  color: #38bdf8;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  transition: all 0.2s ease;
}
.btn-neon-voice:hover {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}
.btn-neon-voice:active {
  transform: scale(0.97);
}

/* Стеклянные модальные окна с неоновой подсветкой */
.profile-modal-overlay {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.profile-modal-content {
  border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25) !important;
  border-radius: 16px !important;
}

/* Подсветка активных табов */
.sub-nav-item.active {
  box-shadow: 0 2px 14px rgba(56, 189, 248, 0.4) !important;
  border-color: #38bdf8 !important;
}


/* ==========================================================================
   РАСТУЩАЯ КАРТОЧКА ПАРТНЕРСТВА И КНОПКИ БЫСТРОГО НАБОРА ТЕЛЕФОНА
   ========================================================================== */

#card-expand-partner {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#card-expand-partner.expanded {
  border-color: rgba(52, 211, 153, 0.9) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(52, 211, 153, 0.35) !important;
}

#card-expand-partner.expanded #grow-partner-form-container {
  max-height: 850px !important;
  opacity: 1 !important;
  margin-top: 12px !important;
}

.btn-quick-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.2px solid #10b981;
  color: #a7f3d0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-quick-call:hover {
  background: #10b981;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}


/* ==========================================================================
   СИСТЕМА 3-Х ФОНОВЫХ ТЕМ ЭКОСИСТЕМЫ САС (ДИЗАЙН-СИСТЕМА САТТАРОВА С.А.)
   1. НЕОН (ОРИГИНАЛ) — Глубокий ночной фон, роскошное цветное стекло:
      изумруд, рубин, янтарь, сапфир с ярким светящимся неоновым текстом.
   2. ГРАФИТ (МАТОВЫЙ) — Спокойный антрацит без лишней пестроты для тех,
      кто не любит сильно цветное.
   3. БЕЖЕВЫЙ (СВЕТЛЫЙ) — Мягкая теплая слоновая кость, ВЫРАЗИТЕЛЬНЫЙ
      КОНТРАСТНЫЙ ТЕМНЫЙ ТЕКСТ, исключающий любое засвечивание букв.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ГЛАВНОЕ МЕНЮ И ОБЛОЖКА (ВСЕГДА ОРИГИНАЛЬНАЯ НЕОНОВАЯ ПАЛИТРА)
      Цветовая палитра центральной обложки и 5 блоков главного меню фиксирована
      и не меняется при переключении фоновых тем внутри рабочих блоков.
   -------------------------------------------------------------------------- */
body {
  background: #090d16 !important;
  color: #f1f5f9 !important;
}

.phone-frame,
#screen-main-menu,
#screen-main-menu .app-header {
  background: #0b0f19 !important;
  color: #f1f5f9 !important;
}

/* Карточка 1: PRO ДОСТУП — ИЗУМРУД / ЯДОВИТО-ЗЕЛЕНЫЙ НЕОН */
#screen-main-menu .pro-sector {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(15, 23, 42, 0.96)) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
#screen-main-menu .pro-sector .sector-info h3 {
  color: #00ff66 !important;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.55), 0 1px 2px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
}
#screen-main-menu .pro-sector .sector-info p {
  color: #e2e8f0 !important;
}

/* Карточка 2: ПОДПИСКА (ФИЗИЧЕСКИЕ ЛИЦА) — РУБИН / АМЕТИСТ */
#screen-main-menu .sub-sector {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.96)) !important;
  border: 1.5px solid rgba(192, 132, 252, 0.6) !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
#screen-main-menu .sub-sector .sector-info h3 {
  color: #f472b6 !important;
  text-shadow: 0 0 14px rgba(244, 114, 182, 0.65), 0 1px 2px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #f472b6 !important;
}
#screen-main-menu .sub-sector .sector-info p {
  color: #e2e8f0 !important;
}

/* Карточка 3: БИЗНЕС (ДЕЛОВОЙ ДВОР) — БЛАГОРОДНЫЙ ЯНТАРЬ / ЗОЛОТО */
#screen-main-menu .b2b-sector {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(15, 23, 42, 0.96)) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
#screen-main-menu .b2b-sector .sector-info h3 {
  color: #fbbf24 !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.65), 0 1px 2px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
}
#screen-main-menu .b2b-sector .sector-info p {
  color: #e2e8f0 !important;
}

/* Карточка 4: БЕСПЛАТНО (СОДРУЖЕСТВО & ЧАТЫ) — САПФИРОВО-СИНИЙ / ЛАЗУРЬ */
#screen-main-menu .free-sector {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96)) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
#screen-main-menu .free-sector .sector-info h3,
#screen-main-menu .free-sector .title-vintage,
#screen-main-menu .free-sector .title-modern {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.65), 0 1px 2px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #38bdf8 !important;
}
#screen-main-menu .free-sector .sector-info p {
  color: #e2e8f0 !important;
}

/* Карточка 5: ТОРГОВЫЕ РЯДЫ В ГЛАВНОМ МЕНЮ */
#screen-main-menu .btn-large-shop {
  background: linear-gradient(135deg, #78350f, #451a03) !important;
  border: 2px solid #b45309 !important;
  box-shadow: 0 4px 20px rgba(180, 83, 9, 0.35) !important;
}
#screen-main-menu .btn-large-shop .shop-text {
  color: #fde68a !important;
  text-shadow: 0 0 10px rgba(253, 230, 138, 0.6) !important;
}

/* Неон внутри рабочих экранов */
body.theme-neon .screen:not(#screen-main-menu),
body:not(.theme-graphite):not(.theme-beige) .screen:not(#screen-main-menu) {
  background: #0b0f19 !important;
  color: #f1f5f9 !important;
}


/* --------------------------------------------------------------------------
   2. ТЕМА «БЕЖЕВЫЙ» (СВЕТЛАЯ) — ТОЛЬКО ВНУТРИ РАБОЧИХ БЛОКОВ
   -------------------------------------------------------------------------- */
body.theme-beige .screen:not(#screen-main-menu):not(#screen-shop),
body.theme-beige .b2b-standalone-wrapper,
body.theme-beige .guardian-standalone-wrapper,
body.theme-beige .camera-app-shell {
  background: #fbf8f3 !important;
  color: #1f2937 !important;
  border-color: #d6c7b2 !important;
}

body.theme-beige .screen:not(#screen-main-menu):not(#screen-shop) .app-header,
body.theme-beige .standalone-topbar {
  background: #f5f0e8 !important;
  border-bottom: 1px solid #d6c7b2 !important;
  color: #1f2937 !important;
}

body.theme-beige .screen:not(#screen-main-menu) .app-header h2,
body.theme-beige .screen:not(#screen-main-menu) .app-header h3 {
  color: #1f2937 !important;
}

body.theme-beige .screen:not(#screen-main-menu) .btn-back {
  color: #075985 !important;
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

/* Внутренние карточки и контейнеры в бежевой теме */
body.theme-beige .screen:not(#screen-main-menu) .b2b-card,
body.theme-beige .screen:not(#screen-main-menu) .guardian-card,
body.theme-beige .screen:not(#screen-main-menu) .result-card,
body.theme-beige .screen:not(#screen-main-menu) .forum-post,
body.theme-beige .guardian-standalone-wrapper .guardian-card,
body.theme-beige .guardian-standalone-wrapper .forum-post,
body.theme-beige .b2b-standalone-wrapper .result-card {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid #d6c7b2 !important;
  box-shadow: 0 2px 10px rgba(120, 100, 80, 0.08) !important;
}

body.theme-beige .screen:not(#screen-main-menu) .guardian-card div,
body.theme-beige .screen:not(#screen-main-menu) .guardian-card p,
body.theme-beige .screen:not(#screen-main-menu) .guardian-card label,
body.theme-beige .screen:not(#screen-main-menu) .forum-post div,
body.theme-beige .guardian-standalone-wrapper .guardian-card div,
body.theme-beige .guardian-standalone-wrapper .guardian-card p,
body.theme-beige .guardian-standalone-wrapper .guardian-card label {
  color: #1f2937;
}

body.theme-beige .screen:not(#screen-main-menu) .guardian-subbox,
body.theme-beige .guardian-standalone-wrapper .guardian-subbox {
  background: #f5f0e8 !important;
  border-color: #d6c7b2 !important;
  color: #1f2937 !important;
}

body.theme-beige .screen:not(#screen-main-menu) .guardian-subbox div,
body.theme-beige .guardian-standalone-wrapper .guardian-subbox div {
  color: #1f2937 !important;
}

body.theme-beige .screen:not(#screen-main-menu) input,
body.theme-beige .screen:not(#screen-main-menu) textarea,
body.theme-beige .screen:not(#screen-main-menu) select,
body.theme-beige .guardian-standalone-wrapper input,
body.theme-beige .guardian-standalone-wrapper textarea,
body.theme-beige .guardian-standalone-wrapper select,
body.theme-beige .b2b-standalone-wrapper input,
body.theme-beige .b2b-standalone-wrapper textarea,
body.theme-beige .b2b-standalone-wrapper select {
  background: #faf6f0 !important;
  color: #111827 !important;
  border: 1px solid #c7b9a5 !important;
}

body.theme-beige .screen:not(#screen-main-menu) .sub-nav,
body.theme-beige .guardian-standalone-wrapper .sub-nav,
body.theme-beige .b2b-standalone-wrapper .sub-nav {
  background: #f5f0e8 !important;
  border-bottom: 1px solid #d6c7b2 !important;
}

body.theme-beige .screen:not(#screen-main-menu) .sub-nav-item,
body.theme-beige .screen:not(#screen-main-menu) .b2b-tab-btn,
body.theme-beige .guardian-standalone-wrapper .sub-nav-item,
body.theme-beige .b2b-standalone-wrapper .sub-nav-item {
  background: #ebdcc9 !important;
  color: #374151 !important;
}

body.theme-beige .screen:not(#screen-main-menu) .sub-nav-item.active,
body.theme-beige .screen:not(#screen-main-menu) .b2b-tab-btn.active,
body.theme-beige .guardian-standalone-wrapper .sub-nav-item.active,
body.theme-beige .b2b-standalone-wrapper .sub-nav-item.active {
  background: #b47b48 !important;
  color: #ffffff !important;
}


/* --------------------------------------------------------------------------
   3. ТЕМА «ГРАФИТ» (МАТОВАЯ, СПОКОЙНАЯ) — ТОЛЬКО ВНУТРИ РАБОЧИХ БЛОКОВ
   -------------------------------------------------------------------------- */
body.theme-graphite .screen:not(#screen-main-menu):not(#screen-shop),
body.theme-graphite .b2b-standalone-wrapper,
body.theme-graphite .guardian-standalone-wrapper,
body.theme-graphite .camera-app-shell {
  background: #18181b !important;
  color: #f4f4f5 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-graphite .screen:not(#screen-main-menu):not(#screen-shop) .app-header,
body.theme-graphite .standalone-topbar {
  background: #202024 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
}

body.theme-graphite .screen:not(#screen-main-menu) .sub-nav,
body.theme-graphite .guardian-standalone-wrapper .sub-nav,
body.theme-graphite .b2b-standalone-wrapper .sub-nav {
  background: #202024 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.theme-graphite .screen:not(#screen-main-menu) .guardian-card,
body.theme-graphite .screen:not(#screen-main-menu) .b2b-card,
body.theme-graphite .screen:not(#screen-main-menu) .result-card,
body.theme-graphite .screen:not(#screen-main-menu) .forum-post,
body.theme-graphite .guardian-standalone-wrapper .guardian-card,
body.theme-graphite .b2b-standalone-wrapper .result-card {
  background: #242429 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
}

body.theme-graphite .screen:not(#screen-main-menu) .guardian-subbox,
body.theme-graphite .guardian-standalone-wrapper .guardian-subbox {
  background: #1c1c21 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Переключатель тем внутри рабочих блоков */
.theme-switcher-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 23, 42, 0.65);
  padding: 2px 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

body.theme-beige .screen:not(#screen-main-menu) .theme-switcher-bar,
body.theme-beige .standalone-topbar .theme-switcher-bar {
  background: rgba(180, 123, 72, 0.16);
  border-color: #c7b9a5;
}

.theme-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 10px;
  transition: all 0.15s ease;
  line-height: 1;
  color: #e2e8f0;
}

.theme-btn.active {
  background: rgba(56, 189, 248, 0.32);
  transform: scale(1.1);
}

body.theme-beige .screen:not(#screen-main-menu) .theme-btn.active,
body.theme-beige .standalone-topbar .theme-btn.active {
  background: rgba(180, 123, 72, 0.35);
}


/* ============================================================================
   УМНЫЙ СТАТУС КНОПКИ SOS НА ВСЕХ СТРАНИЦАХ (ПОДКЛЮЧЁН / ПРОСТО КНОПКА)
   ============================================================================ */
.sos-btn-header.sos-inactive,
.welcome-sos-button.sos-inactive {
  background: rgba(30, 41, 59, 0.75) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  box-shadow: none !important;
  animation: none !important;
  opacity: 0.88;
}

.sos-btn-header.sos-inactive:hover,
.welcome-sos-button.sos-inactive:hover {
  background: rgba(51, 65, 85, 0.9) !important;
  color: #ffffff !important;
  opacity: 1;
}

.sos-btn-header.sos-active,
.welcome-sos-button.sos-active {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  color: #ffffff !important;
  border: 1.5px solid #fca5a5 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7) !important;
  animation: sos-pulse-header 2s infinite ease-in-out !important;
  opacity: 1;
}

.sos-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  margin-right: 4px;
  vertical-align: middle;
}
