/* Основные стили Bitcat */
:root {
    --primary-color: #009FE3;
    --primary-color-dark: #005B9A;
    --secondary-color: #8b5cf6;
    --primary-color-light: #4FC3F7;
    --success-color: #009FE3;
    --danger-color: #E53935;
    --warning-color: #FFA726;
    /* old */
    /* --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b; */
    /* --danger-color: #ef4444; */
    --light-color: #f4f4f4;
    
    --dark-color: #1f2937;
    --sidenav-bg: #ffffff;
    --sidenav-width: 250px;
    --card-shadow: 0 4px 20px rgba(0, 159, 227, 0.1);
    --card-hover-shadow: 0 8px 25px rgba(0, 159, 227, 0.15);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-color);
}
.navbar-brand img {
    width: 40px;
    margin-right: 10px;
}
.card {
    border: 1px solid rgba(216, 216, 216, 0.46);
    border-radius: 10px;
    /*box-shadow: 0 0 5px rgba(0,0,0,0.1);*/
    /*transition: transform 0.3s, box-shadow 0.3s;*/
}
.card:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 5px 20px rgba(0,0,0,0.15);*/
}
.btn {
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border: none;
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
}
.nav-link {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}
.nav-link.active {
    background: var(--primary-color);
    color: white;
}
.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.table {
    border-radius: 15px;
    overflow: hidden;
}
.table th {
    background: var(--light-color);
    border: none;
}
.table td {
    border: none;
    padding: 1rem;
}
.table tr {
    transition: background 0.3s;
}
.table tr:hover {
    background: var(--light-color);
}
.sidebar {
    display: none !important;
}
.dashboard-page .sidebar {
    display: none !important;
}
.website-card {
    background: #ffffff;
    border-radius: 15px !important;
    border: none !important;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.website-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.website-card:hover::before {
    opacity: 1;
}
.website-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.website-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}
.website-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.website-card .card-title a:hover {
    color: var(--primary-color);
}
.website-card .badge {
    padding: 0.5em 1em;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 8px;
}
.website-card .badge.bg-success {
    background: var(--success-color) !important;
}
.website-card .badge.bg-warning {
    background: var(--warning-color) !important;
}
.website-card .badge.bg-danger {
    background: var(--danger-color) !important;
}
.website-card .badge.bg-secondary {
    background: var(--secondary-color) !important;
}
.website-card .text-muted {
    color: #718096 !important;
}
.website-card .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.website-card .btn-primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}
.website-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    margin-top: auto;
}
.website-card .alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}
.website-card .alert-danger {
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--danger-color);
}
.website-card .info-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.website-card .info-row:last-child {
    border-bottom: none;
}
.website-card .info-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}
.website-card .info-value {
    font-weight: 500;
    color: var(--dark-color);
}
/* Анимация загрузки для карточек */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.website-card.loading {
    position: relative;
    overflow: hidden;
}
.website-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 159, 227, 0.1), transparent);
    animation: shimmer 2s infinite;
}
.docs-section-title {
    color: var(--dark-color);
    font-weight: 500;
}
.docs-nav .nav-link {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.2rem 0;
    transition: all 0.3s;
}
.docs-nav .nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}
.docs-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
}
#searchDocs {
    border-radius: 8px;
}
#searchDocs:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.docs-page .main-content {
    margin-left: 0;
    padding: 20px;
}
.docs-page .sidebar {
    position: static !important;
    width: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
}

/* Только для dashboard */
.dashboard-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    z-index: 1200;
}
.dashboard-page .main-content {
    margin-left: 250px;
    padding: 20px;
}

/* --- мобилка dashboard --- */
@media (max-width: 1200.98px) {
    .dashboard-page .sidebar {
        transform: translateX(-100%);
    }

    .dashboard-page .sidebar.show {
        transform: translateX(0);
    }

    .dashboard-page .main-content {
        margin-left: 0;
    }
}

/* Только для docs */
.docs-page .sidebar {
    position: static !important;
    width: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
}
.docs-page .main-content {
    margin-left: 0 !important;
    padding: 20px;
}

/* Стили для страниц авторизации и регистрации */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.auth-form .form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.auth-form .btn {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.auth-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: #fff;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-auth .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    transition: all 0.3s ease;
}

.social-auth .btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.social-auth .btn i {
    font-size: 1.2rem;
}

/* Анимации для форм */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.5s ease-out;
} 

.tariff-card-modern {
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(60,60,100,0.08), 0 1.5px 6px rgba(60,60,100,0.06);
    transition: transform 0.18s, box-shadow 0.18s;
    border: none;
    background: #fff;
    position: relative;
}
.tariff-card-modern:hover, .tariff-card-modern.active {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(60,60,100,0.16), 0 2px 8px rgba(60,60,100,0.10);
    z-index: 2;
}
.tariff-card-modern.pro {
    border: 2px solid #6f42c1;
    background: linear-gradient(135deg, #f8f0ff 0%, #f3e8ff 100%);
}
.tariff-card-modern .tariff-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.95rem;
    padding: 0.4em 1em;
    border-radius: 1em;
}
.tariff-card-modern .price {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.tariff-card-modern .feature-list {
    text-align: left;
    margin: 1.2rem 0 1.5rem 0;
    padding: 0;
    list-style: none;
}
.tariff-card-modern .feature-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    font-size: 1.08rem;
}
.tariff-card-modern .feature-list li .icon {
    color: #4caf50;
    margin-right: 0.7em;
    font-size: 1.1em;
}
.tariff-card-modern .btn {
    border-radius: 2em;
    padding-left: 2em;
    padding-right: 2em;
    font-weight: 500;
}
.tariff-card-modern.free {
    border: 2px solid #20c997;
    background: linear-gradient(135deg, #eafff3 0%, #f8fffc 100%);
}
.tariff-card-modern .tariff-badge.pro {
    background: #6f42c1;
    color: #fff;
}
.tariff-card-modern .tariff-badge.free {
    background: #20c997;
    color: #fff;
}
.addon-description-container {
    text-align: center;
}

.addon-description-container .addon-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.85, 0.94);
    max-height: 4.5em; /* примерно 3 строки */
}

.addon-description-container.expanded .addon-description {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    max-height: none; /* фиксированная максимальная высота */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.85, 0.94);
}

.addon-description-container .show-more-btn {
    display: block;
    margin: 0 auto;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.85, 0.94);
    transform: translateY(0);
}

.addon-description-container .show-more-btn:hover {
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

.addon-description-container.expanded .show-more-btn {
    margin-top: 0.5rem;
}

.addon-card .card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.85, 0.94);
    height: auto !important; /* отключаем принудительное выравнивание высоты */
}

.addon-card .card:hover {
    box-shadow: 0 8px 32px rgba(0,123,255,0.2);
    transform: translateY(-6px) scale(1.02);
}

/* Стили для бокового меню */
.sidenav {
    background-color: var(--sidenav-bg);
    width: var(--sidenav-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 0;
    margin: 0;
}

.sidenav-header {
    padding: 0.75rem 1rem;
}

.sidenav .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 1rem;
}

.sidenav .navbar-brand img {
    height: 35px;
    width: auto;
}

.sidenav hr.horizontal {
    margin: 0.5rem 1rem;
    opacity: 0.25;
    background-color: #e9ecef;
}

.sidenav .navbar-collapse {
    margin-top: 0;
    margin-bottom: 25rem;
}

.sidenav .nav-item {
    padding: 0 1rem;
}

.sidenav .nav-link {
    padding: 0.5rem 0.75rem;
    margin: 0.2rem 0;
    border-radius: 0.5rem;
    color: #344767;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.sidenav .navbar-brand span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #344767;
}

/* Основной контент */
.main-content {
    margin-left: var(--sidenav-width);
    padding: 1.5rem;
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* Таблицы и карточки в основном контенте */
.main-content .table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.main-content .table th {
    font-weight: 600;
    color: #344767;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 24px;
}

.main-content .table td {
    padding: 12px 24px;
    color: #67748e;
    vertical-align: middle;
}

.main-content .card {
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
    border: none;
    margin-bottom: 24px;
}

.main-content .card-header {
    padding: 1.5rem;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
}

.main-content .card-header h5 {
    margin: 0;
    color: #344767;
    font-weight: 600;
}

.main-content .card-body {
    padding: 1.5rem;
}

/* Статусы */
.badge {
    padding: 0.55em 0.9em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 6px;
}

.badge-success {
    background-color: #2dce89;
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Адаптивность */
@media (max-width: 1200.98px) {
    .sidenav {
        transform: translateX(-100%);
    }

    .sidenav.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Кнопка переключения меню */
#toggleSidebar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1299;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: #344767;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    display: none;
}

@media (max-width: 1200.98px) {
    #toggleSidebar {
        display: block;
    }
}

#toggleSidebar:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Активные состояния в меню */
.sidenav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidenav .nav-link.active {
    background: linear-gradient(310deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidenav .nav-link .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-right: 8px;
}

.sidenav .nav-link.active .icon {
    background: transparent;
    box-shadow: none;
}

.sidenav .nav-link .icon i {
    font-size: 1rem;
    color: #344767;
}

.sidenav .nav-link.active .icon i {
    color: white;
}

/* Удаляем старые конфликтующие стили */
.sidebar {
    display: none !important;
}

.dashboard-page .sidebar {
    display: none !important;
}

/* Статистические блоки на странице обзора */
.stats-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.stats-block .rounded-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-block .rounded-circle i {
    font-size: 1.25rem;
}

.stats-block h6 {
    font-size: 0.875rem;
    font-weight: 500;
}

.stats-block h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Цветовая схема для иконок */
.stats-block .text-primary { color: var(--primary-color) !important; }
.stats-block .text-success { color: #10b981 !important; }
.stats-block .text-info { color: #0ea5e9 !important; }
.stats-block .text-warning { color: #f59e0b !important; }

/* Фоны для иконок */
.stats-block .bg-primary.bg-opacity-10 { background-color: rgba(0, 159, 227, 0.1) !important; }
.stats-block .bg-success.bg-opacity-10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.stats-block .bg-info.bg-opacity-10 { background-color: rgba(14, 165, 233, 0.1) !important; }
.stats-block .bg-warning.bg-opacity-10 { background-color: rgba(245, 158, 11, 0.1) !important; }

/* === Enterprise Settings Redesign === */
.enterprise-settings {
    background: #f6f7fa;
    min-height: 100vh;
}
.enterprise-sidebar {
    min-height: 100vh;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 2px 0 16px rgba(44,62,80,0.04);
}
.enterprise-sidebar .nav-link {
    font-size: 1.08rem;
    font-weight: 500;
    color: #23272e;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    transition: background 0.2s, color 0.2s;
}
.enterprise-sidebar .nav-link.active, .enterprise-sidebar .nav-link:focus {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark));
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,159,227,0.08);
}
.enterprise-sidebar .nav-link i {
    opacity: 0.8;
}

.enterprise-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 16px rgba(44,62,80,0.08);
    background: #fff;
}
.enterprise-card .card-header {
    border-bottom: 1px solid #f0f1f3;
    background: #fff;
    border-radius: 16px 16px 0 0;
}
.enterprise-card .card-body {
    padding: 2rem 2.5rem;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    background: #e9ecef;
    color: #23272e;
    border-radius: 50%;
    width: 48px;
    height: 48px;
}
.avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 2rem;
}

.enterprise-toast {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 9999;
    min-width: 260px;
    max-width: 340px;
    background: #fff;
    color: #23272e;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.13);
    padding: 1rem 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    font-size: 1.08rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.enterprise-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.enterprise-toast.toast-success {
    border-left: 5px solid #10b981;
}
.enterprise-toast.toast-error {
    border-left: 5px solid #E53935;
}

/* Адаптивность enterprise-меню */
@media (max-width: 991.98px) {
    .enterprise-sidebar {
        min-height: auto;
        border-right: none;
        box-shadow: none;
    }
    .enterprise-card .card-body {
        padding: 1.2rem 1rem;
    }
}

/* === Enterprise Profile Card Improvements === */
.profile-card {
    margin: 0;
    box-shadow: 0 4px 24px rgba(44,62,80,0.08);
    border: none;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.profile-header {
    position: relative;
    background: linear-gradient(to right, rgba(0,159,227,0.03), rgba(0,159,227,0.07));
}

.avatar-wrapper {
    position: relative;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0,159,227,0.2);
}

.avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 2rem;
}

.profile-info h4 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.detail-group {
    padding: 0.5rem 0;
}

.detail-group label {
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Кнопки в профиле */
.profile-card .btn-outline-secondary {
    border-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.profile-card .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--primary-color);
}

.profile-card .btn-outline-primary {
    font-weight: 500;
}

/* Telegram секция */
.profile-card .detail-group:last-child {
    margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-header .btn {
        margin-top: 1rem;
    }
    
    .profile-info {
        width: 100%;
    }
    
    .profile-info > div {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-group {
        text-align: center;
    }
}

/* Анимации и эффекты */
.profile-card .btn {
    transition: all 0.2s ease;
}

.profile-card .btn:active {
    transform: translateY(1px);
}

/* Toast улучшения */
.enterprise-toast {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    color: #23272e;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.12);
    padding: 1rem 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.enterprise-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.enterprise-toast.toast-success {
    border-left: 4px solid #10b981;
}

.enterprise-toast.toast-error {
    border-left: 4px solid #ef4444;
}

.enterprise-toast i {
    font-size: 1.25rem;
}

.enterprise-toast.toast-success i {
    color: #10b981;
}

.enterprise-toast.toast-error i {
    color: #ef4444;
}

/* Telegram card */
.telegram-card {
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 2px 12px rgba(0,159,227,0.07);
    border-left: 4px solid #229ed9;
    margin-top: 0.5rem;
}
.telegram-card .avatar {
    background: #229ed9 !important;
    color: #fff !important;
}

/* Модалка смены пароля */
#changePasswordModal .modal-content {
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.13);
    border: none;
}
#changePasswordModal .modal-header {
    border-bottom: 1px solid #f0f1f3;
    background: #f8fafc;
    border-radius: 14px 14px 0 0;
}
#changePasswordModal .modal-title {
    font-weight: 600;
    color: var(--primary-color-dark);
}
#changePasswordModal .modal-footer {
    border-top: 1px solid #f0f1f3;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

@media (max-width: 991.98px) {
    .profile-card {
        max-width: 100%;
        min-width: unset;
    }
    .telegram-card {
        max-width: 100%;
        min-width: unset;
        margin-top: 1.5rem;
    }
}

/* === Avatar Upload Styles === */
.avatar-upload-label {
    cursor: pointer;
    display: block;
    position: relative;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-upload-overlay i {
    color: #fff;
    font-size: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.avatar-upload-label:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-label:hover .avatar-upload-overlay i {
    transform: translateY(0);
}

/* Стили для аватара с изображением */
.avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cropper-container {
    height: 600px;
    background: #000;
    overflow: hidden;
    width: 100%;
}
#avatar-cropper {
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#avatar-cropper img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.cropper-view-box,
.cropper-face {
    border-radius: 50%;
    overflow: hidden;
}

.cropper-view-box {
    box-shadow: 0 0 0 1px #39f;
    border: 1px solid #39f;
    outline: none;
}

.cropper-point {
    background-color: #39f;
    width: 10px;
    height: 10px;
}

.cropper-point.point-n,
.cropper-point.point-s,
.cropper-point.point-e,
.cropper-point.point-w {
    display: none;
}

.cropper-line {
    background-color: #39f;
}

#avatarModal .modal-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Улучшенные стили для кнопок в модалке */
#avatarModal .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

#avatarModal .btn i {
    font-size: 1.1rem;
}

#avatarModal .btn-primary {
    background: var(--primary-color);
    border: none;
    color: #fff;
}

#avatarModal .btn-primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

#avatarModal .btn-secondary {
    background: #e9ecef;
    border: none;
    color: #495057;
}

#avatarModal .btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

/* Адаптивность для модального окна */
@media (max-width: 991.98px) {
    #avatarModal .modal-dialog {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }
    
    .cropper-container {
        height: 400px;
    }
}

@media (max-width: 575.98px) {
    .cropper-container {
        height: 300px;
    }
    
    #avatarModal .btn {
        padding: 0.5rem 1rem;
    }
} 
/* Toast info style */
.enterprise-toast.toast-info {
    border-left: 4px solid var(--primary-color);
}

.enterprise-toast.toast-info i {
    color: var(--primary-color);
}

/* Стили для страницы баланса */
.balance-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 1rem 0;
}

.balance-card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.balance-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.balance-form .form-control {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

.balance-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 159, 227, 0.25);
}

.balance-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.balance-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.balance-details .detail-row:last-child {
    border-bottom: none;
}

.balance-details .detail-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.balance-details .detail-value {
    font-weight: 500;
}

.transaction-table th {
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.transaction-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.transaction-badge {
    padding: 0.5em 1em;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Дополнительные стили для enterprise-card на странице баланса */
.enterprise-card.balance-section {
    margin-bottom: 2rem;
}

.enterprise-card .bank-details {
    background: rgba(0, 159, 227, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
}

.enterprise-card .bank-details-row {
    margin-bottom: 1rem;
}

.enterprise-card .bank-details-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.enterprise-card .bank-details-value {
    font-weight: 500;
    font-family: monospace;
}

/* Новые стили для страницы баланса */
.balance-header-card {
    overflow: hidden;
}

.balance-gradient-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    position: relative;
}

.balance-gradient-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
}

.balance-info {
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.quick-amount-buttons {
    display: flex;
    flex-direction: column;
}

.quick-amount {
    transition: all 0.2s ease;
    border-color: rgba(0, 159, 227, 0.2);
}

.quick-amount:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.quick-amount.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.balance-form .form-control {
    height: 48px;
    font-size: 1.1rem;
}

.balance-form .input-group-text {
    background: #f8f9fa;
    font-weight: 500;
    color: #495057;
    border-left: none;
}

.bank-detail-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.2s ease;
}

.bank-detail-card:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 159, 227, 0.1);
    transform: translateY(-2px);
}

.bank-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 159, 227, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.bank-detail-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.bank-detail-value {
    font-weight: 600;
    color: var(--dark-color);
    font-family: 'Roboto Mono', monospace;
}

.balance-stats .stat-item {
    padding: 0.75rem 0;
}

.balance-stats .progress {
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 10px;
}

.balance-stats .progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

.transaction-icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon i {
    font-size: 0.875rem;
}

.alert-icon {
    color: var(--primary-color);
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .quick-amount-buttons {
        margin-top: 1rem;
    }
    
    .bank-detail-card {
        margin-bottom: 1rem;
    }
}

/* Улучшенные стили для блока статистики */
.balance-stats-header {
    background: linear-gradient(135deg, rgba(0, 159, 227, 0.05) 0%, rgba(0, 91, 154, 0.05) 100%);
}

.balance-chart {
    margin-top: 1.5rem;
    padding: 1rem 0;
    position: relative;
}

.balance-trend {
    margin-bottom: 1rem;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.trend-indicator.trend-up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.trend-indicator.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.trend-period {
    font-size: 0.875rem;
}

.balance-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding: 0.5rem 0;
}

.chart-bar {
    flex: 1;
    background: rgba(0, 159, 227, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.chart-bar:hover, .chart-bar.active {
    background: var(--primary-color);
}

.chart-bar:hover::after, .chart-bar.active::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.balance-stats-content {
    position: relative;
}

.stat-item {
    position: relative;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem !important;
}

.progress {
    position: relative;
    overflow: visible;
    background-color: rgba(0, 0, 0, 0.03);
}

.progress-tooltip {
    position: absolute;
    top: -20px;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress:hover .progress-tooltip {
    opacity: 1;
}

.dropdown .btn-link {
    color: #6c757d;
    transition: color 0.2s ease;
}

.dropdown .btn-link:hover {
    color: var(--dark-color);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dropdown-item i {
    width: 1.25rem;
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .balance-stats-header {
        padding: 0.75rem;
    }
    
    .balance-mini-chart {
        height: 50px;
    }
    
    .stat-item {
        padding: 0.5rem 0;
    }
}

/* Градиентный фон для иконок */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    box-shadow: 0 4px 20px rgba(0, 159, 227, 0.3);
}

/* Обновленные стили для блока статистики */
.balance-stats-header {
    background: linear-gradient(135deg, rgba(0, 159, 227, 0.05) 0%, rgba(0, 91, 154, 0.05) 100%);
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.trend-indicator.trend-up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.trend-indicator.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.trend-period {
    font-size: 0.875rem;
}

.stat-item {
    position: relative;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem !important;
}

.progress {
    position: relative;
    overflow: visible;
    background-color: rgba(0, 0, 0, 0.03);
}

.progress-tooltip {
    position: absolute;
    top: -20px;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress:hover .progress-tooltip {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .balance-stats-header {
        padding: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem 0;
    }
}
@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-0.5px, 0.5px); }
    40% { transform: translate(-0.5px, -0.5px); }
    60% { transform: translate(0.5px, 0.5px); }
    80% { transform: translate(0.5px, -0.5px); }
    100% { transform: translate(0); }
}
.vibrate-badge {
    animation: vibrate 0.3s linear infinite;
}
.catweb-img {
    cursor: pointer;
    transition: none;
}
@keyframes cat-vibrate {
    0% { transform: translate(0,0) rotate(0deg);}
    10% { transform: translate(-2px,1px) rotate(-2deg);}
    20% { transform: translate(2px,-1px) rotate(2deg);}
    30% { transform: translate(-2px,2px) rotate(-2deg);}
    40% { transform: translate(2px,-2px) rotate(2deg);}
    50% { transform: translate(-1px,1px) rotate(-1deg);}
    60% { transform: translate(1px,-1px) rotate(1deg);}
    70% { transform: translate(-1px,2px) rotate(-1deg);}
    80% { transform: translate(1px,-2px) rotate(1deg);}
    90% { transform: translate(0,1px) rotate(0deg);}
    100% { transform: translate(0,0) rotate(0deg);}
}
.catweb-img.vibrate {
    animation: cat-vibrate 0.35s linear 1;
}
.cat-dialog {
    position: absolute;
    background: #fff;
    border: 2px solid #009fe3;
    border-radius: 16px;
    padding: 8px 18px;
    font-size: 1.1rem;
    color: #222;
    box-shadow: 0 2px 12px rgba(0,159,227,0.08);
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.cat-dialog.show {
    opacity: 1;
    pointer-events: auto;
}
.catweb-img-wrap {
    position: relative;
    display: inline-block;
}