@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
  font-family: 'Material Icons Outlined';
  src: url('/files/icon/MaterialIconsOutlined-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.material-symbols-outlined {
  font-family: 'Material Icons Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  font-size: 24px;  /* Размер иконки */
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}


@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}


html {
    font-size: 75%;
    overflow-x: hidden;
}

body {
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif !important;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: #f7f7f8;
}


.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


body.full-scale {
    zoom: 0.952;
}

html.full-scale {
    font-size: 101.25%;
}


body.login-scale {
    zoom: 0.882;
}

html.login-scale {
    font-size: 93.75%;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.mr-l15 {
    margin-left: 15px;
}

.pd-20px {
    padding-top: 20px;
    padding-bottom: 20px;
}

.page-pa-text {
    color: #000 !important;
    background-color: #fff !important;
}

.text-left {
    text-align: left !important;
}

.captcha {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
    width: 100%;
    height: auto; /* Автоматическая высота по пропорциям */
    min-height: calc(0.9rem * 1.5 + 0.6rem * 2 + 2px); /* Минимум как у input */
    max-height: 80px; /* Максимальная высота */
    object-fit: cover; /* Заполнить весь блок */
}

/* Стили для Toast уведомлений */
.toast {
    border: 2px solid #2c3e50 !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
    background-color: transparent !important;
}

.toast .toast-header {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    border-bottom: none !important;
    padding: 1rem 1.5rem;
}

.toast .toast-header strong {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
}

.toast .toast-header .btn-close {
    filter: brightness(0) invert(1);
}

.toast .toast-body {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    padding: 1.25rem;
}

.toasticon {
    padding-right: 10px;
    font-size: 1.2rem;
    color: #ffffff !important;
}

.toasticon.fa-circle-info {
    color: #ffffff !important;
}

.toasticon.fa-circle-exclamation,
.toasticon.fa-hexagon-exclamation {
    color: #ffffff !important;
}

.toasticon.fa-square-check {
    color: #ffffff !important;
}



.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0 !important;
    width: 178px !important;
    max-width: 178px !important;
    background: linear-gradient(180deg, #28456a 0%, #2c3e50 100%) !important; /* Градиент от темно-синего к более темному */
    box-shadow: none !important; /* Убираем тень для целостного вида */
    border-right: none !important; /* Убираем правую границу */
    /*overflow-y: auto !important;*/
    /*overflow-x: hidden !important;*/
    display: flex;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link, .ccdropdown .dropdown-item {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active, .ccdropdown .dropdown-item.active {
    color: #2470dc !important;
    background: none;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.navbar-brand {
    padding-top: .0rem;
    padding-bottom: .0rem;
    font-size: 1rem;
}

.nav-money {
    padding-right: 0px;
}

@media (max-width: 768px) {
    .navbar-brand {
        background-color: none;
        box-shadow: none;
    }

    .nav-stats {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-money {
        padding-left: 0px;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .navbar-brand {
        background-color: rgba(0, 0, 0, .35);
        background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
        box-shadow: inset -1px 0 0 rgba(0, 0, 0, .35);
    }

    .nav-stats {
        padding: 0px;
    }
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.page-item.active .page-link {
    color: #fff !important;
    background-color: #1c1f23 !important;
    border-color: #1a1e21 !important;
}

.page-link {
    color: #1a1e21;
}

.page-link:hover {
    color: #1a1e21;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 1000;
    overflow: visible;
    margin: auto;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@-webkit-keyframes spinner-border {
    to {
        -webkit-transform: rotate(1turn);
        transform: rotate(1turn)
    }
}

@keyframes spinner-border {
    to {
        -webkit-transform: rotate(1turn);
        transform: rotate(1turn)
    }
}

.spinner-border {
    position: fixed;
    z-index: 999;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: inline-block;
    width: 5rem;
    height: 5rem;
    vertical-align: text-bottom;
    border: 0.45em ridge #0d6efd;
    border-right: 0.45em solid transparent;
    border-left: 0.45em solid transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}

.pd0 {
    padding: 0px !important;
}

.balance-link {
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.addbalance {
    font-size: 1.5rem;
    position: static;
}

.pd-0 {
    padding: 0 !important;
}

.h270 {
    max-height: 270px;
}

.carousel-news {
    max-height: 270px;
    width: 100%;
    overflow: hidden;
}

.h40-px {
    height: 40px;
}

.hrate {
    font-size: 1rem;
}

.txt-Gold {
    color: #FFD700;
}

.txt-Platinum {
    color: #C0C0C0;
}

.txt-Infinite {
    color: #228B22;
}

.btn-mrg {
    margin-right: 0.25rem;
    margin-left: 0.25rem;
}

.mr-10 {
    margin-right: 10px;
}

code.hacker {
    padding: 0.25rem 0.75rem;
    color: #4fff4f;
    background-color: #111111;
    display: block;
    width: fit-content;
}

code.sh::before {
    content: "$ ";
}

.copydiv {
    cursor: pointer;
}

.sidebar .nav-item .nav-link {
    color: #FFFFFF !important; /* Белый текст */
    white-space: nowrap;
    text-align: left !important;
    padding: 0.6rem 1rem !important;
    font-size: 1.05rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    border-radius: 0.5rem !important; /* Скругленные края */
    margin: 0.25rem 0.5rem !important; /* Отступы от краев */
    font-weight: 600 !important;
}

.sidebar .nav-link.active {
    color: #FFFFFF !important; /* Белый текст для активного */
    background-color: #356CB1 !important; /* Цвет выделения */
    border-radius: 0.5rem !important; /* Скругленные края */
    margin: 0.25rem 0.5rem !important; /* Отступы от краев */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important; /* Легкая тень */
    transform: translateX(2px); /* Небольшое смещение */
}

.sidebar .nav-link {
    font-size: 1.05rem !important;
    vertical-align: middle;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem !important; /* Скругленные края */
    margin: 0.25rem 0.5rem !important; /* Отступы от краев */
    transition: all 0.2s ease-in-out;
    font-weight: 600 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Иконки в меню */
.sidebar .nav-link i {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
    width: 1.2rem !important;
    text-align: center !important;
}

/* Dropdown меню */
.sidebar .ccdropdown .dropdown-menu {
    position: absolute;
    left: 178px;
    top: 0;
    margin: 0;
    background-color: #2c3e50 !important; /* Темный цвет, соответствует низу градиента sidebar */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    border-radius: 0.375rem;
}

.sidebar .ccdropdown .dropdown-item {
    color: #FFFFFF !important; /* Белый текст */
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem !important;
    margin: 0.15rem 0.25rem !important;
}

.sidebar .ccdropdown .dropdown-item:hover {
    background-color: #356CB1 !important; /* Цвет выделения */
    color: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(2px);
}

.sidebar .ccdropdown .dropdown-item i {
    margin-right: 0.75rem;
    width: 1.2rem;
    text-align: center;
}

.sidebar .ccdropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
    margin: 0.25rem 0;
}

/* Dropdown toggle стрелка */
.sidebar .dropdown-toggle::after {
    margin-left: auto;
}

.nav-link {
    display: block;
    transition: color .08s ease-in-out, background-color .08s ease-in-out, border-color .08s ease-in-out;
}

.sidebar .nav-item {
    margin-bottom: 0 !important; /* Без отступов */
}

/* Контейнер для навигации */
.sidebar .position-sticky {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
}

/* Логотип и бренд вверху sidebar */
.sidebar-brand {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #2c3e50 !important; /* Темный текст на белом фоне */
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important; /* Black weight */
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    background-color: #ffffff !important; /* Белый фон для области логотипа */
}

.sidebar-brand img {
    display: block;
    margin: 0 auto 0.5rem auto;
    max-width: 80px;
    transform: scale(1.2);
}

/* Группировка меню */
.sidebar .nav.flex-column {
    flex: 1; /* Занимает все доступное пространство */
    padding-top: 1.25rem; /* Выравнивание с метриками */
}

ul.nav li.nav-item {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main.nicebg {
    background: #f7f7f8 !important;
    margin-left: 100px !important; /* Отступ от sidebar */
    /*margin-top: 50px !important; !* Отступ от fixed header *!*/
    width: calc(100% - 110px) !important; /* Ширина минус sidebar */
    min-height: calc(100vh - 70px); /* Высота экрана минус header */
    box-sizing: border-box;
}

/* Dashboard Metrics Cards - современный дизайн */
.metric-card {
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
}

.metric-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-btc {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
    opacity: 0.95;
    color: #ffc107;
}

/* News Container - современный минималистичный дизайн */
.news-card {
    max-width: 1100px;
    height: 660px;
    border: none !important;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08), 0 2px 8px rgba(44, 62, 80, 0.04) !important;
    border-radius: 1.25rem !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    box-shadow: 0 12px 32px rgba(44, 62, 80, 0.12), 0 4px 12px rgba(44, 62, 80, 0.06) !important;
}

.news-card .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    padding: 1.25rem 1.75rem;
    border: none !important;
}

.news-card .card-header h3 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.news-card .card-body {
    background-color: #f8f9fc !important;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* News post cards - современные плавные карточки */
.news-post-card {
    background-color: #ffffff;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border-radius: 1rem !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem !important;
}

.news-post-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.news-post-card .card-header {
    background: linear-gradient(135deg, #34495e 0%, #3d5568 100%) !important;
    color: #ffffff !important;
    padding: 0.85rem 1.25rem;
    border: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-post-card .card-header h5 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    flex: 1;
}

.news-post-card .card-header small {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.news-post-card .card-body {
    background-color: #ffffff !important;
    padding: 1.15rem;
}

.news-post-card .card-body p {
    color: #2c3e50 !important;
    margin-bottom: 0;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

/* News Row */
.news-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.news-row > .col-lg-6 {
    padding-left: 0 !important;
}

.news-row > .col-lg-6:last-child {
    padding-right: 0 !important;
}

/* Side Containers Column */
.side-containers-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 660px;
}

/* Tickets List in Side Container */
.tickets-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Контейнер кнопки в боковых карточках */
.side-card .card-body .text-center {
    flex-shrink: 0;
    margin-top: 0.5rem !important;
}

.ticket-item {
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid rgba(224, 224, 224, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    margin-bottom: 0.1rem;
}

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

.ticket-item:hover {
    background-color: rgba(44, 62, 80, 0.05);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.ticket-item .d-flex {
    margin-bottom: 0 !important;
}

.ticket-item > div > div {
    margin-bottom: 0.15rem;
}

.ticket-subject {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 0.1rem !important;
    line-height: 1.4;
}

.ticket-item strong {
    color: #356CB1;
    font-size: 1.05rem;
}

.ticket-item small {
    font-size: 0.9rem;
}

.ticket-item .badge {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.tickets-show-more-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.6rem 1.25rem !important;
}

.tickets-show-more-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #3d5568 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.2) !important;
}

/* Preorders List Styles */
.preorders-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.preorder-item {
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid rgba(224, 224, 224, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    margin-bottom: 0.1rem;
}

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

.preorder-item:hover {
    background-color: rgba(44, 62, 80, 0.05);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.preorder-item .d-flex {
    margin-bottom: 0 !important;
}

.preorder-item > div > div {
    margin-bottom: 0.15rem;
}

.preorder-country {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 0.1rem !important;
    line-height: 1.4;
}

.preorder-item strong {
    color: #356CB1;
    font-size: 1.05rem;
}

.preorder-item small {
    font-size: 0.9rem;
}

.preorder-item .badge {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.preorders-show-all-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.6rem 1.25rem !important;
}

.preorders-show-all-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #3d5568 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.2) !important;
}

/* Side Containers - современный минималистичный дизайн */
.side-card {
    border: none !important;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08), 0 2px 8px rgba(44, 62, 80, 0.04) !important;
    border-radius: 1.25rem !important;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-card:hover {
    box-shadow: 0 12px 32px rgba(44, 62, 80, 0.12), 0 4px 12px rgba(44, 62, 80, 0.06) !important;
}

.side-card .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    padding: 1.25rem 1.75rem;
    border: none !important;
}

.side-card .card-header h5 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.side-card .card-body {
    background-color: #f8f9fc !important;
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* News Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: auto;
    padding-top: 2rem;
    margin-bottom: 20px;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.pagination-arrow:hover {
    background: linear-gradient(135deg, #34495e 0%, #3d5568 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.25);
}

.pagination-info {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
    text-align: center;
}

/* Кнопка добавления баланса */
.balance-add-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    animation: pulse-add 3s ease-in-out infinite;
}

.balance-add-btn:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: #ffffff;
}

.balance-add-btn:active {
    transform: scale(0.98) rotate(90deg);
}

@keyframes pulse-add {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 18px rgba(40, 167, 69, 0.4);
        transform: scale(1.06);
    }
}

.metric-card-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c4a6f 100%);
    color: #ffffff;
}

.metric-card-info {
    background: linear-gradient(135deg, #3b7dd6 0%, #4a8ee6 100%);
    color: #ffffff;
}

.metric-card-dark {
    background: linear-gradient(135deg, #2B2F35 0%, #3a3f47 100%);
    color: #ffffff;
}

.metric-card-white {
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
}

.metric-card-white .metric-label {
    color: #6c757d;
}

.metric-card-white .metric-value {
    color: #2c3e50;
}

/* Для мобильных устройств */
@media (max-width: 767.98px) {
    header.navbar {
        left: 0 !important;
        width: 100% !important;
        position: relative;
    }
    
    main.nicebg {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }
    
    .profile-dropdown {
        margin-right: 1rem !important;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .profile-username {
        font-size: 0.9rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
}

.sidebar .nav-item .nav-link:hover,
.sidebar .ccdropdown .dropdown-item:hover,
.sidebar .ccdropdown .nav-link.dropdown-toggle.show,
.sidebar .ccdropdown:hover .nav-link {
    color: #FFFFFF !important; /* Белый при hover */
    background-color: #356CB1 !important; /* Цвет выделения при наведении */
    border-radius: 0.5rem !important; /* Скругленные края */
    transform: translateX(2px); /* Небольшое смещение при hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important; /* Легкая тень при hover */
}

.copyinput {
    cursor: pointer;
}

/*.sidebar {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    z-index: 100;*/
/*    max-height: 100%;*/
/*    overflow-y: auto;*/
/*    transition: max-width 0.3s;*/
/*}*/

nav.bg-light {
    background-color: #eaedf2 !important;
}

header {
    background-position-y: center;
}

#sidebarMenu {
    padding-right: 0;
    padding-left: 0;
    margin-top: 0;
}

.align-items-center {
    align-items: center !important;
}

.bg-gray-800 {
    background-color: #1f2937 !important;
}

a.carousel-caption {
    text-decoration: none;
    color: #ffffff;
}

a.carousel-caption:hover {
    text-decoration: none;
    color: #afb8df;
}

.c-pointer {
    cursor: pointer;
}

.border-none,
.border-none>th {
    border: none !important;
}

.vertical-align-middle,
.vertical-align-middle>th {
    vertical-align: middle !important;
}

.ccrow {
    cursor: pointer;
    text-align: center;
}

/* Стили для строк таблицы карт с классом ccrow */
.cards-table tbody tr.ccrow,
table.cards-table tbody tr.ccrow {
    background-color: rgba(69, 136, 224, 0.03) !important;
}

.cards-table tbody tr.ccrow:hover,
table.cards-table tbody tr.ccrow:hover {
    background-color: rgba(69, 136, 224, 0.15) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.2) !important;
}

.cards-table tbody tr.ccrow.table-success,
table.cards-table tbody tr.ccrow.table-success {
    background-color: rgba(69, 136, 224, 0.06) !important;
}

.cards-table tbody tr.ccrow.table-success:hover,
table.cards-table tbody tr.ccrow.table-success:hover {
    background-color: rgba(69, 136, 224, 0.18) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.3) !important;
}

.selected-db {
    --bs-table-bg: #d1e7dd !important;
    --bs-table-striped-bg: #c7dbd2 !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #bcd0c7 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #c1d6cc !important;
    --bs-table-hover-color: #000 !important;
    color: #000 !important;
    border-color: #bcd0c7 !important;
}

.margin10lr {
    margin-right: 10px;
    margin-left: 10px;
}

.margin5lr {
    margin-right: 5px;
    margin-left: 5px;
}

.border-2pxtbl {
    border-bottom: 2px solid black;
}

.text-code {
    color: #d63384;
}

pre.infoline {
    display: block;
    background: #0000000a;
    color: #780078;
    width: fit-content;
    padding: 4px 10px 1px 10px;
    font-family: monospace;
}

.monitorlink a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.8rem;
}

.monitorlink a:hover {
    text-decoration: none;
    color: #780078;
}

.monitorlink a.tor {
    margin-left: 4px;
    background: #222528;
    padding: 0 5px;
    border-radius: 50px;
}

.monitorlink a.tor:hover {
    background: #2d3236;
}

.rscore {
    margin-right: 10px;
    font-size: 1.3rem;
    display: inline;
}

.order {
    cursor: pointer;
}

.ccheader {
    display: none;
}

@media (max-width: 768px) {
    .position-sticky {
        margin-top: 37px !important;
    }
    .navbar-text.w-100.mr-l15.row.nav-stats {
        margin-left: 0px !important;
    }

}

@media (max-width: 1000px) {
    .table-mobile-adaptive tr {
        display: grid;
        border-bottom: 1px solid black;
    }
    .table-mobile-adaptive tr th,
    .table-mobile-adaptive tr td{
        border: none;
        text-align: right !important;
        font-weight: 500;
        width: 100%;
    }
    .table-mobile-adaptive.table-mobile-adaptive-last tr th:last-child,
    .table-mobile-adaptive.table-mobile-adaptive-last tr td:last-child {
        line-height: 50px;
        text-align: center !important;
    }

    .table-mobile-adaptive .inline-flex-mobile-long {
        overflow: scroll;
        display: inline-flex;
    }

    .table-mobile-adaptive thead {
        display: none;
    }
    .table-mobile-adaptive .ccheader {
        display: inline;
        font-weight: 800;
        float: left;
        padding-right: 10px;
    }
    .table-mobile-adaptive .pricespan {
        float: right;
    }
    .btncontainer {
        width: 100%;
        text-align: center;
    }
    .btncontainer .btn {
        width: 90%;
    }
}

.ccdropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove the gap so it doesn't close */
}

.ccdropdown .dropdown-menu {
    background: #eaedf2;
    width: 100%;
}


.nav-link.purchases {
    color: #3184fd !important;
    text-align: center !important;
}

.nav-link.purchases:hover {
    color: #0d6efd !important;
}

.nav-link.purchases.active {
    color: #0d91fd !important;
}

.nav-link.purchases span{
    display: block;
}

.nav-link.purchases i{
    font-size: 1.5rem;
}

.page-link {
    cursor: pointer;
}

/* Фикс для modal backdrop - полное покрытие страницы */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1040 !important;
}

.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1050 !important;
}

.filterelem {
    min-width: 280px;
    margin: 0 5px;
    max-width: 358px;
}

.filterbadge {
    margin-left: 1px;
    margin-right: 1px;
}

.filterbadge .btn-close {
    height: 8px;
}

.curpointer {
    cursor: pointer;
}

/* ==================== UNIFIED REDESIGN STYLES ==================== */

/* Компактные размеры шрифтов */
h1, h2, h3, h4, h5, h6 {
    font-size: 1.3rem !important;
    font-weight: 600;
}

p, .lead {
    font-size: 0.85rem;
}



.btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* Маленькие кнопки */
.btn-sm {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
}

/* Большие кнопки */
.btn-lg {
    font-size: 1rem;
    padding: 0.65rem 1rem;
}

/* Стили для инпутов - темные с белым текстом */
.form-control, 
.form-select, 
select.form-control,
textarea.form-control {
    background-color: #343a40;
    color: #ffffff;
    border: 1px solid #495057;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #343a40;
    color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}



/* Мобильная версия */
@media (max-width: 767.98px) {
    #sidebarMenu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        overflow-y: auto;
        z-index: 1050;
        background-color: #fff;
    }
}



/* Стили для select2 - темные */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: #343a40 !important;
    border: 1px solid #495057 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

.select2-container--default .select2-results__option {
    background-color: #343a40 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff !important;
}

/* Стили для карточек - современные с тенями */
.card {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
}

/* Темный card-header для карточек с таблицами */
.cards-table-card .card-header,
.tickets-card .card-header,
.purchases-card .card-header,
.vendor-section .card-header,
.filters-card .card-header,
.alert-card .card-header {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.cards-table-card .card-header h5,
.tickets-card .card-header h5,
.filters-card .card-header h5,
.alert-card .card-header h5 {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

/* Стили для таблиц - современные */
.table {
    font-size: 0.85rem;
}

.table thead th {
    background-color: #343a40;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.75rem;
    text-align: center;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    text-align: center;
}

/* Стили для контейнера таблицы карт */
.cards-table-card {
    border: none !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cards-table-card .card-header {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    padding: 1rem 1.5rem;
    border-bottom: none !important;
}

.cards-table-card .card-header h3 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600;
    margin: 0;
}

.cards-table-card .card-header i {
    margin-right: 0.5rem;
}

.cards-table-card .card-body {
    background-color: #ffffff !important;
    padding: 0;
}

/* Стили для таблицы карт */
.cards-table {
    margin-bottom: 0 !important;
    border: none !important;
    --bs-table-bg: rgba(69, 136, 224, 0.03);
    --bs-table-striped-bg: rgba(69, 136, 224, 0.03);
    --bs-table-hover-bg: rgba(69, 136, 224, 0.15);
    --bs-table-active-bg: rgba(69, 136, 224, 0.06);
}

.cards-table thead th {
    background-color: #4588e0 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem;
    border: none !important;
    border-bottom: 2px solid #2c3e50 !important;
}

.cards-table.table tbody tr,
.cards-table.table tbody tr:nth-of-type(odd),
.cards-table.table tbody tr:nth-of-type(even),
.cards-table.table.table-striped tbody tr,
.cards-table.table.table-striped tbody tr:nth-of-type(odd),
.cards-table.table.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(69, 136, 224, 0.03) !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid #dee2e6;
    box-shadow: none !important;
    height: auto;
}

.cards-table.table tbody tr:hover,
.cards-table.table tbody tr:nth-of-type(odd):hover,
.cards-table.table tbody tr:nth-of-type(even):hover,
.cards-table.table.table-striped tbody tr:hover,
.cards-table.table.table-striped tbody tr:nth-of-type(odd):hover,
.cards-table.table.table-striped tbody tr:nth-of-type(even):hover {
    background-color: rgba(69, 136, 224, 0.15) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.2) !important;
}

.cards-table.table tbody tr.table-success,
.cards-table.table.table-striped tbody tr.table-success {
    background-color: rgba(69, 136, 224, 0.06) !important;
    border-left: 4px solid #28a745;
}

.cards-table.table tbody tr.table-success:hover,
.cards-table.table.table-striped tbody tr.table-success:hover {
    background-color: rgba(69, 136, 224, 0.18) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.3) !important;
}

.cards-table tbody th {
    vertical-align: middle;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    text-align: center;
}




/* Кнопка покупки в таблице */
.cards-table .btnbuy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #28a745;
    color: #ffffff;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.cards-table .btnbuy:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.cards-table .btnbuy i {
    font-size: 0.85rem;
}

/* Бейджи в таблице карт */
.cards-table .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

/* Иконки в таблице карт */
.cards-table i.text-success {
    color: #28a745 !important;
    font-size: 0.85rem;
}

.cards-table i.text-info {
    color: #17a2b8 !important;
    font-size: 0.85rem;
}

.cards-table i.text-warning {
    color: #ffc107 !important;
    font-size: 0.85rem;
}

.cards-table i.text-danger {
    color: #dc3545 !important;
    font-size: 0.85rem;
}

.cards-table .mr-10 {
    margin-right: 0.35rem;
}

/* Изображения в таблице карт */
.cards-table img {
    max-height: 24px;
    width: auto;
}

/* Цена в таблице */
.cards-table .pricespan {
    color: #28a745;
    font-weight: 700;
    font-size: 0.85rem;
}

.cards-table .pricespan i {
    margin-left: 2px;
    font-size: 0.85rem;
}

/* Активные фильтры */
.filterbadge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filterbadge .remfilter {
    padding: 0;
    margin-left: 0.25rem;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.filterbadge .remfilter:hover {
    opacity: 1;
}

/* Заголовок страницы с границей */
.border-bottom {
    border-bottom: 2px solid #2c3e50 !important;
    margin-bottom: 1.5rem !important;
}

.d-flex.justify-content-between h2 {
    color: #2c3e50;
    font-weight: 600;
}

.d-flex.justify-content-between h2 i {
    margin-right: 0.5rem;
    color: #2c3e50;
}

/* Кнопки фильтров и Buy All */
.btn-outline-primary {
    background-color: #ffffff;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.2);
}

.btn-outline-primary:hover {
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
}

.btn-outline-success {
    background-color: #ffffff;
    color: #28a745;
    border: 2px solid #28a745;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: #ffffff;
    border-color: #28a745;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Стили для алертов - современные */
/* Стили для алертов в стиле новостей */
.alert-card {
    border: none !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.alert-header {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    padding: 1rem 1.5rem;
    border-bottom: none !important;
}

.alert-header h5 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    margin: 0;
}

.alert-header i {
    margin-right: 0.5rem;
}

.alert-body {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    padding: 1.25rem;
}

/* Убираем padding для alert-body с таблицей */
.alert-body:has(.table-responsive) {
    padding: 0 !important;
}

.alert-body .table-responsive {
    margin: 0;
    border-radius: 0;
}

/* Убираем padding для обычного card-body с таблицей */
.card-body:has(.table-responsive) {
    padding: 0 !important;
}

.card-body .table-responsive {
    margin: 0;
    border-radius: 0;
}

.alert-body p {
    color: #2c3e50 !important;
    margin: 0;
}

/* Стили для кнопок внутри alert-body */
.alert-body .btn-primary {
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.alert-body .btn-primary:hover {
    background-color: #34495e !important;
    border-color: #34495e !important;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
}

/* Стили для форм внутри alert-body */
.alert-body .form-label {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-body .form-control,
.alert-body .form-select {
    background-color: #f8f9fa !important;
    color: #2c3e50 !important;
    border: 1px solid #d0d7e2 !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.alert-body .form-control:focus,
.alert-body .form-select:focus {
    background-color: #ffffff !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15) !important;
    outline: none;
}

/* Стили для таблиц внутри alert-body */
.alert-body .table {
    color: #2c3e50 !important;
}

/* Стили для обычных таблиц внутри alert-body (не cards-table) */
.alert-body .table:not(.cards-table) thead th {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
}

/* Для таблиц cards-table внутри alert-body и card-body - используем стандартные стили cards-table */
.alert-body .cards-table,
.card-body .cards-table {
    margin-bottom: 0 !important;
}

.alert-body .cards-table thead th,
.card-body .cards-table thead th {
    background-color: #4588e0 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem;
    border: none;
    text-align: center;
}

.alert-body .cards-table tbody td,
.card-body .cards-table tbody td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
}

.alert-body .cards-table tbody tr,
.card-body .cards-table tbody tr {
    background-color: rgba(69, 136, 224, 0.03) !important;
    transition: all 0.2s ease;
}

.alert-body .cards-table tbody tr:hover,
.card-body .cards-table tbody tr:hover {
    background-color: rgba(69, 136, 224, 0.15) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.2) !important;
}

.alert-body .cards-table img,
.card-body .cards-table img {
    max-height: 20px;
    width: auto;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* Стили для кнопок внутри таблицы cards-table */
.alert-body .cards-table .btn-sm,
.card-body .cards-table .btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.alert-body .cards-table .btn-danger,
.card-body .cards-table .btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.alert-body .cards-table .btn-danger:hover,
.card-body .cards-table .btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Стили для бейджей в таблице */
.alert-body .cards-table .badge,
.card-body .cards-table .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Стили для цен в таблице preorders */
.alert-body .cards-table td:nth-child(3),
.card-body .cards-table td:nth-child(3) {
    color: #28a745;
    font-weight: 700;
}

/* Стили для кнопок danger вне таблиц */
.alert-body .btn-danger:not(.cards-table .btn-danger) {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.alert-body .btn-danger:not(.cards-table .btn-danger):hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Стили для бейджей */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
}

/* Бейджи в навигационном меню */
.sidebar .badge {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0;
}

/* ====== DEMO DATA STYLES - DELETE BEFORE PRODUCTION ====== */
/* Visual marker for demo card data in tables */
.demo-card-data {
    background-color: rgba(69, 136, 224, 0.03) !important;
    border-left: 3px solid #4588e0 !important;
}

.demo-card-data:hover {
    background-color: rgba(69, 136, 224, 0.15) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.2) !important;
}

.demo-card-data.table-success {
    background-color: rgba(69, 136, 224, 0.06) !important;
}

.demo-card-data.table-success:hover {
    background-color: rgba(69, 136, 224, 0.18) !important;
    box-shadow: 0 2px 8px rgba(69, 136, 224, 0.3) !important;
}

.demo-card-data th:first-child::after {
    content: " [DEMO]";
    font-size: 0.65rem;
    font-weight: bold;
    color: #4588e0;
    margin-left: 5px;
}
/* ====== END DEMO STYLES ====== */

/* Стили для модальных окон */
.modal-content {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #343a40;
    color: #ffffff;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

/* Стили для навбара - улучшенные */
/* ==================== NAVBAR HEADER REDESIGN ==================== */

header.navbar {

    background-color: #ffffff !important; /* Белый фон */
    background-image: none !important; /* Убираем фоновое изображение */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important; /* Легкая тень снизу */
    border: none !important; /* Убираем границы */
    color: #2c3e50 !important; /* Темный текст */
    min-height: 70px !important; /* Увеличенная высота */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    z-index: 99; /* Ниже sidebar, но выше контента */
    backdrop-filter: blur(10px);
}

/* Убираем тень из класса .shadow для navbar */
header.navbar.shadow {
    box-shadow: none !important;
}

/* Текст в navbar */
header.navbar .navbar-text,
header.navbar .nav-money,
header.navbar .nav-link {
    color: #2c3e50 !important; /* Темный цвет текста как у Terms of Service */
}

header.navbar .navbar-text.w-100 {
    width: auto !important;
    flex: 1;
}

/* Balance link */
header.navbar .balance-link {
    color: #2c3e50 !important;
}

/* Navbar brand (логотип) - скрыт */
header.navbar .navbar-brand {
    display: none !important; /* Убран логотип и надпись из хедера */
}

/* Header Links (Link monitor & TOR) */
.header-links {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

.header-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.header-link-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1da87c 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
}

.header-link-btn i {
    font-size: 1rem;
}

/* Profile dropdown в header */
header.navbar .profile-dropdown {
    margin-right: 2rem !important;
}

.profile-username {
    margin-left: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
}

.profile-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #34495e 0%, #3d5568 100%);
    border-color: #4a8ee6;
}

.profile-avatar:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-dropdown .nav-link {
    padding: 0;
}

.profile-dropdown .dropdown-toggle::after {
    display: none;
}

.profile-dropdown .dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    min-width: 200px;
}

.profile-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.profile-dropdown .dropdown-item i {
    margin-right: 0.75rem;
    width: 1.2rem;
    text-align: center;
}

.profile-dropdown .dropdown-item:hover {
    background-color: #f7f7f8;
    color: #667eea;
}

/* Для мобильных устройств */
@media (max-width: 767.98px) {
    header.navbar {
        margin-left: 0 !important;
    }
}

/* Стили для пагинации - белые кнопки */
.pagination .page-link {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #e9ecef;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #cccccc;
    border-color: #cccccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


#tablepagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


/* Стили для аккордеона */
.accordion-button {
    background-color: #ffffff;
    color: #212529;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed) {
    background-color: #343a40;
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Стили для вкладок */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

/* Стили для списков */
.list-group-item {
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list-group-item.active {
    background-color: #343a40;
    border-color: #343a40;
}

/* Стили для прогресс баров */
.progress {
    background-color: #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Стили для дропдаунов */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Компактные ссылки */
a {
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Стили для спиннеров загрузки */
.spinner-border {
    border-color: #007bff;
    border-right-color: transparent;
}


/* Стиль для контейнера спиннера */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Стиль для спиннера */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

/* Анимация вращения */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Стиль для контейнера placeholder */
.placeholder {
  display: inline-block;
  background-color: #e0e0e0; /* Цвет фона для заглушки */
  border-radius: 4px;
  height: 1rem;
  margin: 4px 0;
}

/* Группировка анимации для glow */
.placeholder-glow .placeholder {
  animation: glowPulse 1.5s ease-in-out infinite;
}

/* Анимация пульсации и градиентный фон */
@keyframes glowPulse {
  0% {
    transform: scale(1);
    background-color: #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    background-color: #d4d4d4;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    background-color: #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
}

/* Добавление градиента для фона */
.placeholder-glow .placeholder {
  background: linear-gradient(90deg, #f0f0f0, #d1d1d1, #f0f0f0);
  background-size: 200% 100%;
  animation: gradientAnimation 1.5s linear infinite;
}

/* Анимация градиента */
@keyframes gradientAnimation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Для разных размеров колонок (например, для разных ширин) */
.col-1 {
  width: 5%;
}

.col-5 {
  width: 20%;
}

.col-8 {
  width: 40%;
}

.col-9 {
  width: 60%;
}