/* Основные переменные и настройки */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f1c40f;
    --text-color: #ecf0f1;
    --dark-bg: #1a2433;
    --card-bg: #34495e;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2c3e50 100%);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
}

/* Панель навигации */
.navbar {
    background-color: rgba(26, 36, 51, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    position: relative;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

/* Общие компоненты */
.wrapper {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.title {
    color: var(--accent-color);
    margin: 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(to right, var(--secondary-color), #2980b9);
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(to right, #2980b9, var(--secondary-color));
}

/* Контейнер личного кабинета */
.main-container {
    padding: 15px 0;
}

.dashboard-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}

.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
}

/* Меню личного кабинета */
.user-sidebar {
    background-color: var(--card-bg);
    width: 100%;
     /*height: 100%; */
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* Профиль пользователя */
.profile-card {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}


.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: var(--accent-color);
    background-color: transparent;
    border-color: #dee2e6 #dee2e6 transparent;
}


.profile-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: var(--success-color);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.profile-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Блок баланса */
.balance-block {
    margin-bottom: 20px;
}
.balance-item {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}
.balance-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.balance-header {
    margin-bottom: 5px; /* Уменьшено расстояние */
}
.balance-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: block; /* Заголовок займет всю ширину */
}
.balance-value {
    margin-bottom: 10px; /* Отступ перед кнопкой */
}
.balance-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}
.currency {
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-deposit {
    background: linear-gradient(to right, var(--secondary-color), #2980b9);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-withdraw {
    background: linear-gradient(to right, var(--success-color), #27ae60);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-deposit:hover, .btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Меню навигации */
.sidebar-menu {
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 3px;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.menu-item.active {
    background-color: rgba(52, 152, 219, 0.15);
}

.menu-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.menu-item a {
    display: inline-flex; /* Сделаем ссылку инлайн-блоком */
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.menu-item.active a {
    color: var(--accent-color);
}

.menu-item a i {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-item a span {
    flex: 1;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    position: absolute;
    top: 45%;
    right: -10px;
    transform: translateY(-50%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}


.badge-notification {
    background-color: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-income {
    background-color: var(--success-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-refs {
    background-color: var(--accent-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 500;
}





/* Статистика пользователя */
.user-stats {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px;
}

.stats-item {
    margin-bottom: 15px;
}

.stats-item:last-child {
    margin-bottom: 0;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.stats-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.progress {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

/* Заголовок личного кабинета */
.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}

.dashboard-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Приветствие пользователя */
.welcome-card {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.welcome-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: url('/img/pattern.png');
    background-size: cover;
    opacity: 0.05;
}

.welcome-content {
    display: flex;
    align-items: center;
}

.welcome-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.welcome-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.welcome-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.user-name {
    color: var(--accent-color);
}

.welcome-info p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.welcome-balance {
    text-align: right;
}

.balance-card {
    background: rgba(0,0,0,0.2);
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 150px;
}

.balance-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 5px;
}

.balance-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

/* Карточки с основными показателями */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stats-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.stats-businesses {
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.stats-income {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.stats-refs {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.stats-card-icon {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.1);
}

.stats-card-content {
    flex: 1;
    padding: 15px;
}

.stats-card-content h5 {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.stats-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stats-card-link {
    display: inline-block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.stats-card-link i {
    font-size: 0.7rem;
    margin-left: 5px;
}

.stats-card-link:hover {
    color: white;
    text-decoration: none;
}

/* Блоки с информацией */
.dashboard-blocks {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-block {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 3px solid var(--secondary-color);
    height: 100%;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.block-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.block-header h4 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.block-content {
    padding: 15px 20px;
}

/* Операции */
.operations-list {
    max-height: 300px;
    overflow-y: auto;
}

.operation-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.operation-item:last-child {
    border-bottom: none;
}

.operation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.op-income {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.op-expense {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.op-purchase {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.op-withdrawal {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--accent-color);
}

.op-other {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.operation-info {
    flex: 1;
    min-width: 0;
}

.operation-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.operation-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.operation-amount {
    font-size: 1rem;
    font-weight: 600;
    padding-left: 10px;
}

/* Список бизнесов */
.businesses-list {
    max-height: 300px;
    overflow-y: auto;
}

.business-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.business-item:last-child {
    border-bottom: none;
}

.business-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    flex-shrink: 0;
}

.business-info {
    flex: 1;
    min-width: 0;
}

.business-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-level {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.business-profit {
    text-align: right;
    padding-left: 10px;
}

.profit-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 5px;
}

.btn-upgrade {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.btn-upgrade:hover {
    background-color: var(--success-color);
    color: white;
}

/* Реферальная программа */
.ref-link-box {
    background-color: rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

.ref-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.ref-stat-item {
    background-color: rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.ref-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.ref-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* Достижения */
.achievements-list {
    max-height: 300px;
    overflow-y: auto;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.achievement-item:last-child {
    border-bottom: none;
}

.achievement-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-color: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.achievement-icon.completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
    border-color: var(--success-color);
}

.achievement-info {
    flex: 1;
}

.achievement-header {
    margin-bottom: 10px;
}

.achievement-header h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 3px;
}

.achievement-header span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.achievement-progress .progress {
    height: 5px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.achievement-progress .progress-bar {
    height: 100%;
    background-color: var(--success-color);
}

.progress-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-align: right;
}

/* Новости */
.news-list {
    max-height: 300px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    width: 80px;
    padding-right: 10px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 3px;
}

.news-excerpt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* Состояние без данных */
.no-data {
    text-align: center;
    padding: 30px 0;
}

.no-data i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.no-data p {
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
}

/* Анимационные классы */
.fade-in {
    animation: fadeIn ease 1s;
}

.slide-in-right {
    animation: slideInRight 0.7s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.7s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}



@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-blocks {
        grid-template-columns: 1fr;
    }
    
    .welcome-card {
        flex-direction: column;
    }
    
    .welcome-content {
        margin-bottom: 15px;
    }
    
    .welcome-balance {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .total-balance {
        margin-top: 1rem;
    }
    
    .ref-stat-item {
        width: calc(50% - 0.5rem);
    }
    
    .operation-item, .business-item, .news-item {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .ref-stats {
        grid-template-columns: 1fr;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .stats-card-body {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-card-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .achievement-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .business-profit {
        text-align: center;
    }
}

/* ------------------------- */

/* Стили для упрощенного dashboard */
.user-info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-item:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.data-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Реферальная секция */
.referral-block {
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7));
    border-left: 4px solid var(--accent-color);
}

.ref-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.ref-info .ref-stat-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.ref-info .ref-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ref-info .ref-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.ref-info .ref-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность */
@media (min-width: 992px) {
    .user-info-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Улучшенный дизайн плиток */
.dashboard-block {
    transition: all 0.3s ease;
}

.dashboard-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-data-block {
    border-left: 4px solid #3498db;
}

.user-stats-block {
    border-left: 4px solid #2ecc71;
}

/* Анимация при наведении на элементы данных */
.data-item {
    transition: all 0.2s ease;
}

.data-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 5px;
    padding-right: 5px;
}

/* Улучшенный дизайн поля ввода для реферальной ссылки */

.ref-link-box {
    position: relative;
}
.ref-link-box .form-control {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding-right: 45px;
    font-size: 0.9rem;
    height: 44px; 
}
.ref-link-box .input-group-append {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 10;
}
.ref-link-box .copy-btn {
 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 34px; 
    height: 34px;
    padding: 0; */
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-link-box .copy-btn i {
    font-size: 0.9rem; 
}
.ref-link-box .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.referral-block {
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7));
    border-left: 4px solid var(--accent-color);
    max-height: fit-content; 
}

.footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.payment-system {
    margin-top: 10px;
}

.payment-system img {
    height: 24px;
}

/** таблицы **/

/* Стили для таблиц */
table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

th {
    padding: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--text-color);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

th:hover:after {
    transform: scaleX(1);
}

tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

td {
    padding: 12px 15px;
    vertical-align: middle;
    color: var(--text-color);
}

/* Стили для цветового выделения различных состояний */
.table-success td {
    color: var(--success-color);
}

.table-warning td {
    color: var(--accent-color);
}

.table-danger td {
    color: var(--danger-color);
}

/* Стили для действий в таблице */
.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Стили для пустых таблиц */
.table-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
}

.table-empty i {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Стили для адаптивных таблиц на мобильных устройствах */
@media (max-width: 768px) {
    /* Вариант 1: Скроллинг для таблиц */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Вариант 2: Преобразование таблицы в карточки на мобильных */
    .table-mobile-cards thead {
        display: none;
    }
    
    .table-mobile-cards, 
    .table-mobile-cards tbody, 
    .table-mobile-cards tr, 
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }
    
    .table-mobile-cards tr {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .table-mobile-cards td {
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    
    .table-mobile-cards td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Стили для таблиц с нумерацией */
table.table-numbered {
    counter-reset: rowNumber;
}

table.table-numbered tbody tr {
    counter-increment: rowNumber;
}

table.table-numbered tbody tr td:first-child::before {
    content: counter(rowNumber);
    min-width: 1em;
    margin-right: 0.5em;
    font-weight: 600;
    color: var(--accent-color);
}

/* Стили для компактных таблиц */
.table-sm th,
.table-sm td {
    padding: 8px 10px;
    font-size: 0.9rem;
}

/* Стили для границ в таблицах */
.table-bordered th,
.table-bordered td {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для полосатых таблиц */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Стили для заголовка таблицы */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.table-header h4 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.table-header .table-actions {
    display: flex;
    gap: 10px;
}

/* Примеры пользовательских классов для таблиц */
.table-operations td:nth-child(3) {
    font-weight: 600;
}

.table-referrals td:nth-child(4) {
    font-weight: 600;
    color: var(--accent-color);
}

.table-payments td:last-child {
    font-weight: 600;
}

/* Стили для сортировки в таблицах */
th.sortable {
    cursor: pointer;
    position: relative;
}

th.sortable:after {
    content: '⇅';
    position: absolute;
    right: 10px;
    color: rgba(255,255,255,0.3);
}

th.sortable.asc:after {
    content: '↑';
    color: var(--accent-color);
}

th.sortable.desc:after {
    content: '↓';
    color: var(--accent-color);
}

/* Разноцветные строки в таблице */
tbody tr.success {
    background-color: rgba(46, 204, 113, 0.1);
}

tbody tr.warning {
    background-color: rgba(241, 196, 15, 0.1);
}

tbody tr.danger {
    background-color: rgba(231, 76, 60, 0.1);
}

tbody tr.info {
    background-color: rgba(52, 152, 219, 0.1);
}