/* =====================
   Modern Top Header Styles (верхняя панель)
====================== */
.page-header.modern-top-header {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  margin-bottom: 12px;
}

/* Градиент для тёмной темы - добавляем на body */
body.dark-only .page-header.modern-top-header {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4) !important;
}

/* =====================
   Modern Top Header Styles (верхняя панель)
====================== */
.page-header.modern-top-header {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  margin-bottom: 12px;
}

/* Градиент для тёмной темы - добавляем на body */
body.dark-only .page-header.modern-top-header {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4) !important;
}

.modern-top-header .header-wrapper {
  padding: 12px 24px;
}

/* =====================
   LOGO VARIANTS
   (3 варианта логотипа на выбор)
====================== */

/* === ВАРИАНТ 1: Минималистичный с подчёркиванием === */
.logo-variant-1 {
  text-decoration: none;
  display: block;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.logo-text-1 {
  display: flex;
  align-items: baseline;
  font-family: 'Rubik', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
  position: relative;
}

.logo-text-1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
  transition: width 0.4s ease;
}

.logo-variant-1:hover .logo-text-1::after {
  width: 100%;
}

.logo-variant-1 .logo-main {
  font-weight: 600;
  transition: letter-spacing 0.3s ease;
}

.logo-variant-1:hover .logo-main {
  letter-spacing: 1px;
}

.logo-variant-1 .logo-domain {
  font-weight: 700;
  opacity: 0.85;
  margin-left: 1px;
  transition: all 0.3s ease;
}

.logo-variant-1:hover .logo-domain {
  opacity: 1;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* === ВАРИАНТ 2: Разделённый с градиентом === */
.logo-variant-2 {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: all 0.3s ease;
}

.logo-variant-2:hover {
  transform: scale(1.02);
}

.logo-parts {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: lowercase;
}

.part-tpl {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.logo-variant-2:hover .part-tpl {
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.part-dash {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  font-size: 20px;
  transition: all 0.3s ease;
}

.logo-variant-2:hover .part-dash {
  color: rgba(255, 255, 255, 0.8);
  transform: scaleX(1.3);
}

.part-market {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  transition: all 0.3s ease;
}

.logo-variant-2:hover .part-market {
  background: linear-gradient(135deg, #ffd700 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-domain-2 {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-family: 'Rubik', sans-serif;
}

.logo-variant-2:hover .logo-domain-2 {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === ВАРИАНТ 3: Вертикальный стек === */
.logo-variant-3 {
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: all 0.3s ease;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: 'Rubik', sans-serif;
  line-height: 1;
}

.stack-top {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.logo-variant-3:hover .stack-top {
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.stack-bottom {
  font-size: 14px;
  font-weight: 600;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  letter-spacing: 3px;
  margin-left: 2px;
  transition: all 0.3s ease;
}

.logo-variant-3:hover .stack-bottom {
  letter-spacing: 5px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Адаптивность для всех вариантов */
@media (max-width: 768px) {
  .logo-text-1 { font-size: 20px; }
  .logo-parts { font-size: 18px; }
  .logo-domain-2 { font-size: 13px; padding: 3px 6px; }
  .stack-top { font-size: 18px; }
  .stack-bottom { font-size: 12px; }
}

/* Старые стили - можно удалить если не используются */
.modern-logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  transition: all 0.3s ease;
}

.modern-logo-link:hover {
  transform: translateY(-2px);
}

.modern-logo-text {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  font-family: 'Rubik', sans-serif;
}

.logo-tpl {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: logoGlow 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

.logo-tpl::before {
  content: 'TPL';
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
  filter: blur(4px);
  z-index: -1;
  animation: pulseGlow 2s ease-in-out infinite;
}

.logo-separator {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 4px;
  animation: fadeInOut 2s ease-in-out infinite;
}

.logo-market {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

.logo-dot {
  color: #ffd700;
  font-size: 32px;
  line-height: 0.5;
  animation: bounce 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.logo-ru {
  color: #fff;
  opacity: 0.9;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.logo-tagline {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-left: 2px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.8s ease-out;
}

/* Анимации */
@keyframes logoGlow {
  0%, 100% {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                 0 0 30px rgba(255, 255, 255, 0.6),
                 0 0 40px rgba(255, 255, 255, 0.4);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    filter: blur(4px);
  }
  50% {
    opacity: 0.6;
    filter: blur(6px);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Темная тема */
body.dark-only .logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}

/* Hover эффекты для отдельных элементов */
.modern-logo-link:hover .logo-tpl {
  animation: logoGlow 1s ease-in-out, wiggle 0.5s ease-in-out;
}

.modern-logo-link:hover .logo-market {
  animation: shimmer 1.5s ease-in-out infinite, scaleUp 0.3s ease-out;
}

.modern-logo-link:hover .logo-dot {
  animation: bounce 0.6s ease-in-out infinite, rotate 0.8s ease-in-out;
}

.modern-logo-link:hover .logo-tagline {
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 1);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes scaleUp {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes rotate {
  0% { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(360deg) translateY(-3px); }
}

/* Адаптивность */
@media (max-width: 768px) {
  .modern-logo-text {
    font-size: 20px;
  }
  
  .logo-dot {
    font-size: 24px;
  }
  
  .logo-tagline {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

.modern-top-header .logo-wrapper img {
  height: 42px;
  border-radius: 10px;
}

.modern-nav-menus {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modern-nav-menus li {
  list-style: none;
}

.modern-nav-menus .header-search,
.modern-nav-menus .notification-box,
.modern-nav-menus .cart-box,
.modern-nav-menus .mode {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  background: rgba(255,255,255,0.15) !important;
  border-radius: 10px !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0 !important;
}

.modern-nav-menus .header-search:hover,
.modern-nav-menus .notification-box:hover,
.modern-nav-menus .cart-box:hover,
.modern-nav-menus .mode:hover {
  background: rgba(255,255,255,0.25) !important;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
}

.modern-nav-menus .notification-box i,
.modern-nav-menus .header-search i,
.modern-nav-menus .cart-box i {
  color: #fff !important;
}

/* Поддержка feather-иконок (SVG) — делаем белыми */
.modern-nav-menus .notification-box svg,
.modern-nav-menus .header-search svg,
.modern-nav-menus .cart-box svg,
.modern-nav-menus .mode svg {
  color: #fff !important;
  stroke: #fff !important;
  fill: none !important;
}

/* Фикс переключателя темы - квадратный блок */
.modern-nav-menus .mode {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modern-nav-menus .mode i {
  font-size: 20px !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modern-nav-menus .profile-media {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15) !important;
  padding: 6px 12px;
  border-radius: 12px !important;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.modern-nav-menus .profile-media:hover {
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.4);
}

.modern-nav-menus .media-body span {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
}

.modern-nav-menus .media-body p {
  color: #ffe082 !important;
  font-weight: 500;
  font-size: 13px;
}

.modern-nav-menus .profile-media img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Кнопка пополнения баланса (плюсик) */
.modern-nav-menus .add_balance a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  background: rgba(255,255,255,0.15) !important;
  border-radius: 10px !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.2) !important;
  padding: 0 !important;
}

.modern-nav-menus .add_balance a:hover {
  background: rgba(255,255,255,0.25) !important;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4) !important;
}

.modern-nav-menus .add_balance a i {
  font-size: 18px !important;
  color: #fff !important;
  margin: 0 !important;
}

/* Современное выпадающее меню профиля */
.modern-nav-menus .profile-dropdown {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  padding: 12px !important;
  min-width: 240px;
  border: none !important;
  margin-top: 12px;
}

body.dark-only .modern-nav-menus .profile-dropdown {
  background: #2a2f3f !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

.modern-nav-menus .profile-dropdown li {
  list-style: none;
  margin-bottom: 4px;
}

.modern-nav-menus .profile-dropdown li:last-child {
  margin-bottom: 0;
}

.modern-nav-menus .profile-dropdown li a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
  color: #2c3e50 !important;
  font-weight: 500;
  font-size: 14px;
}

body.dark-only .modern-nav-menus .profile-dropdown li a {
  color: #e8eaf0 !important;
}

.modern-nav-menus .profile-dropdown li a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
  transform: translateX(4px);
}

.modern-nav-menus .profile-dropdown li a i,
.modern-nav-menus .profile-dropdown li a svg {
  width: 18px !important;
  height: 18px !important;
  color: #667eea !important;
  stroke: #667eea !important;
  transition: all 0.2s ease;
}

body.dark-only .modern-nav-menus .profile-dropdown li a i,
body.dark-only .modern-nav-menus .profile-dropdown li a svg {
  color: #8b9bff !important;
  stroke: #8b9bff !important;
}

.modern-nav-menus .profile-dropdown li a:hover i,
.modern-nav-menus .profile-dropdown li a:hover svg,
.modern-nav-menus .profile-dropdown li a:hover svg * {
  color: #fff !important;
  stroke: #fff !important;
}

/* Поддержка активного состояния (если элемент отмечается классом) */
.modern-nav-menus .profile-dropdown li a.active,
.modern-nav-menus .profile-dropdown li a.active span {
  color: #fff !important;
}

.modern-nav-menus .profile-dropdown li a.active i,
.modern-nav-menus .profile-dropdown li a.active svg,
.modern-nav-menus .profile-dropdown li a.active svg * {
  color: #fff !important;
  stroke: #fff !important;
  fill: none !important;
}

.modern-nav-menus .profile-dropdown li a span {
  flex: 1;
  color: inherit !important;
  font-size: 14px;
}

/* Разделитель в меню (если есть) */
.modern-nav-menus .profile-dropdown li hr {
  margin: 8px 0 !important;
  border-color: rgba(0,0,0,0.1) !important;
}

body.dark-only .modern-nav-menus .profile-dropdown li hr {
  border-color: rgba(255,255,255,0.1) !important;
}

/* Badge для уведомлений */
.modern-nav-menus .notification-box .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  background: #ff4757 !important;
  color: #fff !important;
  border: 2px solid;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-nav-menus li {
  position: relative;
}

/* Современное выпадающее меню уведомлений */
.modern-nav-menus .notification-dropdown {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  padding: 12px !important;
  min-width: 320px;
  max-width: 360px;
  border: none !important;
  margin-top: 12px;
}

body.dark-only .modern-nav-menus .notification-dropdown {
  background: #2a2f3f !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

.modern-nav-menus .notification-dropdown > li:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 8px;
}

body.dark-only .modern-nav-menus .notification-dropdown > li:first-child {
  border-bottom-color: rgba(255,255,255,0.1);
}

.modern-nav-menus .notification-dropdown > li:first-child i {
  color: #667eea !important;
}

.modern-nav-menus .notification-dropdown > li:first-child h6 {
  color: #2c3e50 !important;
  margin: 0;
}

body.dark-only .modern-nav-menus .notification-dropdown > li:first-child h6 {
  color: #e8eaf0 !important;
}

.modern-nav-menus .notification-dropdown > li:last-child {
  padding: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

body.dark-only .modern-nav-menus .notification-dropdown > li:last-child {
  border-top-color: rgba(255,255,255,0.1);
}

.modern-nav-menus .notification-dropdown .btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-weight: 600;
  color: #fff !important;
}

/* =====================
   Modern Sidebar (левое меню)
====================== */
.sidebar-main.modern-sidebar {
  background: var(--wallet-card-bg);
}

.sidebar-links.modern-sidebar-links {
  padding: 12px 8px;
}

.sidebar-link.modern-sidebar-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  font-weight: 500 !important;
  background: transparent !important;
}

.sidebar-link.modern-sidebar-link:hover {
  background: rgba(102,126,234,0.1) !important;
  color: #667eea !important;
  transform: translateX(4px);
}

body.dark-only .sidebar-link.modern-sidebar-link:hover {
  background: rgba(102,126,234,0.2) !important;
  color: #8b9bff !important;
}

.sidebar-link.modern-sidebar-link i,
.sidebar-link.modern-sidebar-link svg {
  font-size: 18px;
  color: #667eea !important;
  min-width: 20px;
}

body.dark-only .sidebar-link.modern-sidebar-link i,
body.dark-only .sidebar-link.modern-sidebar-link svg {
  color: #8b9bff !important;
}

.sidebar-link.modern-sidebar-link span {
  color: var(--wallet-text-primary) !important;
}

.sidebar-list.active .sidebar-link.modern-sidebar-link {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.sidebar-list.active .sidebar-link.modern-sidebar-link i,
.sidebar-list.active .sidebar-link.modern-sidebar-link svg,
.sidebar-list.active .sidebar-link.modern-sidebar-link span {
  color: #fff !important;
}

/* (удалено) Боковые подменю — перенесены на базовую тему, чтобы не мешать шапке */

/* =====================
   Horizontal menu inside page header
   (горизонтальное меню в шапке)
====================== */
.page-header.modern-top-header .horizontal-wrapper nav.sidebar-main.modern-sidebar,
.page-header.modern-top-header nav.sidebar-main.modern-sidebar,
.page-wrapper.horizontal-wrapper .sidebar-wrapper nav.sidebar-main.modern-sidebar {
  background: transparent !important;
  box-shadow: none !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links {
  display: flex !important;
  align-items: center;
  gap: 28px;
  padding: 0 12px !important;
  margin: 0 !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list {
  position: relative;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #eef1ff !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover {
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link i,
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link svg,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link i,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link svg,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link i,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link svg {
  color: #c6ceff !important;
  stroke: #c6ceff !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover i,
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover svg,
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover svg *,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover i,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover svg,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover svg *,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover i,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover svg,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.modern-sidebar-link:hover svg * {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Убираем стрелочки/каретки у пунктов меню */
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.sidebar-link.sidebar-title:after,
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.sidebar-link.sidebar-title:before,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.sidebar-link.sidebar-title:after,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > a.sidebar-link.sidebar-title:before,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.sidebar-link.sidebar-title:after,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > a.sidebar-link.sidebar-title:before {
  content: none !important;
  display: none !important;
}

/* Дропдауны под пункты меню */
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  width: auto !important;
  /* Скрываем через opacity/visibility для анимации */
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s !important;
  min-width: 260px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  padding: 10px !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  z-index: 1000 !important;
  pointer-events: none !important;
}

body.dark-only .page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu,
body.dark-only .page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu,
body.dark-only .page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu {
  background: #2a2f3f !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.55) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list:hover > .sidebar-submenu,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list:hover > .sidebar-submenu,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list:hover > .sidebar-submenu,
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list.hoverd > .sidebar-submenu,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list.hoverd > .sidebar-submenu,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list.hoverd > .sidebar-submenu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: opacity .2s ease, transform .2s ease, visibility 0s !important;
  pointer-events: auto !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li a,
.page-header.modern-top-header .sidebar-submenu li a,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  color: #2c3e50 !important;
  padding-left: 14px !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
  text-decoration: none !important;
  position: relative !important;
}

body.dark-only .page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li a,
body.dark-only .page-header.modern-top-header .sidebar-submenu li a,
body.dark-only .page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li a {
  color: #e8eaf0 !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li a:before,
.page-header.modern-top-header .sidebar-submenu li a:before,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li a:before {
  content: none !important;
  display: none !important;
}

.page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li,
.page-header.modern-top-header .sidebar-submenu li,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li {
  margin: 4px 0 !important;
  list-style: none !important;
}
.page-header.modern-top-header .sidebar-submenu li:not(:last-child) { margin-bottom: 6px !important; }
.page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li::marker,
.page-header.modern-top-header .sidebar-submenu li::marker,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li::marker { content: '' !important; }
.page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li:before,
.page-header.modern-top-header .sidebar-submenu li:before,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li:before { content: none !important; }

.page-header.modern-top-header .horizontal-wrapper .sidebar-submenu li a:hover,
.page-header.modern-top-header .sidebar-submenu li a:hover,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #ffffff !important;
  transform: translateX(0) !important;
}

/* Левый индикатор у пункта при ховере */
.page-header.modern-top-header .sidebar-submenu li a::after,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li a::after {
  content: '' !important;
  position: absolute !important;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  transition: width .18s ease;
}
.page-header.modern-top-header .sidebar-submenu li a:hover::after,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-submenu li a:hover::after {
  width: 3px;
}

/* Стрелочка-указатель у дропдауна */
.page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu:before,
.page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu:before,
.page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu:before {
  content: '' !important;
  position: absolute !important;
  top: -6px !important;
  left: 28px !important;
  width: 12px !important;
  height: 12px !important;
  background: inherit !important;
  transform: rotate(45deg);
  border-radius: 2px !important;
  box-shadow: -2px -2px 6px rgba(0,0,0,0.06) inset, 0 2px 8px rgba(0,0,0,0.12) !important;
}
body.dark-only .page-header.modern-top-header .horizontal-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu:before,
body.dark-only .page-header.modern-top-header .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu:before,
body.dark-only .page-wrapper.horizontal-wrapper .sidebar-wrapper .sidebar-links.modern-sidebar-links > .sidebar-list > .sidebar-submenu:before {
  box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
}


/**=====================
     Modern Wallet Page CSS
     Version: 1.0
     Date: 25.10.2025
     Matches profile-modern.css style
==========================**/

/* Используем те же CSS переменные что и в профиле */
:root {
  --wallet-bg: #ffffff;
  --wallet-card-bg: #ffffff;
  --wallet-text-primary: #1a1a2e;
  --wallet-text-secondary: #6c757d;
  --wallet-border: #e9ecef;
  --wallet-hover: #f8f9fa;
  --wallet-shadow: rgba(0, 0, 0, 0.08);
  --wallet-gradient-start: #667eea;
  --wallet-gradient-end: #764ba2;
  --wallet-success: #10b981;
  --wallet-warning: #f59e0b;
  --wallet-danger: #ef4444;
  --wallet-info: #3b82f6;
}

/* Dark theme */
[data-theme="dark"], .dark-mode, body.dark-only, body[data-layout="dark-only"] {
  --wallet-bg: #1a1d29;
  --wallet-card-bg: #242837;
  --wallet-text-primary: #e4e6eb;
  --wallet-text-secondary: #b0b3b8;
  --wallet-border: #3a3f51;
  --wallet-hover: #2d3142;
  --wallet-shadow: rgba(0, 0, 0, 0.3);
}

/* === FINAL HEADER DROPDOWN OVERRIDES (always win) === */
.page-header.modern-top-header .sidebar-submenu {
  background: #ffffff !important;
  border: none !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
  list-style: none !important;
}

body.dark-only .page-header.modern-top-header .sidebar-submenu {
  background: #2a2f3f !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}

.page-header.modern-top-header .sidebar-submenu li a {
  background: transparent !important;
  padding-left: 14px !important;
  text-indent: 0 !important;
  background-image: none !important;
}

.page-header.modern-top-header .sidebar-submenu li a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Жёсткий сброс любых псевдоэлементов/маркеров (тире, буллиты и пр.) в дропдауне хедера */
.page-header.modern-top-header .sidebar-submenu li,
.page-header.modern-top-header .sidebar-submenu li a,
.page-header.modern-top-header .sidebar-submenu li * {
  list-style: none !important;
  list-style-image: none !important;
}
.page-header.modern-top-header .sidebar-submenu li::marker,
.page-header.modern-top-header .sidebar-submenu li::before,
.page-header.modern-top-header .sidebar-submenu li::after,
.page-header.modern-top-header .sidebar-submenu li a::before,
.page-header.modern-top-header .sidebar-submenu li a::after {
  content: none !important;
  display: none !important;
}

/* Pinpoint override for theme rule the user referenced (removes injected dashes) */
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li,
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li a {
  list-style: none !important;
  list-style-image: none !important;
}
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li::marker,
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li::before,
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li::after,
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li a::before,
body.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu li a::after {
  content: none !important;
  display: none !important;
}

/* Main Container */
.modern-wallet-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stats Cards Grid */
.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Stat Card */
.wallet-stat-card {
  background: var(--wallet-card-bg);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 20px var(--wallet-shadow);
  border: 1px solid var(--wallet-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wallet-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--wallet-shadow);
  border-color: var(--wallet-gradient-start);
}

.wallet-stat-card:hover::before {
  opacity: 1;
}

/* Stat Card Content */
.wallet-stat-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wallet-stat-info {
  flex: 1;
}

.wallet-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--wallet-text-secondary);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--wallet-text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wallet-stat-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--wallet-text-secondary);
}

.wallet-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wallet-gradient-start);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wallet-stat-link:hover {
  color: var(--wallet-gradient-end);
  gap: 8px;
}

.wallet-stat-link i {
  font-size: 12px;
}

/* Stat Icon */
.wallet-stat-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  color: var(--wallet-gradient-start);
  font-size: 28px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.wallet-stat-card:hover .wallet-stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

/* Progress Bar */
.wallet-progress-wrapper {
  margin-top: 16px;
}

.wallet-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--wallet-hover);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.wallet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  border-radius: 999px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.wallet-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Transactions Table Card */
.wallet-table-card {
  background: var(--wallet-card-bg);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px var(--wallet-shadow);
  border: 1px solid var(--wallet-border);
  overflow: visible;
}

.wallet-table-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--wallet-border);
}

.wallet-table-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  color: var(--wallet-gradient-start);
  font-size: 24px;
  flex-shrink: 0;
}

.wallet-table-icon i {
  display: block;
  line-height: 1;
}

.wallet-table-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--wallet-text-primary);
  margin: 0;
}

/* DataTables Override */
.wallet-table-card .dataTables_wrapper {
  color: var(--wallet-text-primary);
}

.wallet-table-card table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  color: var(--wallet-text-primary);
  width: 100% !important;
  border: none !important;
}

.wallet-table-card table.dataTable thead {
  border: none !important;
}

.wallet-table-card table.dataTable thead th {
  background: var(--wallet-hover);
  color: var(--wallet-text-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  border: none !important;
  position: sticky;
  top: 0;
  z-index: 10;
}

.wallet-table-card table.dataTable thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.wallet-table-card table.dataTable thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.wallet-table-card table.dataTable tbody tr {
  background: transparent !important; /* не задаём фону строк, работаем по ячейкам */
  transition: all 0.3s ease;
  border: none !important;
}

.wallet-table-card table.dataTable tbody tr:hover {
  background: var(--wallet-hover) !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px var(--wallet-shadow);
  border: none !important;
}

.wallet-table-card table.dataTable tbody tr:nth-child(odd) td {
  background: var(--wallet-card-bg) !important; /* базовый фон строки */
}

.wallet-table-card table.dataTable tbody tr:nth-child(even) td {
  background: var(--wallet-hover) !important;
}

.wallet-table-card table.dataTable tbody tr:hover td {
  background: var(--wallet-hover) !important;
}

/* Иконка операции в столбце "Действие" */
.wallet-op {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wallet-op-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
  color: var(--wallet-gradient-start);
  flex-shrink: 0;
}
.wallet-op-icon.success { background: rgba(16,185,129,0.15); color: #10b981; }
.wallet-op-icon.info { background: rgba(59,130,246,0.15); color: #3b82f6; }
.wallet-op-icon.warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.wallet-op-icon.danger { background: rgba(239,68,68,0.15); color: #ef4444; }
.wallet-op-text { display: inline-block; }

/* Синхронизируем фон для первого столбца с номером */
.wallet-table-card table.dataTable tbody tr:nth-child(odd) td:first-child {
  background: var(--wallet-card-bg) !important;
}
.wallet-table-card table.dataTable tbody tr:nth-child(even) td:first-child {
  background: var(--wallet-hover) !important;
}

/* Глушим возможные белые подложки внутри ячеек (ссылки/спаны/плагины) */
.wallet-table-card table.dataTable tbody td * {
  background: transparent !important;
}

/* Убираем горизонтальный скролл у responsive-обёртки */
.wallet-table-card .table-responsive {
  overflow-x: hidden;
}

/* Полностью прячем горизонтальную прокрутку, если DataTables создаёт обёртку */
.wallet-table-card .dataTables_wrapper { overflow-x: hidden; }
.wallet-table-card .dataTables_scroll { overflow: visible !important; }
.wallet-table-card .dataTables_scrollBody { overflow-x: hidden !important; scrollbar-width: none; }
.wallet-table-card .dataTables_scrollBody::-webkit-scrollbar { display: none; }

/* Убираем белую подсветку у сортируемых колонок DataTables */
.wallet-table-card table.dataTable tbody td.sorting_1,
.wallet-table-card table.dataTable tbody td.sorting_2,
.wallet-table-card table.dataTable tbody td.sorting_3 {
  background: inherit !important;
  border: none !important;
}

/* Глобальное отключение всех borders для таблицы */
.wallet-table-card table.dataTable,
.wallet-table-card table.dataTable *,
.wallet-table-card table.dataTable tbody,
.wallet-table-card table.dataTable thead,
.wallet-table-card table.dataTable tfoot,
.wallet-table-card table.dataTable tr,
.wallet-table-card table.dataTable th,
.wallet-table-card table.dataTable td {
  border: none !important;
  outline: none !important;
}

.wallet-table-card table.dataTable tbody td {
  padding: 20px;
  border: none !important; /* убираем белые обводки между строками */
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  vertical-align: middle;
  color: var(--wallet-text-primary);
}

.wallet-table-card table.dataTable tbody td:first-child {
  border-radius: 12px 0 0 12px;
  border: none !important;
  font-weight: 700;
  color: var(--wallet-text-secondary);
}

.wallet-table-card table.dataTable tbody td:last-child {
  border-radius: 0 12px 12px 0;
  border: none !important;
}

/* DataTables Controls */
.wallet-table-card .dataTables_length,
.wallet-table-card .dataTables_filter,
.wallet-table-card .dataTables_info,
.wallet-table-card .dataTables_paginate {
  color: var(--wallet-text-primary);
  margin-bottom: 16px;
}

.wallet-table-card .dataTables_info {
  padding-top: 20px;
}

.wallet-table-card .dataTables_paginate {
  padding-top: 20px;
  padding-bottom: 8px;
}

.wallet-table-card .dataTables_length select,
.wallet-table-card .dataTables_filter input {
  background: var(--wallet-hover);
  border: 1px solid var(--wallet-border);
  color: var(--wallet-text-primary);
  border-radius: 8px;
  padding: 8px 12px;
}

.wallet-table-card .dataTables_length label,
.wallet-table-card .dataTables_filter label {
  color: var(--wallet-text-primary);
  font-weight: 500;
}

/* Export Buttons */
.wallet-table-card .dt-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wallet-table-card .dt-buttons .dt-button {
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wallet-table-card .dt-buttons .dt-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Pagination (унифицировано под Bootstrap pagination разметку) */
.wallet-table-card .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
}
/* =================== ПРОСТЫЕ ВАРИАНТЫ (1-3) =================== */
/* Вариант 1: Минималистичный */
.logo-variant-1 {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
}
.logo-text-1 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo-text-1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f39c12, #e67e22);
  transition: width 0.3s ease;
}
.logo-variant-1:hover .logo-text-1::after {
  width: 100%;
}
.logo-variant-1 .logo-domain {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.logo-variant-1:hover .logo-domain {
  color: #f39c12;
}

/* Вариант 2: Разделённый */
.logo-variant-2 {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 0;
}
.logo-parts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}
.part-tpl {
  color: #fff;
  transition: all 0.3s ease;
}
.logo-variant-2:hover .part-tpl {
  color: #f39c12;
  text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}
.part-dash {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  transition: all 0.3s ease;
}
.logo-variant-2:hover .part-dash {
  letter-spacing: 8px;
  color: rgba(243, 156, 18, 0.8);
}
.part-market {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}
.logo-variant-2:hover .part-market {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-domain-2 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.logo-variant-2:hover .logo-domain-2 {
  background: rgba(243, 156, 18, 0.2);
  border-color: rgba(243, 156, 18, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Вариант 3: Вертикальный */
.logo-variant-3 {
  display: block;
  text-decoration: none;
  padding: 5px 0;
}
.logo-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.stack-top {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  transition: letter-spacing 0.3s ease;
}
.logo-variant-3:hover .stack-top {
  letter-spacing: 4px;
}
.stack-bottom {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
  margin-top: -2px;
  transition: all 0.3s ease;
}
.logo-variant-3:hover .stack-bottom {
  color: #f39c12;
  text-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
}

/* =================== АНИМИРОВАННЫЕ ВАРИАНТЫ С ГРАДИЕНТАМИ (4-6) =================== */

/* Вариант 4: Плавный переливающийся градиент */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmerEffect {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.logo-variant-4 {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
  position: relative;
}

.logo-gradient-animated {
  display: flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.gradient-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #f39c12 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s ease infinite;
  position: relative;
}

.gradient-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmerEffect 3s ease-in-out infinite;
}

.gradient-domain {
  font-size: 20px;
  font-weight: 700;
  color: #f39c12;
  text-shadow: 
    0 0 10px rgba(243, 156, 18, 0.5),
    0 0 20px rgba(243, 156, 18, 0.3);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(243, 156, 18, 0.5),
      0 0 20px rgba(243, 156, 18, 0.3);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(243, 156, 18, 0.8),
      0 0 30px rgba(243, 156, 18, 0.5),
      0 0 40px rgba(243, 156, 18, 0.3);
  }
}

.logo-variant-4:hover .gradient-text {
  animation-duration: 3s;
}

/* Вариант 5: Голографический эффект */
@keyframes holographicShift {
  0%, 100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 50% 0%;
    filter: hue-rotate(90deg);
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(180deg);
  }
  75% {
    background-position: 50% 100%;
    filter: hue-rotate(270deg);
  }
}

@keyframes rainbowGlow {
  0% {
    box-shadow: 
      0 0 5px rgba(255, 0, 150, 0.5),
      0 0 10px rgba(255, 0, 150, 0.3);
  }
  25% {
    box-shadow: 
      0 0 5px rgba(0, 255, 255, 0.5),
      0 0 10px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 0 5px rgba(255, 255, 0, 0.5),
      0 0 10px rgba(255, 255, 0, 0.3);
  }
  75% {
    box-shadow: 
      0 0 5px rgba(0, 255, 0, 0.5),
      0 0 10px rgba(0, 255, 0, 0.3);
  }
  100% {
    box-shadow: 
      0 0 5px rgba(255, 0, 150, 0.5),
      0 0 10px rgba(255, 0, 150, 0.3);
  }
}

.logo-variant-5 {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
}

.logo-holographic {
  display: flex;
  align-items: baseline;
  gap: 5px;
  position: relative;
}

.holo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(
    45deg,
    #ff0080,
    #ff8c00,
    #40e0d0,
    #7b68ee,
    #ff1493,
    #00ff00
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 8s ease-in-out infinite;
  position: relative;
}

.holo-text::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: -1;
  background: linear-gradient(
    45deg,
    rgba(255, 0, 128, 0.3),
    rgba(0, 255, 255, 0.3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.holo-domain {
  font-size: 20px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 3px 10px;
  border-radius: 15px;
  color: #fff;
  animation: rainbowGlow 4s linear infinite;
}

.logo-variant-5:hover .holo-text {
  animation-duration: 4s;
  letter-spacing: 3px;
}

/* Вариант 6: Неоновое свечение */
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px #fff,
      0 0 10px #fff,
      0 0 15px #fff,
      0 0 20px #ff00de,
      0 0 35px #ff00de,
      0 0 40px #ff00de,
      0 0 50px #ff00de,
      0 0 75px #ff00de;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

@keyframes neonGlowCyan {
  0%, 100% {
    text-shadow:
      0 0 5px #fff,
      0 0 10px #fff,
      0 0 15px #fff,
      0 0 20px #00ffff,
      0 0 35px #00ffff,
      0 0 40px #00ffff;
  }
  50% {
    text-shadow:
      0 0 2px #fff,
      0 0 5px #fff,
      0 0 8px #fff,
      0 0 10px #00ffff,
      0 0 20px #00ffff,
      0 0 25px #00ffff;
  }
}

@keyframes neonBorder {
  0%, 100% {
    box-shadow:
      0 0 5px rgba(255, 0, 222, 0.5),
      0 0 10px rgba(255, 0, 222, 0.5),
      inset 0 0 10px rgba(255, 0, 222, 0.3);
  }
  50% {
    box-shadow:
      0 0 10px rgba(255, 0, 222, 0.8),
      0 0 20px rgba(255, 0, 222, 0.8),
      inset 0 0 15px rgba(255, 0, 222, 0.5);
  }
}

.logo-variant-6 {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
}

.logo-neon {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 0, 222, 0.5);
  animation: neonBorder 2s ease-in-out infinite;
}

.neon-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  animation: neonFlicker 8s infinite;
}

.neon-separator {
  font-size: 24px;
  color: #00ffff;
  font-weight: 300;
  animation: neonGlowCyan 1.5s ease-in-out infinite;
}

.neon-domain {
  font-size: 18px;
  font-weight: 700;
  color: #00ffff;
  background: rgba(0, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  animation: neonGlowCyan 1.5s ease-in-out infinite;
}

.logo-variant-6:hover .neon-text {
  animation: neonFlicker 2s infinite;
}

.logo-variant-6:hover .logo-neon {
  animation-duration: 1s;
}
/* Empty State */
.wallet-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--wallet-text-secondary);
}

.wallet-empty-state .logo-neon {
  padding: 8px 12px;
}

.wallet-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.wallet-empty-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--wallet-text-secondary);
}

/* Responsive */
@media (max-width: 991px) {
  .wallet-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .wallet-stat-card {
    padding: 20px;
  }
  
  .wallet-stat-value {
    font-size: 28px;
  }
  
  .wallet-stat-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .wallet-table-card {
    padding: 20px;
  }
  
  .wallet-table-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .wallet-stat-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .wallet-stat-icon {
    align-self: flex-start;
  }
  
  .wallet-table-card table.dataTable tbody tr:hover {
    transform: none;
  }
  
  .modal-body {
    padding: 20px;
  }
}

/* Animation for cards entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wallet-stat-card,
.wallet-table-card {
  animation: fadeInUp 0.5s ease forwards;
}

.wallet-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.wallet-stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.wallet-stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.wallet-table-card {
  animation-delay: 0.4s;
}

/* ========================================
   SETTINGS PAGE STYLES (Modern Design)
   ======================================== */

.modern-settings-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.settings-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.settings-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-card {
  background: var(--wallet-card-bg);
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--wallet-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
}

.settings-grid-two .settings-card:nth-child(1) {
  animation-delay: 0.1s;
}

.settings-grid-two .settings-card:nth-child(2) {
  animation-delay: 0.2s;
}

.settings-header {
  background: linear-gradient(135deg, var(--wallet-gradient-start) 0%, var(--wallet-gradient-end) 100%);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.settings-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.settings-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.settings-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0;
  z-index: 1;
}

/* Header actions (правый край заголовка карточки) */
.settings-header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  z-index: 1;
}

.settings-section {
  padding: 32px;
  border-bottom: 1px solid var(--wallet-border);
}

.settings-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--wallet-text-primary);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--wallet-gradient-start);
  font-size: 20px;
}

/* Modern Input Groups */
.input-group-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.input-modern {
  background: var(--wallet-hover);
  border: 2px solid var(--wallet-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--wallet-text-primary);
  transition: all 0.3s ease;
  width: 100%;
}

.input-modern:focus {
  outline: none;
  border-color: var(--wallet-gradient-start);
  background: var(--wallet-card-bg);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-modern::placeholder {
  color: var(--wallet-text-secondary);
}

/* Modern Buttons */
.btn-modern {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-modern.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-modern.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-modern.btn-primary {
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  color: white;
}

.btn-modern.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-modern.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-modern.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-modern.btn-secondary {
  background: var(--wallet-hover);
  color: var(--wallet-text-primary);
  border: 2px solid var(--wallet-border);
}

.btn-modern.btn-secondary:hover {
  background: var(--wallet-border);
}

/* Ghost light button для градиентного заголовка */
.btn-modern.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
}

.btn-modern.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.18);
}

.btn-modern.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-modern.btn-block {
  width: 100%;
}

.btn-modern:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Help Text */
.help-text {
  display: block;
  color: var(--wallet-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

/* Alert Modern */
.alert-modern {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.alert-modern.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--wallet-text-primary);
}

/* Social Items */
.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--wallet-hover);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.social-item:hover {
  background: var(--wallet-border);
  transform: translateX(4px);
}

.social-item.linked {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.social-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.social-icon {
  font-size: 24px;
  color: var(--wallet-gradient-start);
}

.social-name {
  font-weight: 600;
  color: var(--wallet-text-primary);
}

.telegram-widget-wrapper {
  display: flex;
  align-items: center;
}

/* Responsive для настроек */
@media (max-width: 992px) {
  .settings-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modern-settings-page {
    padding: 0 0 20px 0;
  }
  
  .settings-header {
    padding: 18px 16px;
    flex-direction: column;
    text-align: center;
  }
  
  .settings-title {
    font-size: 20px;
  }
  
  .settings-section {
    padding: 20px;
  }
  
  .social-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-modern.btn-block {
    width: 100%;
  }
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ========================================
   REPLENISHMENT PAGE STYLES (Modern)
   ======================================== */
.modern-repl-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.repl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.repl-providers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.repl-provider-card-full {
  width: 100%;
}

.repl-provider-body {
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repl-provider-card {
  background: var(--wallet-card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--wallet-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repl-provider-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.repl-provider-logo img {
  max-height: 36px;
  width: auto;
}

.input-group-modern.horizontal {
  flex-direction: row;
  align-items: center;
}

.input-group-modern.horizontal .input-modern {
  flex: 1;
}

.repl-manual-card .settings-header-icon {
  background: rgba(255,255,255,0.18);
}

.repl-requisites {
  padding: 24px 32px 8px 32px;
}

.repl-req-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--wallet-hover);
  border: 1px solid var(--wallet-border);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.repl-req-label {
  color: var(--wallet-text-primary);
  font-weight: 600;
}

.repl-req-value {
  color: var(--wallet-text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.repl-copy-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--wallet-border);
  background: var(--wallet-card-bg);
  color: var(--wallet-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.repl-copy-btn:hover {
  background: var(--wallet-hover);
}

.repl-form {
  padding: 0 32px 32px 32px;
}

.repl-submit {
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .repl-grid {
    grid-template-columns: 1fr;
  }
}

  /* ========================================
     PURCHASES PAGE STYLES (Modern)
     ======================================== */
  .modern-purchases-page {
    padding: 0 0 40px 0;
    max-width: 1400px;
    margin: 0 auto;
  }

  .purchases-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
  }

  .purchases-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .purchases-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .stat-item {
    text-align: center;
    padding: 20px;
    background: var(--wallet-hover);
    border-radius: 12px;
    border: 1px solid var(--wallet-border);
  }

  .stat-label {
    color: var(--wallet-text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
  }

  .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--wallet-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Purchase Card */
  .purchase-card {
    background: var(--wallet-card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--wallet-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .purchase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--wallet-shadow-hover);
  }

  .purchase-blocked {
    border: 2px solid #ff4444;
  }

  .purchase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
    color: white;
  }

  .purchase-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .purchase-id {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
  }

  .purchase-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .purchase-status {
    display: flex;
    align-items: center;
  }

  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
  }

  .status-blocked {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
  }

  .purchase-actions {
    display: flex;
    gap: 8px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  .purchase-details {
    padding: 24px;
  }

  .purchase-data-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  .purchase-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .purchase-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-secondary {
    background: var(--wallet-card-bg);
    color: var(--wallet-text-secondary);
    border: 2px solid var(--wallet-border);
  }

  .btn-secondary:hover:not(:disabled) {
    background: var(--wallet-hover);
    border-color: var(--wallet-gradient-start);
    color: var(--wallet-text-primary);
  }

  .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Responsive */
  @media (max-width: 1200px) {
    .purchases-grid {
      grid-template-columns: 1fr;
    }
  
    .purchases-sidebar {
      order: -1;
    }
  }

  @media (max-width: 768px) {
    .purchase-header {
      flex-wrap: wrap;
      gap: 12px;
    }
  
    .purchase-info {
      flex-basis: 100%;
    }
  
    .purchase-status {
      flex: 1;
    }
  
    .purchase-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Pagination on purchases page */
  .modern-purchases-page .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .modern-purchases-page .page-item .page-link {
    background: var(--wallet-card-bg);
    color: var(--wallet-text-primary);
    border: 2px solid var(--wallet-border);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 42px;
    text-align: center;
    font-weight: 600;
    transition: all 0.25s ease;
  }

  .modern-purchases-page .page-item .page-link:hover {
    background: var(--wallet-hover);
    color: var(--wallet-gradient-start);
    border-color: var(--wallet-gradient-start);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  }

  .modern-purchases-page .page-item.active .page-link {
    background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
  }

  .modern-purchases-page .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* ========================================
     LOGIN HISTORY PAGE STYLES (Modern)
     ======================================== */
  .modern-history-page {
    max-width: 1400px;
    margin: 0 auto 40px auto;
  }

.history-summary {
  margin-top: 8px;
  background: linear-gradient(135deg, #8a2be2, #6a5acd);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}  .history-summary .divider {
    opacity: 0.8;
  }

.history-table-wrap {
  margin-top: 16px;
  background: var(--wallet-card-bg);
  border: 1px solid var(--wallet-border);
  border-radius: 12px;
  overflow: hidden;
}.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.history-table thead th {
  background: var(--wallet-hover);
  color: var(--wallet-text-secondary);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wallet-border);
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: center;
}
.history-table tbody td {
  padding: 12px 14px;
  color: var(--wallet-text-primary);
  vertical-align: middle;
  text-align: center;
}
  .history-table tbody tr.history-row {
    background: var(--wallet-hover);
    box-shadow: 0 8px 24px var(--wallet-shadow);
    border: 1px solid var(--wallet-border);
    border-radius: 12px;
  }

  .history-table tbody tr.history-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px var(--wallet-shadow-hover);
    border-color: var(--wallet-gradient-start);
  }

  /* Ячейки */
.history-table tbody tr .ip-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
}

.history-table tbody tr .time-cell {
  vertical-align: middle;
  min-height: 48px;
}

.history-table tbody tr .time-cell {
  vertical-align: middle;
}

.ip-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--wallet-card-bg);
  border: 1px solid var(--wallet-border);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

.time-text {
  color: var(--wallet-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}  /* Кнопка копирования в строке */
  .btn-modern.btn-ghost {
    background: transparent;
    color: var(--wallet-text-secondary);
    border: 2px solid var(--wallet-border);
  }

  .btn-modern.btn-ghost:hover {
    color: var(--wallet-gradient-start);
    border-color: var(--wallet-gradient-start);
    background: var(--wallet-hover);
  }

/* компактная кнопка копирования */
.ip-copy.btn-modern {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  min-width: 36px;
  height: 36px;
}.history-pagination .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 24px;
}  .history-pagination .page-item .page-link {
    background: var(--wallet-card-bg);
    color: var(--wallet-text-primary);
    border: 2px solid var(--wallet-border);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 42px;
    text-align: center;
    font-weight: 600;
    transition: all 0.25s ease;
  }

  .history-pagination .page-item .page-link:hover {
    background: var(--wallet-hover);
    color: var(--wallet-gradient-start);
    border-color: var(--wallet-gradient-start);
    transform: translateY(-2px);
  }

  .history-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
  }

  .history-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
  }
/* Custom File Upload UI */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wallet-hover);
  border: 2px solid var(--wallet-border);
  border-radius: 12px;
  padding: 12px;
}

.file-upload input[type="file"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-upload label.btn-modern {
  margin: 0;
  white-space: nowrap;
}

.file-upload-name {
  color: var(--wallet-text-secondary);
  font-size: 14px;
}

.file-upload:hover {
  border-color: var(--wallet-gradient-start);
}

/* ========================================
  NOTIFICATIONS PAGE STYLES (Modern)
  ======================================== */
.modern-noty-page {
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.noty-list {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.noty-card {
  background: var(--wallet-card-bg);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 2px solid var(--wallet-border);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px var(--wallet-shadow);
}

.noty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--wallet-shadow-hover);
}

/* Непрочитанные (primary) */
.noty-card.noty-primary {
  border-left: 4px solid var(--wallet-gradient-start);
  background: linear-gradient(to right, rgba(102, 126, 234, 0.08), var(--wallet-card-bg));
}

/* Прочитанные (dark) */
.noty-card.noty-dark {
  opacity: 0.75;
  border-left: 4px solid var(--wallet-text-secondary);
}

.noty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.noty-card.noty-dark .noty-icon {
  background: var(--wallet-text-secondary);
}

.noty-content {
  flex: 1;
  min-width: 0;
}

.noty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--wallet-text-primary);
  margin: 0 0 8px 0;
}

.noty-message {
  font-size: 15px;
  color: var(--wallet-text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.noty-date {
  font-size: 13px;
  color: var(--wallet-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

.noty-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid var(--wallet-border);
  color: var(--wallet-text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.noty-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
  transform: scale(1.1);
}

/* Empty state */
.noty-list center {
  padding: 60px 20px;
  color: var(--wallet-text-secondary);
  font-size: 16px;
}

@media (max-width: 768px) {
  .noty-card {
    padding: 16px 18px;
    gap: 12px;
  }
  
  .noty-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .noty-title {
    font-size: 16px;
  }
  
  .noty-message {
    font-size: 14px;
  }
}

/* ========================================
  PRODUCT PAGE STYLES (Modern)
  ======================================== */
.product-modern-page {
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.product-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  row-gap: 16px;
  align-items: start;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-details-card,
.product-reviews-card {
  grid-column: 1 / -1; /* во всю ширину */
}

/* Gallery */
.product-gallery {
  padding: 20px;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 400px;
  background: var(--wallet-hover);
  border: 2px solid var(--wallet-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.product-gallery-main .pg-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.pg-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--wallet-border);
  background: var(--wallet-card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pg-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--wallet-gradient-start);
}

.pg-thumb.active {
  border-color: var(--wallet-gradient-start);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* Custom scrollbar for thumbs */
.product-thumbs::-webkit-scrollbar {
  width: 6px;
}

.product-thumbs::-webkit-scrollbar-track {
  background: var(--wallet-hover);
  border-radius: 10px;
}

.product-thumbs::-webkit-scrollbar-thumb {
  background: var(--wallet-gradient-start);
  border-radius: 10px;
}

.product-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--wallet-gradient-end);
}

/* Buy card */
.product-buy-card .settings-section {
  padding-top: 24px;
}

.product-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-price-line .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--wallet-text-primary);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--wallet-text-secondary);
}

.product-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-perks i {
  color: var(--wallet-gradient-start);
}

/* Details */
.product-desc {
  color: var(--wallet-text-primary);
  line-height: 1.7;
}

/* Meta */
.product-meta-card .settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--wallet-hover);
  border: 1px solid var(--wallet-border);
  border-radius: 12px;
}

.meta-row div:first-child {
  color: var(--wallet-text-secondary);
  font-weight: 600;
}

/* Reviews */
.product-reviews-card .social-chat {
  background: var(--wallet-hover);
  border: 1px solid var(--wallet-border);
  border-radius: 12px;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
}

.review-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.select-stars {
  max-width: 160px;
}

/* Responsive */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-gallery { padding: 18px; }
  .product-gallery-main { border-radius: 12px; }
  .product-price-line .price { font-size: 24px; }
}

/* ========================================
  ORDER PAGE STYLES (Modern)
  ======================================== */
.modern-order-page {
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Order description */
.order-description {
  color: var(--wallet-text-primary);
  line-height: 1.7;
}

/* Price rows */
.order-price-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--wallet-hover);
  border: 1px solid var(--wallet-border);
  border-radius: 12px;
}

.order-price-row .label {
  color: var(--wallet-text-secondary);
  font-weight: 600;
}

.order-price-row .value {
  color: var(--wallet-text-primary);
  font-weight: 700;
  font-size: 16px;
}

.order-price-row.discount .value {
  color: var(--wallet-success);
}

.order-price-row.total {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: var(--wallet-gradient-start);
}

.order-price-row.total .label {
  font-size: 18px;
  color: var(--wallet-text-primary);
}

.order-price-row.total .value {
  font-size: 24px;
  color: var(--wallet-gradient-start);
}

/* Payment method */
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--wallet-hover);
  border: 2px solid var(--wallet-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: var(--wallet-gradient-start);
  background: var(--wallet-card-bg);
}

.payment-radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-label {
  color: var(--wallet-text-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modern-order-page {
    padding: 0;
  }
  
  .order-price-row .label,
  .order-price-row .value {
    font-size: 14px;
  }
  
  .order-price-row.total .label {
    font-size: 16px;
  }
  
  .order-price-row.total .value {
    font-size: 20px;
  }
}

/* ========================================
  FAQ PAGE STYLES (Modern)
  ======================================== */
.modern-faq-page {
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

/* Header info cards */
.faq-header-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.faq-info-card {
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  border: none;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.faq-info-content {
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  color: white;
}

.faq-info-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.faq-info-icon.support {
  background: rgba(255, 255, 255, 0.25);
}

.faq-info-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
}

.faq-info-text p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  color: white;
}

/* Content grid */
.faq-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.faq-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FAQ Group Card */
.faq-group-card .settings-section {
  padding: 0;
  border: none;
}

.faq-accordion {
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--wallet-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--wallet-text-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--wallet-hover);
}

.faq-question i.fa-question-circle {
  color: var(--wallet-gradient-start);
  font-size: 18px;
  flex-shrink: 0;
}

.faq-question span {
  flex: 1;
}

.faq-arrow {
  font-size: 14px;
  color: var(--wallet-text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer-wrapper {
  background: var(--wallet-hover);
}

.faq-answer {
  padding: 20px 24px 24px 56px;
  color: var(--wallet-text-primary);
  line-height: 1.7;
}

/* Sidebar actions */
.faq-actions-card .settings-section:last-child {
  padding-bottom: 24px;
}

.faq-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--wallet-hover);
  border: 2px solid var(--wallet-border);
  border-radius: 12px;
  color: var(--wallet-text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.faq-nav-item:hover {
  background: var(--wallet-card-bg);
  border-color: var(--wallet-gradient-start);
  color: var(--wallet-gradient-start);
  transform: translateX(4px);
}

.faq-nav-item i {
  font-size: 18px;
  color: var(--wallet-gradient-start);
}

/* Responsive */
@media (max-width: 1200px) {
  .faq-content-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .faq-header-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .faq-info-content {
    padding: 24px;
  }
  
  .faq-info-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .faq-info-text h3 {
    font-size: 18px;
  }
  
  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }
  
  .faq-answer {
    padding: 16px 18px 20px 48px;
    font-size: 14px;
  }
}



/* Lightbox for product gallery */
.pg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.pg-lightbox.open { display: flex; }

.pg-lightbox .pg-zoom-img {
  max-width: 90vw;
  max-height: 90vh;
  user-select: none;
  will-change: transform;
  transition: transform 0.05s linear;
}

.pg-lightbox .pg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pg-lightbox .pg-close:hover { background: rgba(255,255,255,0.2); }

.pg-lightbox .pg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pg-lightbox .pg-nav-btn:hover { background: rgba(255,255,255,0.2); }

.pg-lightbox .pg-prev { left: 20px; }
.pg-lightbox .pg-next { right: 20px; }

body.no-scroll { overflow: hidden; }


/**=====================
     News Page Styles
==========================**/

.modern-news-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* Список новостей */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Карточка новости */
.news-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--wallet-border);
  transition: background 0.2s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--wallet-hover);
}

/* Изображение новости */
.news-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--wallet-hover);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

/* Контент новости */
.news-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--wallet-text-primary);
  line-height: 1.4;
}

.news-title a {
  color: var(--wallet-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: var(--wallet-gradient-start);
}

.news-excerpt {
  color: var(--wallet-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Мета информация */
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.news-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wallet-text-secondary);
  font-size: 13px;
}

.stat-item i {
  font-size: 14px;
}

.stat-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  color: var(--wallet-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.stat-btn:hover {
  background: var(--wallet-hover);
  color: var(--wallet-gradient-start);
}

.stat-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--wallet-text-secondary);
}

.news-date {
  color: var(--wallet-text-secondary);
  font-size: 13px;
}

/* Пагинация */
.news-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.news-pagination .pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination .page-item {
  display: inline-block;
}

.news-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--wallet-card-bg);
  border: 1px solid var(--wallet-border);
  border-radius: 8px;
  color: var(--wallet-text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.news-pagination .page-link:hover {
  background: var(--wallet-hover);
  border-color: var(--wallet-gradient-start);
  color: var(--wallet-gradient-start);
}

.news-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  border-color: transparent;
  color: #fff;
}

/* Сайдбар с отзывами */
.news-sidebar .settings-card {
  position: sticky;
  top: 24px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.review-item {
  padding: 16px;
  background: var(--wallet-hover);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--wallet-shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--wallet-border);
}

.review-author {
  flex: 1;
}

.review-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--wallet-text-primary);
  margin: 0;
}

.review-name a {
  color: var(--wallet-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.review-name a:hover {
  color: var(--wallet-gradient-start);
}

.review-date {
  font-size: 12px;
  color: var(--wallet-text-secondary);
}

.review-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--wallet-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-rating {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.review-rating i {
  font-size: 12px;
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-sidebar .settings-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  
  .news-image {
    aspect-ratio: 2/1;
  }
  
  .modern-news-page {
    padding: 0 0 24px 0;
  }
}


/**=====================
     News Detail Page Styles
==========================**/

.modern-news-detail-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.news-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

/* Заголовок новости */
.news-detail-header {
  padding: 28px 32px 22px;
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.news-detail-header .news-detail-title {
  color: #fff;
}

.news-detail-header .meta-item,
.news-detail-header .meta-item i {
  color: rgba(255, 255, 255, 0.9);
}

.news-detail-header .meta-item a {
  color: #fff;
}

.news-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--wallet-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.news-detail-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wallet-text-secondary);
  font-size: 14px;
}

.meta-item i {
  font-size: 14px;
  color: var(--wallet-text-secondary);
}

.meta-item a {
  color: var(--wallet-gradient-start);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.meta-item a:hover {
  color: var(--wallet-gradient-end);
}

/* Изображение новости */
.news-detail-image {
  padding: 20px 32px;
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--wallet-hover);
}

/* Контент новости */
.news-detail-content {
  padding: 32px;
  color: var(--wallet-text-primary);
  font-size: 16px;
  line-height: 1.8;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--wallet-text-primary);
}

.news-detail-content h1 { font-size: 28px; }
.news-detail-content h2 { font-size: 24px; }
.news-detail-content h3 { font-size: 20px; }

.news-detail-content p {
  margin-bottom: 16px;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

.news-detail-content ul,
.news-detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.news-detail-content li {
  margin-bottom: 8px;
}

.news-detail-content a {
  color: var(--wallet-gradient-start);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.news-detail-content a:hover {
  border-bottom-color: var(--wallet-gradient-start);
}

.news-detail-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--wallet-hover);
  border-left: 4px solid var(--wallet-gradient-start);
  border-radius: 8px;
}

.news-detail-content code {
  padding: 2px 6px;
  background: var(--wallet-hover);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.news-detail-content pre {
  padding: 20px;
  background: var(--wallet-hover);
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.news-detail-content pre code {
  padding: 0;
  background: none;
}

/* Сайдбар информации */
.news-detail-sidebar .settings-card {
  position: sticky;
  top: 24px;
}

.news-detail-sidebar .settings-card:not(:last-child) {
  margin-bottom: 24px;
}

.news-detail-info {
  padding: 20px;
}

.info-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--wallet-border);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-item:first-child {
  padding-top: 0;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wallet-text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-label i {
  font-size: 14px;
}

.info-value {
  font-size: 15px;
  color: var(--wallet-text-primary);
  font-weight: 500;
}

.info-value a {
  color: var(--wallet-gradient-start);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-value a:hover {
  color: var(--wallet-gradient-end);
}

/* Превью изображения в сайдбаре */
.news-detail-sidebar-image {
  padding: 0;
  overflow: hidden;
}

.news-detail-sidebar-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .news-detail-sidebar .settings-card {
    position: static;
  }
  
  .news-detail-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: 24px;
  }
  
  .news-detail-header {
    padding: 24px 20px 20px;
  }
  
  .news-detail-content {
    padding: 24px 20px;
  }
  
  .news-detail-image {
    padding: 16px 20px;
  }
  
  .news-detail-image img {
    max-height: 360px;
  }
  
  .news-detail-sidebar {
    grid-template-columns: 1fr;
  }
  
  .modern-news-detail-page {
    padding: 0 0 24px 0;
  }
}


/**=====================
     Users Page Styles
==========================**/

.modern-users-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

/**=====================
     Home Page Styles
==========================**/

.modern-home-page {
  padding: 0 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.home-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.home-sidebar .settings-card {
  position: sticky;
  top: 24px;
}

.home-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.home-ads { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.home-place img { width: 100%; height: auto; display: block; border-radius: 0 0 12px 12px; }

/* Категории */
.home-categories-toggle { display: none; }

.home-categories { padding: 8px 0; }
.home-category-list { list-style: none; padding: 0; margin: 0; }
.home-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.home-category-item:hover { background: var(--wallet-hover); }
.home-category-item.active { border-left-color: var(--wallet-gradient-start); background: var(--wallet-hover); }
.home-category-item .icon { width: 22px; height: 22px; object-fit: contain; }
.home-category-item span { font-size: 14px; color: var(--wallet-text-primary); }

/* Основной контент */
.home-products { padding: 12px; }
.home-pagination { margin-top: 24px; display: flex; justify-content: center; }

/* Пагинация на главной (в том же стиле, что и новости) */
.home-pagination .pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-pagination .page-item { display: inline-block; }

.home-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--wallet-card-bg);
  border: 1px solid var(--wallet-border);
  border-radius: 8px;
  color: var(--wallet-text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.home-pagination .page-link:hover {
  background: var(--wallet-hover);
  border-color: var(--wallet-gradient-start);
  color: var(--wallet-gradient-start);
}

.home-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  border-color: transparent;
  color: #fff;
}

/* Сетка товаров */
.home-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Нейтрализуем старые bootstrap-колонки внутри grid */
.home-products > [class^="col-"],
.home-products > [class*=" col-"] {
  display: contents;
}

/* Карточка товара */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--wallet-card-bg);
  border: 1px solid var(--wallet-border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--wallet-shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px var(--wallet-shadow); border-color: rgba(102,126,234,0.35); }

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--wallet-hover);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-card-category {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--cat-bg, var(--wallet-hover));
  color: var(--cat-color, var(--wallet-text-primary));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.product-card-category img { width: 18px; height: 18px; object-fit: contain; }

.product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.product-card-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--wallet-text-primary); }
.product-card-title a { color: var(--wallet-text-primary); text-decoration: none; }
.product-card-title a:hover { color: var(--wallet-gradient-start); }
.product-card-desc { margin: 0; font-size: 13px; color: var(--wallet-text-secondary); line-height: 1.6; max-height: 3.2em; overflow: hidden; }

.product-card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card-price { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--wallet-text-primary); }
.product-card-price del { color: var(--wallet-text-secondary); font-weight: 500; }

.product-card-actions { display: flex; gap: 8px; }

.product-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Скидка бэйдж из старого шаблона внутри новой карточки */
.product-card-image .ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto; /* на всякий случай переопределяем возможные базовые стили */
  background: linear-gradient(135deg, var(--wallet-danger), #b91c1c);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto; /* не растягиваемся на всю ширину */
  max-width: calc(100% - 24px);
  white-space: nowrap;
  text-align: center;
}

/* Виджет продажи */
.home-sales-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.home-sale-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-sale-link { color: var(--wallet-text-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.home-sale-link:hover { color: var(--wallet-gradient-start); }
.home-sale-time { font-size: 12px; color: var(--wallet-text-secondary); }

/* Статистика */
.home-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-stat-item { display: flex; align-items: center; gap: 12px; background: var(--wallet-hover); border-radius: 12px; padding: 12px; }
.home-stat-item i { font-size: 18px; color: var(--wallet-gradient-start); }
.home-stat-content { display: flex; flex-direction: column; }
.home-stat-value { font-weight: 700; color: var(--wallet-text-primary); }
.home-stat-label { font-size: 12px; color: var(--wallet-text-secondary); }

@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-sidebar .settings-card { position: static; }
  .home-categories-toggle { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 768px) {
  .modern-home-page { padding: 0 0 24px 0; }
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.user-card {
  position: relative;
  display: block;
  background: var(--wallet-card-bg);
  border: 1px solid var(--wallet-border);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--wallet-shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--wallet-shadow);
  border-color: rgba(102, 126, 234, 0.35);
}

.user-cover {
  position: relative;
  height: 140px;
  background: var(--wallet-hover);
}

.user-cover.no-image {
  background: linear-gradient(135deg, var(--wallet-gradient-start), var(--wallet-gradient-end));
}

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

.user-avatar {
  position: absolute;
  top: 100px;
  left: 16px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px var(--wallet-shadow);
  overflow: hidden;
}

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

.user-body {
  padding: 56px 16px 14px 16px;
}

.user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--wallet-text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 13px;
  color: var(--wallet-text-secondary);
  margin-bottom: 12px;
}

.user-verified {
  color: var(--wallet-info);
  margin-left: 6px;
  font-size: 14px;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.user-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--wallet-text-secondary);
}

.users-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .modern-users-page { padding: 0 0 24px 0; }
  .user-avatar { top: 96px; left: 14px; width: 64px; height: 64px; }
  .user-body { padding-top: 52px; }
}

/* =====================
   Modern Ad Banners
   (современные рекламные блоки)
====================== */
.ad-banner-modern {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 20px;
  height: 140px;
}

.ad-banner-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ad-banner-modern .ad-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.ad-banner-modern .ad-image {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.ad-banner-modern:hover .ad-image {
  transform: scale(1.05);
}

.ad-banner-modern .ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.ad-banner-modern:hover .ad-overlay {
  opacity: 1;
}

.ad-banner-modern .ad-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-only .ad-banner-modern .ad-badge {
  background: rgba(42, 47, 63, 0.95);
  color: #e8eaf0;
}

.ad-banner-modern .ad-info {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-banner-modern .ad-info:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-banner-modern .ad-info i {
  color: #667eea;
  font-size: 14px;
}

body.dark-only .ad-banner-modern .ad-info {
  background: rgba(42, 47, 63, 0.9);
}

body.dark-only .ad-banner-modern .ad-info:hover {
  background: #2a2f3f;
}

body.dark-only .ad-banner-modern .ad-info i {
  color: #8b9eff;
}

/* Placeholder для свободных мест */
.ad-banner-modern.ad-placeholder {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px dashed rgba(102, 126, 234, 0.3);
  box-shadow: none;
}

body.dark-only .ad-banner-modern.ad-placeholder {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.ad-banner-modern.ad-placeholder:hover {
  border-color: rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.ad-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #667eea;
  text-align: center;
  padding: 20px;
}

body.dark-only .ad-placeholder-content {
  color: #8b9eff;
}

.ad-placeholder-content i {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.ad-banner-modern.ad-placeholder:hover .ad-placeholder-content i {
  opacity: 1;
  transform: scale(1.1);
}

.ad-placeholder-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: inherit;
}

.ad-placeholder-content p {
  font-size: 14px;
  opacity: 0.8;
  color: inherit;
}

/* Адаптивность для рекламных блоков */
@media (max-width: 768px) {
  .ad-banner-modern {
    height: 120px;
    margin-top: 16px;
  }
  
  .ad-banner-modern .ad-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .ad-placeholder-content h4 {
    font-size: 16px;
  }
  
  .ad-placeholder-content p {
    font-size: 13px;
  }
}

/* =================== MODERN FOOTER =================== */
.modern-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  position: relative;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0.6;
}

.modern-footer .container {
  padding-top: 22px;
  padding-bottom: 28px;
}

.modern-footer .footer-social {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
}

body:not(.dark-only) .modern-footer .footer-social {
  border-bottom-color: rgba(0,0,0,0.08);
}

.modern-footer .footer-social span {
  color: var(--wallet-text-secondary, rgba(255,255,255,0.7));
  font-weight: 500;
}

.modern-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  transition: all 0.2s ease;
}

.modern-footer .social-links a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(102,126,234,0.25);
}

.modern-footer .footer-content {
  padding-top: 24px;
}

.modern-footer h6 {
  color: #eef1ff;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-footer h6 .fa-gem {
  color: #ffd166;
}

.modern-footer p,
.modern-footer a {
  color: rgba(255,255,255,0.8);
}

body:not(.dark-only) .modern-footer p,
body:not(.dark-only) .modern-footer a {
  color: rgba(32, 49, 76, 0.85);
}

.modern-footer a.text-reset,
.modern-footer a {
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.modern-footer a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.modern-footer .row .mb-4 p { margin-bottom: 10px; }

/* Контакты */
.modern-footer .fa-envelope,
.modern-footer .fa-phone { color: #8b9bff; }

/* Адаптив */
@media (max-width: 991px) {
  .modern-footer .footer-social .me-5 { display: none !important; }
  .modern-footer .social-links a { margin-right: 8px; }
}

@media (max-width: 576px) {
  .modern-footer .container { padding-left: 18px; padding-right: 18px; }
}

/* Нижняя полоса футера: опущена ниже, с мягким градиентом */
.modern-footer .footer-bottom {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  background: linear-gradient(135deg, rgba(102,126,234,0.14) 0%, rgba(118,75,162,0.14) 100%);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

body:not(.dark-only) .modern-footer .footer-bottom {
  border-top-color: rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(102,126,234,0.10) 0%, rgba(118,75,162,0.10) 100%);
}

.modern-footer .payments-icons i {
  font-size: 36px;
  color: rgba(255,255,255,0.85);
  margin: 0 8px;
  transition: color .2s ease, transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.modern-footer .payments-icons i:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
}

.modern-footer .legal-links a {
  color: rgba(255,255,255,0.75);
}

.modern-footer .legal-links a:hover { color: #ffffff; }

@media (max-width: 991px) {
  .modern-footer .footer-bottom { text-align: center; gap: 10px; }
}

/* Light theme overrides for footer */
body:not(.dark-only) .modern-footer {
  background: #ffffff;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.04) inset;
}

body:not(.dark-only) .modern-footer h6 {
  color: #2c3e50;
}

body:not(.dark-only) .modern-footer .social-links a {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.08);
  color: #2c3e50 !important;
}

body:not(.dark-only) .modern-footer .social-links a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff !important;
}

body:not(.dark-only) .modern-footer .payments-icons i {
  color: rgba(32,49,76,0.85);
  filter: none;
}

body:not(.dark-only) .modern-footer .payments-icons i:hover {
  color: #2b3d61;
}

body:not(.dark-only) .modern-footer .footer-bottom {
  background: linear-gradient(135deg, rgba(102,126,234,0.06) 0%, rgba(118,75,162,0.06) 100%);
  border-top-color: rgba(0,0,0,0.06);
}