/* ============ FoxHelper APP STYLES ============ */
/* Этот файл содержит только специфичные стили приложения */

/* Специальные стили для реферальной программы */
.fh-bonuses-dark {
  background: var(--fh-bg);
  color: var(--theme-text);
}

.fh-bonuses-dark-bg {
  background: var(--fh-bg);
  border-radius: 0;
  padding: 24px 20px;
  margin-top: -8px;
}

.fh-bonuses-dark h1 {
  color: #212529;
}

/* Карточки в реферальной программе должны иметь серый фон */
.fh-bonuses-dark .card {
  background: var(--fh-card) !important;
  border: 1px solid var(--fh-border) !important;
  color: var(--theme-text) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}


.fh-bonuses-dark .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  z-index: 1;
}

.fh-bonuses-dark .card:hover {
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) scale(1.005) !important;
  border-color: var(--fh-accent) !important;
}

.fh-bonuses-dark .card-body {
  background: transparent !important;
  color: var(--theme-text) !important;
  padding: 1.5rem !important;
}

/* Стили для кнопок рефералов - приведены к общему дизайну */
.btn-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  background: var(--fh-card);
  color: var(--fh-text);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-ref::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ref::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-ref:hover::before {
  left: 100%;
}

.btn-ref:hover::after {
  opacity: 1;
}

.btn-ref:hover {
  background: var(--fh-accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(253, 126, 20, 0.4),
    0 4px 12px rgba(253, 126, 20, 0.3),
    0 0 0 4px rgba(253, 126, 20, 0.2);
}

/* Стили для анализа */
.analysis-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Стили для каталога */
.fh-catalog-wide .product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  margin-bottom: 1rem;
}

.fh-catalog-wide .product-thumb {
  width: 96px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
}

.fh-catalog-wide .product-title {
  font-weight: 700;
  margin: 0;
  color: var(--theme-text);
}

.fh-catalog-wide .product-meta {
  color: var(--theme-text);
  font-size: 0.95rem;
  margin-top: 4px;
}

.fh-catalog-wide .product-actions {
  display: flex;
  gap: 8px;
}

/* Мобильная адаптация */
@media (max-width: 576px) {
  .fh-catalog-wide .product-card {
    grid-template-columns: 60px 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .fh-catalog-wide .product-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
  }
  
  .fh-catalog-wide .product-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  
  .fh-catalog-wide .product-meta {
    font-size: 0.7rem;
    margin-top: 1px;
  }
  
  .fh-catalog-wide .product-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 0.5rem;
  }
  
  .fh-catalog-wide .product-actions .btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.375rem;
    flex: 1;
  }
  
  .fh-catalog-wide .product-actions .me-2 {
    margin-right: 0.375rem !important;
    font-size: 0.75rem;
    min-width: 50px;
  }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 480px) {
  .fh-catalog-wide .product-card {
    grid-template-columns: 50px 1fr;
    gap: 0.375rem;
    padding: 0.375rem;
    margin-bottom: 0.375rem;
  }
  
  .fh-catalog-wide .product-thumb {
    width: 50px;
    height: 38px;
    border-radius: 4px;
  }
  
  .fh-catalog-wide .product-title {
    font-size: 0.75rem;
    line-height: 1.1;
  }
  
  .fh-catalog-wide .product-meta {
    font-size: 0.65rem;
    margin-top: 0;
  }
  
  .fh-catalog-wide .product-actions {
    gap: 2px;
    margin-top: 0.375rem;
  }
  
  .fh-catalog-wide .product-actions .btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
  }
  
  .fh-catalog-wide .product-actions .me-2 {
    font-size: 0.7rem;
    min-width: 45px;
  }
}

/* Оптимизация папок в каталоге для мобильных */
@media (max-width: 576px) {
  .row .col-md-4 {
    margin-bottom: 0.5rem;
  }
  
  .row .col-md-4 .card {
    margin-bottom: 0;
  }
  
  .row .col-md-4 .card-img-top {
    height: 120px !important;
  }
  
  .row .col-md-4 .card-body {
    padding: 0.5rem;
  }
  
  .row .col-md-4 .card-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  
  .row .col-md-4 .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.25rem;
  }
  
  .row .col-md-4 .text-muted {
    font-size: 0.7rem;
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .row .col-md-4 .card-img-top {
    height: 100px !important;
  }
  
  .row .col-md-4 .card-body {
    padding: 0.375rem;
  }
  
  .row .col-md-4 .card-title {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }
  
  .row .col-md-4 .badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
    margin-bottom: 0.2rem;
  }
  
  .row .col-md-4 .text-muted {
    font-size: 0.65rem;
    margin-top: 0.2rem;
  }
}

/* Общая мобильная оптимизация - только для мобильных устройств */
@media (max-width: 576px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .card {
    margin-bottom: 0.5rem;
  }
  
  .card-body {
    padding: 0.5rem;
  }
  
  .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  
  .mb-4 {
    margin-bottom: 0.75rem !important;
  }
  
  .mt-3 {
    margin-top: 0.5rem !important;
  }
  
  .mt-4 {
    margin-top: 0.75rem !important;
  }
  
  .my-4 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
  }
  
  .h5 {
    font-size: 0.9rem;
  }
  
  .h4 {
    font-size: 1rem;
  }
  
  .h3 {
    font-size: 1rem;
  }
  
  .h2 {
    font-size: 1.1rem;
  }
  
  .h1 {
    font-size: 1.2rem;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .text-muted {
    font-size: 0.8rem;
  }
  
  .small {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }
  
  .card {
    margin-bottom: 0.375rem;
  }
  
  .card-body {
    padding: 0.375rem;
  }
  
  .mb-3 {
    margin-bottom: 0.375rem !important;
  }
  
  .mb-4 {
    margin-bottom: 0.5rem !important;
  }
  
  .mt-3 {
    margin-top: 0.375rem !important;
  }
  
  .mt-4 {
    margin-top: 0.5rem !important;
  }
  
  .my-4 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .card-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  
  .h5 {
    font-size: 0.8rem;
  }
  
  .h4 {
    font-size: 0.9rem;
  }
  
  .h3 {
    font-size: 0.9rem;
  }
  
  .h2 {
    font-size: 1rem;
  }
  
  .h1 {
    font-size: 1.1rem;
  }
  
  .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .btn-sm {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  
  .form-control {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  
  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  
  .text-muted {
    font-size: 0.75rem;
  }
  
  .small {
    font-size: 0.7rem;
  }
  
  /* Специальная оптимизация для каталога */
  .catalog-list {
    margin-top: 0.5rem;
  }
  
  .catalog-list h5 {
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
  }
  
  .catalog-list .row {
    margin-bottom: 0.5rem;
  }
  
  .catalog-list .row:last-child {
    margin-bottom: 0;
  }
}

/* Специальные стили для страницы рефералов */
.fh-bonuses-dark .card-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

.fh-bonuses-dark .form-control-lg {
  font-size: 1.1rem !important;
  padding: 0.75rem 1rem !important;
}

.fh-bonuses-dark .btn-lg {
  font-size: 1rem !important;
  padding: 0.75rem 1.5rem !important;
}

.fh-bonuses-dark .form-text {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.fh-bonuses-dark ul li {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0.75rem !important;
}

.fh-bonuses-dark .text-muted {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.fh-bonuses-dark h1 {
  font-size: 2rem !important;
  font-weight: 700 !important;
}

/* Мобильная оптимизация для страницы рефералов */
@media (max-width: 576px) {
  .fh-bonuses-dark .card-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .form-control-lg {
    font-size: 0.8rem !important;
    padding: 0.6rem 0.8rem !important;
  }
  
  .fh-bonuses-dark .btn-lg {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
  }
  
  .fh-bonuses-dark .form-text {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-top: 0.5rem !important;
  }
  
  .fh-bonuses-dark ul li {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .text-muted {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  .fh-bonuses-dark h1 {
    font-size: 1.6rem !important;
    margin-bottom: 1rem !important;
  }
  
  .fh-bonuses-dark .card-body {
    padding: 0.75rem !important;
  }
  
  .fh-bonuses-dark .mb-3 {
    margin-bottom: 0.75rem !important;
  }
  
  .fh-bonuses-dark .d-flex.gap-2 {
    gap: 0.5rem !important;
  }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 480px) {
  .fh-bonuses-dark .card-title {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .fh-bonuses-dark .form-control-lg {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.7rem !important;
  }
  
  .fh-bonuses-dark .btn-lg {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  .fh-bonuses-dark .form-text {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-top: 0.4rem !important;
  }
  
  .fh-bonuses-dark ul li {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.4rem !important;
  }
  
  .fh-bonuses-dark .text-muted {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  .fh-bonuses-dark h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .fh-bonuses-dark .card-body {
    padding: 0.5rem !important;
  }
  
  .fh-bonuses-dark .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .d-flex.gap-2 {
    gap: 0.375rem !important;
  }
}

/* Специальные стили для темной темы */
[data-theme="dark"] .fh-bonuses-dark {
  background: var(--fh-bg);
  color: #e5e7eb;
}

[data-theme="dark"] .fh-bonuses-dark-bg {
  background: var(--fh-bg);
}

[data-theme="dark"] .fh-bonuses-dark h1 {
  color: #f0f6fc !important;
}

[data-theme="dark"] .fh-bonuses-dark .fw-semibold,
[data-theme="dark"] .fh-bonuses-dark .ref-code,
[data-theme="dark"] .fh-bonuses-dark .h5 {
  color: #f0f6fc !important;
}


/* Стили для карточек в темной теме */
[data-theme="dark"] .fh-bonuses-dark .card {
  background: #2d3748 !important;
  border: 1px solid #ff6b35 !important;
  color: #f0f6fc !important;
  border-radius: 16px !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .fh-bonuses-dark .card-body {
  background: transparent !important;
  color: #f0f6fc !important;
}

/* Стили для текста в темной теме */
[data-theme="dark"] .fh-bonuses-dark .text-muted {
  color: #8b949e !important;
}

[data-theme="dark"] .fh-bonuses-dark .form-label {
  color: #f0f6fc !important;
}

[data-theme="dark"] .fh-bonuses-dark .form-text {
  color: #8b949e !important;
}

[data-theme="dark"] .fh-bonuses-dark p {
  color: #f0f6fc !important;
}

[data-theme="dark"] .fh-bonuses-dark li {
  color: #f0f6fc !important;
}

/* Критические стили для предотвращения FOUC */
.fh-bonuses-dark {
  background: #ffffff;
  color: #212529;
  opacity: 1;
}

[data-theme="dark"] .fh-bonuses-dark {
  background: var(--fh-bg);
  color: #e5e7eb;
}

/* Стили для карточки входа */
.fh-card-dark {
  background: #e9ecef;
  border: 1px solid #fd7e14;
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fh-card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  z-index: 1;
}

.fh-card-header {
  background: transparent;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
  font-weight: 600;
}

.fh-label {
  color: #212529;
  font-weight: 500;
}

.fh-input {
  background: #f1f3f4;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  color: #212529;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fh-input:focus {
  outline: none;
  border-color: #fd7e14;
  background: #ffffff;
  box-shadow: 
    0 0 0 4px rgba(253, 126, 20, 0.15),
    0 4px 16px rgba(253, 126, 20, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.fh-accent-link {
  color: #fd7e14;
  text-decoration: none;
  transition: color 0.3s ease;
}

.fh-accent-link:hover {
  color: #e55a00;
}

.fh-hr {
  border: none;
  height: 1px;
  background: #dee2e6;
  margin: 1.5rem 0;
}

/* Темная тема для карточки входа */
[data-theme="dark"] .fh-card-dark {
  background: #2d3748 !important;
  border: 1px solid #ff6b35 !important;
  color: #f0f6fc !important;
  border-radius: 16px !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .fh-card-header {
  border-bottom-color: #30363d;
}

[data-theme="dark"] .fh-label {
  color: #f0f6fc !important;
}

[data-theme="dark"] .fh-input {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .fh-input:focus {
  border-color: #ff6b35 !important;
  background: #374151 !important;
  box-shadow: 
    0 0 0 4px rgba(255, 107, 53, 0.15),
    0 4px 16px rgba(255, 107, 53, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .fh-accent-link {
  color: #ff6b35 !important;
}

[data-theme="dark"] .fh-accent-link:hover {
  color: #ff8c42 !important;
}

[data-theme="dark"] .fh-hr {
  background: #30363d !important;
}

[data-theme="dark"] .fh-card-dark .text-muted {
  color: #8b949e !important;
}

/* Улучшение качества изображений */
.fh-illustration, .fh-img-rounded, .fh-thanks-image {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) brightness(1.02) saturate(1.05);
  -webkit-filter: contrast(1.05) brightness(1.02) saturate(1.05);
  transition: all 0.3s ease;
}

.fh-illustration:hover, .fh-img-rounded:hover, .fh-thanks-image:hover {
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  -webkit-filter: contrast(1.1) brightness(1.05) saturate(1.1);
  transform: scale(1.01);
}

/* Сглаженный режим для изображений */
.fh-illustration.smooth, .fh-img-rounded.smooth, .fh-thanks-image.smooth {
  image-rendering: auto;
  image-rendering: smooth;
  filter: blur(0.3px) contrast(1.1) brightness(1.05);
  -webkit-filter: blur(0.3px) contrast(1.1) brightness(1.05);
}

/* Темная тема для изображений */
[data-theme="dark"] .fh-illustration, 
[data-theme="dark"] .fh-img-rounded, 
[data-theme="dark"] .fh-thanks-image {
  filter: contrast(1.15) brightness(1.08) saturate(1.1);
  -webkit-filter: contrast(1.15) brightness(1.08) saturate(1.1);
}

[data-theme="dark"] .fh-illustration:hover, 
[data-theme="dark"] .fh-img-rounded:hover, 
[data-theme="dark"] .fh-thanks-image:hover {
  filter: contrast(1.2) brightness(1.1) saturate(1.15);
  -webkit-filter: contrast(1.2) brightness(1.1) saturate(1.15);
}

[data-theme="dark"] .fh-illustration.smooth, 
[data-theme="dark"] .fh-img-rounded.smooth, 
[data-theme="dark"] .fh-thanks-image.smooth {
  filter: blur(0.3px) contrast(1.15) brightness(1.08);
  -webkit-filter: blur(0.3px) contrast(1.15) brightness(1.08);
}

/* Стили для поля поиска в каталоге */
.fh-bonuses-dark .form-control {
  background: var(--fh-card) !important;
  border: 2px solid var(--fh-border) !important;
  color: var(--theme-text) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease !important;
}

.fh-bonuses-dark .form-control::placeholder {
  color: var(--theme-muted) !important;
  opacity: 0.8 !important;
}

.fh-bonuses-dark .form-control:focus {
  outline: none !important;
  border-color: var(--fh-accent) !important;
  background: var(--fh-bg) !important;
  color: var(--theme-text) !important;
  box-shadow: 
    0 0 0 3px rgba(255, 107, 53, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.fh-bonuses-dark .form-control:focus::placeholder {
  color: var(--theme-muted) !important;
  opacity: 0.6 !important;
}

/* Стили для поля поиска в светлой теме */
.fh-bonuses-dark .form-control {
  background: #f8f9fa !important;
  border: 2px solid #dee2e6 !important;
  color: #212529 !important;
}

.fh-bonuses-dark .form-control::placeholder {
  color: #6c757d !important;
  opacity: 0.8 !important;
}

  .fh-bonuses-dark .form-control:focus {
    background: #ffffff !important;
    border-color: var(--fh-accent) !important;
    color: #212529 !important;
    box-shadow: 
      0 0 0 3px rgba(255, 107, 53, 0.1),
      0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

/* ============================== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ КОРЗИНЫ ============================== */

/* Оптимизация для страницы корзины */
@media (max-width: 576px) {
  .fh-bonuses-dark h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .fs-5 {
    font-size: 1.1rem !important;
  }
  
  .fh-bonuses-dark .table th,
  .fh-bonuses-dark .table td {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.3rem !important;
  }
  
  .fh-bonuses-dark .btn {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .fh-bonuses-dark .btn-sm {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
  }
  
  .fh-bonuses-dark .card-body {
    padding: 0.5rem !important;
  }
  
  .fh-bonuses-dark .mb-3 {
    margin-bottom: 0.75rem !important;
  }
  
  .fh-bonuses-dark .gap-2 {
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .fh-bonuses-dark h1 {
    font-size: 1.2rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .fh-bonuses-dark .fs-5 {
    font-size: 1rem !important;
  }
  
  .fh-bonuses-dark .table th,
  .fh-bonuses-dark .table td {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.25rem !important;
  }
  
  .fh-bonuses-dark .btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.7rem !important;
  }
  
  .fh-bonuses-dark .btn-sm {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .fh-bonuses-dark .card-body {
    padding: 0.4rem !important;
  }
  
  .fh-bonuses-dark .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .gap-2 {
    gap: 0.375rem !important;
  }
}

/* ============================== ОБЩАЯ МОБИЛЬНАЯ ОПТИМИЗАЦИЯ ============================== */

/* Универсальные мобильные стили для всех страниц */
@media (max-width: 576px) {
  /* Заголовки */
  h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  h4 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.3 !important;
  }
  
  h5 {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.3 !important;
  }
  
  h6 {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
  }
  
  /* Размеры шрифтов Bootstrap */
  .fs-1 { font-size: 1.4rem !important; }
  .fs-2 { font-size: 1.3rem !important; }
  .fs-3 { font-size: 1.2rem !important; }
  .fs-4 { font-size: 1.1rem !important; }
  .fs-5 { font-size: 1rem !important; }
  .fs-6 { font-size: 0.9rem !important; }
  
  /* Кнопки */
  .btn {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  .btn-sm {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
    line-height: 1.3 !important;
  }
  
  .btn-lg {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    line-height: 1.3 !important;
  }
  
  /* Карточки */
  .card {
    margin-bottom: 0.75rem !important;
  }
  
  .card-body {
    padding: 0.75rem !important;
  }
  
  .card-title {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .card-text {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  /* Отступы Bootstrap */
  .mb-1 { margin-bottom: 0.25rem !important; }
  .mb-2 { margin-bottom: 0.5rem !important; }
  .mb-3 { margin-bottom: 0.75rem !important; }
  .mb-4 { margin-bottom: 1rem !important; }
  .mb-5 { margin-bottom: 1.25rem !important; }
  
  .mt-1 { margin-top: 0.25rem !important; }
  .mt-2 { margin-top: 0.5rem !important; }
  .mt-3 { margin-top: 0.75rem !important; }
  .mt-4 { margin-top: 1rem !important; }
  .mt-5 { margin-top: 1.25rem !important; }
  
  .my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
  .my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
  .my-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
  .my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  .my-5 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
  
  /* Промежутки */
  .gap-1 { gap: 0.25rem !important; }
  .gap-2 { gap: 0.5rem !important; }
  .gap-3 { gap: 0.75rem !important; }
  .gap-4 { gap: 1rem !important; }
  .gap-5 { gap: 1.25rem !important; }
  
  /* Таблицы */
  .table {
    font-size: 0.9rem !important;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Формы */
  .form-control {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .form-label {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .form-text {
    font-size: 0.8rem !important;
  }
  
  /* Текст */
  .text-muted {
    font-size: 0.85rem !important;
  }
  
  .small {
    font-size: 0.75rem !important;
  }
  
  /* Контейнеры */
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  /* Списки */
  ul, ol {
    padding-left: 1rem !important;
  }
  
  li {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Параграфы */
  p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Бейджи */
  .badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* Алерты */
  .alert {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  /* Заголовки */
  h1 {
    font-size: 1.3rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
  }
  
  h3 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.2 !important;
  }
  
  h4 {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
  }
  
  h5 {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
  }
  
  h6 {
    font-size: 0.8rem !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
  }
  
  /* Размеры шрифтов Bootstrap */
  .fs-1 { font-size: 1.3rem !important; }
  .fs-2 { font-size: 1.2rem !important; }
  .fs-3 { font-size: 1.1rem !important; }
  .fs-4 { font-size: 1rem !important; }
  .fs-5 { font-size: 0.9rem !important; }
  .fs-6 { font-size: 0.8rem !important; }
  
  /* Кнопки */
  .btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.7rem !important;
    line-height: 1.2 !important;
  }
  
  .btn-sm {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2 !important;
  }
  
  .btn-lg {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.9rem !important;
    line-height: 1.2 !important;
  }
  
  /* Карточки */
  .card {
    margin-bottom: 0.5rem !important;
  }
  
  .card-body {
    padding: 0.5rem !important;
  }
  
  .card-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .card-text {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  /* Отступы Bootstrap */
  .mb-1 { margin-bottom: 0.2rem !important; }
  .mb-2 { margin-bottom: 0.4rem !important; }
  .mb-3 { margin-bottom: 0.5rem !important; }
  .mb-4 { margin-bottom: 0.75rem !important; }
  .mb-5 { margin-bottom: 1rem !important; }
  
  .mt-1 { margin-top: 0.2rem !important; }
  .mt-2 { margin-top: 0.4rem !important; }
  .mt-3 { margin-top: 0.5rem !important; }
  .mt-4 { margin-top: 0.75rem !important; }
  .mt-5 { margin-top: 1rem !important; }
  
  .my-1 { margin-top: 0.2rem !important; margin-bottom: 0.2rem !important; }
  .my-2 { margin-top: 0.4rem !important; margin-bottom: 0.4rem !important; }
  .my-3 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
  .my-4 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
  .my-5 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  
  /* Промежутки */
  .gap-1 { gap: 0.2rem !important; }
  .gap-2 { gap: 0.375rem !important; }
  .gap-3 { gap: 0.5rem !important; }
  .gap-4 { gap: 0.75rem !important; }
  .gap-5 { gap: 1rem !important; }
  
  /* Таблицы */
  .table {
    font-size: 0.8rem !important;
  }
  
  .table th,
  .table td {
    padding: 0.4rem 0.25rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Формы */
  .form-control {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  
  .form-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .form-text {
    font-size: 0.75rem !important;
  }
  
  /* Текст */
  .text-muted {
    font-size: 0.8rem !important;
  }
  
  .small {
    font-size: 0.7rem !important;
  }
  
  /* Контейнеры */
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Списки */
  ul, ol {
    padding-left: 0.8rem !important;
  }
  
  li {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.2rem !important;
  }
  
  /* Параграфы */
  p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Бейджи */
  .badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  /* Алерты */
  .alert {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
}

/* ============================== ДОПОЛНИТЕЛЬНЫЕ БРЕЙКПОИНТЫ ============================== */

/* Планшеты в портретной ориентации */
@media (max-width: 768px) and (min-width: 577px) {
  h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.7rem !important;
  }
  
  h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  .btn {
    font-size: 0.9rem !important;
    padding: 0.45rem 0.9rem !important;
  }
  
  .card-body {
    padding: 0.9rem !important;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Планшеты в альбомной ориентации */
@media (max-width: 992px) and (min-width: 769px) {
  h1 {
    font-size: 1.7rem !important;
    margin-bottom: 0.9rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.7rem !important;
  }
  
  .btn {
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  .card-body {
    padding: 1rem !important;
  }
}

/* ============================== УНИВЕРСАЛЬНЫЕ УТИЛИТЫ ============================== */

/* Специальные классы для точной настройки */
.mobile-compact {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5rem !important;
}

.mobile-tiny {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.25rem !important;
}

.mobile-spacing-sm {
  margin-bottom: 0.25rem !important;
}

.mobile-spacing-md {
  margin-bottom: 0.5rem !important;
}

.mobile-spacing-lg {
  margin-bottom: 0.75rem !important;
}

/* Принудительное скрытие на мобильных */
@media (max-width: 576px) {
  .mobile-hide {
    display: none !important;
  }
}

/* Принудительное отображение на мобильных */
@media (max-width: 576px) {
  .mobile-show {
    display: block !important;
  }
}

/* Адаптивные изображения */
@media (max-width: 576px) {
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .img-fluid {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ============================== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ СТРАНИЦЫ ОФОРМЛЕНИЯ ЗАКАЗА ============================== */

/* Оптимизация для страницы оформления заказа */
@media (max-width: 576px) {
  /* Контейнер и заголовок */
  .container.my-4 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .container.my-4 h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Карточка */
  .fh-card {
    margin-bottom: 0.75rem !important;
  }
  
  .fh-card-header {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .fh-table-vertical td {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
  }
  
  .fh-card-actions {
    padding: 0.75rem !important;
  }
  
  .fh-card-actions .btn {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .fh-card-actions .btn-lg {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .fh-card-actions .gap-2 {
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  /* Контейнер и заголовок */
  .container.my-4 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .container.my-4 h1 {
    font-size: 1.3rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  /* Карточка */
  .fh-card {
    margin-bottom: 0.5rem !important;
  }
  
  .fh-card-header {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  
  .fh-table-vertical td {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.8rem !important;
  }
  
  .fh-card-actions {
    padding: 0.5rem !important;
  }
  
  .fh-card-actions .btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.7rem !important;
  }
  
  .fh-card-actions .btn-lg {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.7rem !important;
  }
  
  .fh-card-actions .gap-2 {
    gap: 0.375rem !important;
  }
}

/* ============================== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ СТРАНИЦЫ БОНУСОВ ============================== */

/* Общие стили для страницы бонусов (все устройства) */
.fh-bonuses-dark .table {
  font-size: 0.9rem !important;
}

.fh-bonuses-dark .table th,
.fh-bonuses-dark .table td {
  padding: 0.5rem 0.6rem !important;
  font-size: 0.9rem !important;
}

/* Специальные стили для первого и третьего столбцов */
.fh-bonuses-dark .table th:first-child,
.fh-bonuses-dark .table td:first-child {
  font-size: 0.8rem !important;
}

.fh-bonuses-dark .table th:nth-child(3),
.fh-bonuses-dark .table td:nth-child(3) {
  font-size: 0.8rem !important;
}

.fh-bonuses-dark .info-card {
  font-size: 0.9rem !important;
}

.fh-bonuses-dark .info-card h5 {
  font-size: 1rem !important;
  margin-bottom: 0.6rem !important;
}

.fh-bonuses-dark .info-card ul {
  font-size: 0.85rem !important;
}

.fh-bonuses-dark .info-card li {
  margin-bottom: 0.4rem !important;
}

.fh-bonuses-dark .info-card p {
  font-size: 0.8rem !important;
  margin-bottom: 0.6rem !important;
}

/* Оптимизация для страницы бонусов */
@media (max-width: 576px) {
  .fh-bonuses-dark .table {
    font-size: 0.8rem !important;
  }
  
  .fh-bonuses-dark .table th,
  .fh-bonuses-dark .table td {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Первый и третий столбцы на мобильных */
  .fh-bonuses-dark .table th:first-child,
  .fh-bonuses-dark .table td:first-child {
    font-size: 0.7rem !important;
  }
  
  .fh-bonuses-dark .table th:nth-child(3),
  .fh-bonuses-dark .table td:nth-child(3) {
    font-size: 0.7rem !important;
  }
  
  .fh-bonuses-dark .info-card {
    font-size: 0.85rem !important;
  }
  
  .fh-bonuses-dark .info-card h5 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .info-card ul {
    font-size: 0.8rem !important;
  }
  
  .fh-bonuses-dark .info-card li {
    margin-bottom: 0.3rem !important;
  }
  
  .fh-bonuses-dark .info-card p {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .fh-bonuses-dark .table {
    font-size: 0.75rem !important;
  }
  
  .fh-bonuses-dark .table th,
  .fh-bonuses-dark .table td {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.75rem !important;
  }
  
  /* Первый и третий столбцы на очень маленьких экранах */
  .fh-bonuses-dark .table th:first-child,
  .fh-bonuses-dark .table td:first-child {
    font-size: 0.65rem !important;
  }
  
  .fh-bonuses-dark .table th:nth-child(3),
  .fh-bonuses-dark .table td:nth-child(3) {
    font-size: 0.65rem !important;
  }
  
  .fh-bonuses-dark .info-card {
    font-size: 0.8rem !important;
  }
  
  .fh-bonuses-dark .info-card h5 {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .fh-bonuses-dark .info-card ul {
    font-size: 0.75rem !important;
  }
  
  .fh-bonuses-dark .info-card li {
    margin-bottom: 0.25rem !important;
  }
  
  .fh-bonuses-dark .info-card p {
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important;
  }
}

/* ============================== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ СТРАНИЦЫ ПОЧТЫ ============================== */

/* ============================== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ СТРАНИЦЫ ДЕТАЛЬНОГО ПРОСМОТРА СООБЩЕНИЯ ============================== */

/* Общие стили для страницы детального просмотра сообщения (все устройства) */
.fh-bonuses-dark .container-fluid {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.fh-bonuses-dark h1 {
  font-size: 1.2rem !important;
  margin-bottom: 0.5rem !important;
}

.fh-bonuses-dark .btn-sm {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.5rem !important;
}

.fh-bonuses-dark .badge {
  font-size: 0.7rem !important;
  padding: 0.2rem 0.4rem !important;
}

.fh-bonuses-dark .alert {
  font-size: 0.85rem !important;
  padding: 0.75rem !important;
  margin-top: 0.5rem !important;
}

.fh-bonuses-dark .alert .fw-semibold {
  font-size: 0.9rem !important;
  margin-bottom: 0.4rem !important;
}

.fh-bonuses-dark .btn-group .btn {
  font-size: 0.75rem !important;
  padding: 0.3rem 0.6rem !important;
}

.fh-bonuses-dark .input-group {
  width: 100% !important;
}

.fh-bonuses-dark .input-group .form-control {
  font-size: 0.8rem !important;
  padding: 0.4rem 0.6rem !important;
}

/* Стили для чата */
.fh-bonuses-dark .chat-card {
  margin-top: 0.5rem !important;
  height: calc(100vh - 200px) !important;
  min-height: 300px !important;
}

.fh-bonuses-dark .chat-window {
  padding: 0.75rem !important;
}

.fh-bonuses-dark .chat-bubble {
  max-width: 85% !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 0.8rem !important;
}

.fh-bonuses-dark .chat-meta {
  font-size: 0.65rem !important;
  margin-bottom: 0.1rem !important;
}

.fh-bonuses-dark .chat-meta small {
  font-size: 0.65rem !important;
}

.fh-bonuses-dark .chat-text {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
}

.fh-bonuses-dark .chat-text p {
  margin: 0.1em 0 !important;
}

.fh-bonuses-dark .chat-text.html p,
.fh-bonuses-dark .chat-text.html div {
  margin: 2px 0 !important;
}

.fh-bonuses-dark .chat-text.html ul,
.fh-bonuses-dark .chat-text.html ol {
  margin: 2px 0 0 8px !important;
  padding-left: 8px !important;
}

.fh-bonuses-dark .chat-text.html li {
  margin: 0.5px 0 !important;
}

.fh-bonuses-dark .chat-attach {
  margin-top: 0.1rem !important;
}

.fh-bonuses-dark .chat-attach .btn,
.fh-bonuses-dark .chat-attach button,
.fh-bonuses-dark .chat-attach input[type="submit"],
.fh-bonuses-dark .chat-attach input[type="button"] {
  font-size: 0.7rem !important;
  padding: 0.05rem 0.4rem !important;
  width: auto !important;
  min-width: 60px !important;
  height: 20px !important;
  line-height: 1 !important;
  max-height: 20px !important;
  min-height: 20px !important;
  box-sizing: border-box !important;
}

.fh-bonuses-dark .chat-composer {
  padding: 0.4rem !important;
}

.fh-bonuses-dark .chat-composer .form-control {
  font-size: 0.8rem !important;
  padding: 0.3rem !important;
  min-height: 35px !important;
}

.fh-bonuses-dark .chat-composer .btn,
.fh-bonuses-dark .chat-composer button,
.fh-bonuses-dark .chat-composer input[type="submit"],
.fh-bonuses-dark .chat-composer input[type="button"] {
  font-size: 0.75rem !important;
  padding: 0.1rem 0.6rem !important;
  width: auto !important;
  min-width: 80px !important;
  height: 24px !important;
  line-height: 1 !important;
  max-height: 24px !important;
  min-height: 24px !important;
  box-sizing: border-box !important;
}

.fh-bonuses-dark .form-text {
  font-size: 0.65rem !important;
  margin-top: 0.15rem !important;
}

/* Модальные окна */
.fh-bonuses-dark .modal-card {
  padding: 1rem !important;
  margin: 0.5rem !important;
}

.fh-bonuses-dark .modal-title {
  font-size: 0.9rem !important;
}

.fh-bonuses-dark .form-label {
  font-size: 0.8rem !important;
  margin-bottom: 0.3rem !important;
}

.fh-bonuses-dark .modal-card .form-control {
  font-size: 0.8rem !important;
  padding: 0.4rem 0.6rem !important;
}

.fh-bonuses-dark .modal-card .btn {
  font-size: 0.75rem !important;
  padding: 0.3rem 0.6rem !important;
}

.fh-bonuses-dark .modal-card .input-group-text {
  font-size: 0.8rem !important;
  padding: 0.4rem 0.6rem !important;
}

/* Оптимизация для страницы детального просмотра сообщения */
@media (max-width: 576px) {
  .fh-bonuses-dark .container-fluid {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
  
  .fh-bonuses-dark h1 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .fh-bonuses-dark .btn-sm {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  .fh-bonuses-dark .badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.3rem !important;
  }
  
  .fh-bonuses-dark .alert {
    font-size: 0.8rem !important;
    padding: 0.6rem !important;
    margin-top: 0.4rem !important;
  }
  
  .fh-bonuses-dark .alert .fw-semibold {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .fh-bonuses-dark .btn-group .btn {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .fh-bonuses-dark .input-group .form-control {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }
  
  /* Чат на мобильных */
  .fh-bonuses-dark .chat-card {
    margin-top: 0.4rem !important;
    height: calc(100vh - 180px) !important;
    min-height: 250px !important;
  }
  
  .fh-bonuses-dark .chat-window {
    padding: 0.6rem !important;
  }
  
  .fh-bonuses-dark .chat-bubble {
    max-width: 90% !important;
    padding: 0.15rem 0.3rem !important;
    border-radius: 0.7rem !important;
  }
  
  .fh-bonuses-dark .chat-meta {
    font-size: 0.6rem !important;
    margin-bottom: 0.05rem !important;
  }
  
  .fh-bonuses-dark .chat-meta small {
    font-size: 0.6rem !important;
  }
  
  .fh-bonuses-dark .chat-text {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
  }
  
  .fh-bonuses-dark .chat-text p {
    margin: 0.05em 0 !important;
  }
  
  .fh-bonuses-dark .chat-text.html p,
  .fh-bonuses-dark .chat-text.html div {
    margin: 1px 0 !important;
  }
  
  .fh-bonuses-dark .chat-text.html ul,
  .fh-bonuses-dark .chat-text.html ol {
    margin: 1px 0 0 6px !important;
    padding-left: 6px !important;
  }
  
  .fh-bonuses-dark .chat-text.html li {
    margin: 0.25px 0 !important;
  }
  
  .fh-bonuses-dark .chat-attach {
    margin-top: 0.05rem !important;
  }
  
  .fh-bonuses-dark .chat-attach .btn {
    font-size: 0.65rem !important;
    padding: 0.02rem 0.3rem !important;
    width: auto !important;
    min-width: 50px !important;
    height: 18px !important;
    line-height: 1 !important;
    max-height: 18px !important;
    min-height: 18px !important;
  }
  
  .fh-bonuses-dark .chat-composer {
    padding: 0.3rem !important;
  }
  
  .fh-bonuses-dark .chat-composer .form-control {
    font-size: 0.75rem !important;
    padding: 0.25rem !important;
    min-height: 30px !important;
  }
  
  .fh-bonuses-dark .chat-composer .btn {
    font-size: 0.7rem !important;
    padding: 0.05rem 0.5rem !important;
    width: auto !important;
    min-width: 70px !important;
    height: 20px !important;
    line-height: 1 !important;
    max-height: 20px !important;
    min-height: 20px !important;
  }
  
  .fh-bonuses-dark .form-text {
    font-size: 0.6rem !important;
    margin-top: 0.1rem !important;
  }
  
  /* Модальные окна на мобильных */
  .fh-bonuses-dark .modal-card {
    padding: 0.8rem !important;
    margin: 0.3rem !important;
  }
  
  .fh-bonuses-dark .modal-title {
    font-size: 0.85rem !important;
  }
  
  .fh-bonuses-dark .form-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .fh-bonuses-dark .modal-card .form-control {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }
  
  .fh-bonuses-dark .modal-card .btn {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .fh-bonuses-dark .modal-card .input-group-text {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .fh-bonuses-dark .container-fluid {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }
  
  .fh-bonuses-dark h1 {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .fh-bonuses-dark .btn-sm {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.3rem !important;
  }
  
  .fh-bonuses-dark .badge {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.25rem !important;
  }
  
  .fh-bonuses-dark .alert {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
    margin-top: 0.3rem !important;
  }
  
  .fh-bonuses-dark .alert .fw-semibold {
    font-size: 0.8rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .fh-bonuses-dark .btn-group .btn {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  .fh-bonuses-dark .input-group .form-control {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.4rem !important;
  }
  
  /* Чат на очень маленьких экранах */
  .fh-bonuses-dark .chat-card {
    margin-top: 0.3rem !important;
    height: calc(100vh - 160px) !important;
    min-height: 200px !important;
  }
  
  .fh-bonuses-dark .chat-window {
    padding: 0.5rem !important;
  }
  
  .fh-bonuses-dark .chat-bubble {
    max-width: 95% !important;
    padding: 0.1rem 0.25rem !important;
    border-radius: 0.6rem !important;
  }
  
  .fh-bonuses-dark .chat-meta {
    font-size: 0.55rem !important;
    margin-bottom: 0.02rem !important;
  }
  
  .fh-bonuses-dark .chat-meta small {
    font-size: 0.55rem !important;
  }
  
  .fh-bonuses-dark .chat-text {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }
  
  .fh-bonuses-dark .chat-text p {
    margin: 0.02em 0 !important;
  }
  
  .fh-bonuses-dark .chat-text.html p,
  .fh-bonuses-dark .chat-text.html div {
    margin: 0.5px 0 !important;
  }
  
  .fh-bonuses-dark .chat-text.html ul,
  .fh-bonuses-dark .chat-text.html ol {
    margin: 0.5px 0 0 4px !important;
    padding-left: 4px !important;
  }
  
  .fh-bonuses-dark .chat-text.html li {
    margin: 0.1px 0 !important;
  }
  
  .fh-bonuses-dark .chat-attach {
    margin-top: 0.02rem !important;
  }
  
  .fh-bonuses-dark .chat-attach .btn {
    font-size: 0.6rem !important;
    padding: 0.01rem 0.25rem !important;
    width: auto !important;
    min-width: 45px !important;
    height: 16px !important;
    line-height: 1 !important;
    max-height: 16px !important;
    min-height: 16px !important;
  }
  
  .fh-bonuses-dark .chat-composer {
    padding: 0.25rem !important;
  }
  
  .fh-bonuses-dark .chat-composer .form-control {
    font-size: 0.7rem !important;
    padding: 0.2rem !important;
    min-height: 25px !important;
  }
  
  .fh-bonuses-dark .chat-composer .btn {
    font-size: 0.65rem !important;
    padding: 0.02rem 0.4rem !important;
    width: auto !important;
    min-width: 60px !important;
    height: 18px !important;
    line-height: 1 !important;
    max-height: 18px !important;
    min-height: 18px !important;
  }
  
  .fh-bonuses-dark .form-text {
    font-size: 0.55rem !important;
    margin-top: 0.05rem !important;
  }
  
  /* Модальные окна на очень маленьких экранах */
  .fh-bonuses-dark .modal-card {
    padding: 0.6rem !important;
    margin: 0.2rem !important;
  }
  
  .fh-bonuses-dark .modal-title {
    font-size: 0.8rem !important;
  }
  
  .fh-bonuses-dark .form-label {
    font-size: 0.7rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .fh-bonuses-dark .modal-card .form-control {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.4rem !important;
  }
  
  .fh-bonuses-dark .modal-card .btn {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  .fh-bonuses-dark .modal-card .input-group-text {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.4rem !important;
  }
}

/* Общие стили для страницы почты (все устройства) */
.fh-bonuses-dark .inbox-cloud .me-3 {
  padding-left: 0.8rem !important;
}

/* Стили для облаков сообщений на странице почты */
.fh-bonuses-dark .inbox-clouds {
  margin-top: 0.5rem !important;
}

.fh-bonuses-dark .inbox-cloud {
  padding: 0.5rem !important;
  margin-bottom: 0 !important;
  margin-top: -2px !important;
}

.fh-bonuses-dark .cloud-title {
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.2rem !important;
}

.fh-bonuses-dark .cloud-preview {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  margin-top: 0.2rem !important;
}

.fh-bonuses-dark .inbox-cloud .text-muted.small {
  font-size: 0.7rem !important;
}

.fh-bonuses-dark .badge {
  font-size: 0.6rem !important;
  padding: 0.15rem 0.3rem !important;
}

/* Стили для карточки с реферальным кодом */
.fh-bonuses-dark .card-body strong {
  font-size: 0.9rem !important;
}

/* Оптимизация для страницы почты */
@media (max-width: 576px) {
  .fh-bonuses-dark .inbox-clouds {
    margin-top: 0.5rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud {
    margin-bottom: 0 !important;
    margin-top: -2px !important;
    padding: 0.75rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud .me-3 {
    margin-right: 0.75rem !important;
    padding-left: 0.7rem !important;
  }
  
  .fh-bonuses-dark .cloud-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
  
  .fh-bonuses-dark .cloud-preview {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-top: 0.4rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud .text-muted.small {
    font-size: 0.7rem !important;
  }
  
  .fh-bonuses-dark .badge {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  .fh-bonuses-dark .card-header h5 {
    font-size: 0.9rem !important;
  }
  
  .fh-bonuses-dark .card-body h6 {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .fh-bonuses-dark .card-body span {
    font-size: 0.8rem !important;
  }
  
  .fh-bonuses-dark .card-body small {
    font-size: 0.75rem !important;
  }
  
  /* Карточка с реферальным кодом на мобильных */
  .fh-bonuses-dark .card-body strong {
    font-size: 0.8rem !important;
  }
  
  .fh-bonuses-dark .card-body {
    padding: 0.75rem !important;
  }
  
  /* Облака сообщений на мобильных */
  .fh-bonuses-dark .inbox-cloud {
    padding: 0.4rem !important;
    margin-bottom: 0 !important;
    margin-top: -2px !important;
  }
  
  .fh-bonuses-dark .cloud-title {
    font-size: 0.85rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.15rem !important;
  }
  
  .fh-bonuses-dark .cloud-preview {
    font-size: 0.75rem !important;
    line-height: 1.15 !important;
    margin-top: 0.15rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud .text-muted.small {
    font-size: 0.65rem !important;
  }
  
  .fh-bonuses-dark .badge {
    font-size: 0.55rem !important;
    padding: 0.1rem 0.25rem !important;
  }
}

@media (max-width: 480px) {
  .fh-bonuses-dark .inbox-clouds {
    margin-top: 0.4rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud {
    margin-bottom: 0 !important;
    margin-top: -2px !important;
    padding: 0.6rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud .me-3 {
    margin-right: 0.6rem !important;
    padding-left: 0.6rem !important;
  }
  
  .fh-bonuses-dark .cloud-title {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }
  
  .fh-bonuses-dark .cloud-preview {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-top: 0.3rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud .text-muted.small {
    font-size: 0.65rem !important;
  }
  
  .fh-bonuses-dark .badge {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.3rem !important;
  }
  
  .fh-bonuses-dark .card-header h5 {
    font-size: 0.85rem !important;
  }
  
  .fh-bonuses-dark .card-body h6 {
    font-size: 0.75rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .fh-bonuses-dark .card-body span {
    font-size: 0.75rem !important;
  }
  
  .fh-bonuses-dark .card-body small {
    font-size: 0.7rem !important;
  }
  
  /* Карточка с реферальным кодом на очень маленьких экранах */
  .fh-bonuses-dark .card-body strong {
    font-size: 0.75rem !important;
  }
  
  .fh-bonuses-dark .card-body {
    padding: 0.6rem !important;
  }
  
  /* Облака сообщений на очень маленьких экранах */
  .fh-bonuses-dark .inbox-cloud {
    padding: 0.3rem !important;
    margin-bottom: 0 !important;
    margin-top: -2px !important;
  }
  
  .fh-bonuses-dark .cloud-title {
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.1rem !important;
  }
  
  .fh-bonuses-dark .cloud-preview {
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    margin-top: 0.1rem !important;
  }
  
  .fh-bonuses-dark .inbox-cloud .text-muted.small {
    font-size: 0.6rem !important;
  }
  
  .fh-bonuses-dark .badge {
    font-size: 0.5rem !important;
    padding: 0.08rem 0.2rem !important;
  }
}