/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #dc3545;
    --primary-dark: #bb2d3b;
    --primary-light: rgba(220, 53, 69, 0.1);
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-900: #212529;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 60px;
}

@media (min-width: 992px) {
    body {
        padding-top: 70px;
    }
}

body.menu-open {
    overflow: hidden;
}

/* ===== ОБЩИЕ КОМПОНЕНТЫ ===== */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header:first-child {
    border-radius: 16px 16px 0 0 !important;
}

.card-footer:last-child {
    border-radius: 0 0 16px 16px !important;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 8px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    animation: fadeIn 0.8s ease forwards;
}

.badge.bg-danger {
    animation: pulse 2s infinite;
}

/* ===== HERO SECTION (общий для всех страниц) ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    color: white;
    margin-bottom: 2rem;
}

.hero-section .position-absolute {
    pointer-events: none;
}

.hero-section .badge {
    backdrop-filter: blur(4px);
}

.hero-section .btn-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    border: none;
    transition: all 0.3s ease;
}

.hero-section .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== НАВИГАЦИЯ (DESKTOP) ===== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: #fff5f5;
}

.dropdown-menu {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-top: 3px solid var(--primary);
    min-width: 240px;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #475569;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: #fff5f5;
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ ===== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1041;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-overlay.active {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    min-width: 280px;
    height: 100vh;
    background: white;
    z-index: 1042;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.mobile-sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 50%;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-sidebar-close:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-user-avatar-lg {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), #bb2d3b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.mobile-user-profile {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.mobile-sidebar-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-menu-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.mobile-sidebar .list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 0.75rem 1rem;
    color: #475569;
    transition: all 0.2s;
    background: transparent;
    white-space: normal;
    word-break: break-word;
}

.mobile-sidebar .list-group-item:hover,
.mobile-sidebar .list-group-item:active {
    background: #fff5f5;
    color: var(--primary);
}

.mobile-sidebar .list-group-item.text-danger {
    color: var(--primary) !important;
}

.mobile-sidebar .list-group-item.text-danger:hover {
    background: #fee2e2;
}

.mobile-sidebar .list-group-item small {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
    padding-left: 0;
}

.mobile-sidebar-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.8rem;
}

.mobile-submenu .list-group-item {
    cursor: pointer;
}

.mobile-submenu .submenu-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #94a3b8;
}

.mobile-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-submenu-items {
    background: #f8fafc;
    border-radius: 8px;
    margin: 4px 0 8px 0;
    overflow: hidden;
}

.mobile-submenu-items .list-group-item {
    padding-left: 2.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
}

.mobile-submenu-items .list-group-item:last-child {
    border-bottom: none !important;
}

.fixed-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 576px) {
    .mobile-sidebar {
        width: 90%;
        min-width: 260px;
    }
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    padding: 4rem 0 2rem;
    margin-top: 0 !important;
    position: relative;
    font-size: 0.95rem;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #fd7e14, #ffc107, #28a745, #17a2b8);
}

.footer-logo {
    font-size: 1.8rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo .brand-main {
    color: #ffffff;
}

.footer-logo .brand-highlight {
    color: var(--primary);
}

.footer-logo .brand-ext {
    color: #ffc107;
}

.footer-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 350px;
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #fd7e14);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1rem;
}

.contact-info {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-info a,
.contact-info span {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-info a:hover {
    color: var(--primary);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 2rem;
}

.footer-bottom {
    padding-top: 0.5rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.payment-label {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icons {
    display: flex;
    gap: 1rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.payment-icons i:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-metrics {
    margin-top: 1.5rem;
}

.metric-link {
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.metric-link:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .main-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-title {
        margin-top: 1rem;
    }
    
    .footer-payments {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .footer-contacts li {
        justify-content: center;
    }
    
    .footer-payments {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .main-footer {
        padding: 2rem 0 1rem;
        margin-top: 2.5rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .stat-item {
        align-items: center;
    }
}

@media (prefers-color-scheme: dark) {
    .ad-notification {
        background: #ffffff;
        color: #212529;
    }
    
    .ad-text {
        color: #212529;
    }
    
    .ad-close {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #6c757d;
    }
}

@supports (padding: max(0px)) {
    .ad-notification {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    
    .main-footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* Стили для рекламного уведомления */
.ad-notification {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 1200px;
    background: #fff;
    color: #212529;
    padding: 1rem;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 2px solid #dc3545;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ad-container {
    width: 100%;
}

.ad-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.ad-text {
    flex: 1;
    min-width: 250px;
    font-weight: 500;
    text-align: left;
}

.ad-button {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.ad-button:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.ad-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ad-banner {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.ad-banner img:hover {
    transform: scale(1.01);
}

.ad-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.ad-close:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .ad-notification {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ad-notification {
        width: 98%;
        max-width: 98%;
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .ad-notification {
        width: 98%;
        max-width: 1200px;
    }
}
/* Уменьшение текста в блоке ссылок */
.ad-text {
    font-size: 0.85rem; /* Уменьшаем размер текста */
}

.ad-text a,
.ad-text a:link,
.ad-text a:visited {
    font-size: 0.85rem; /* Уменьшаем размер ссылок */
    text-decoration: none;
    color: #000000;
    margin-right: 5px;
}

.ad-text a:hover {
    text-decoration: underline;
}

/* Если ссылки отображаются через div#links_block_5_1 */
#links_block_5_1 {
    font-size: 0.85rem;
}

#links_block_5_1 a {
    font-size: 0.85rem;
}

/* ===== АВАТАР ПОЛЬЗОВАТЕЛЯ ===== */
.user-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), #bb2d3b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

/* ===== TASK CARD ===== */
.task-card {
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.task-icon {
    transition: all 0.3s ease;
}

.task-card:hover .task-icon div {
    background-color: rgba(220, 53, 69, 0.2) !important;
}

.task-card:hover .task-icon i {
    transform: scale(1.1);
}

.task-details-panel {
    animation: slideDown 0.3s ease;
    border-top: 1px solid rgba(220, 53, 69, 0.1);
}

/* ===== ПРОГРЕСС БАР ===== */
.progress {
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), #bb2d3b);
}

/* ===== КНОПКИ ===== */
.btn-danger {
    background: linear-gradient(135deg, var(--primary), #bb2d3b);
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bb2d3b, #9a2a2f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger {
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-danger:hover,
.btn-outline-danger.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, #198754, #157347);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347, #0f5d3a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #000;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #c69500);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ===== ТАБЛИЦЫ ===== */
.table th {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    color: #1e293b;
}

.table > :not(caption) > * > * {
    padding: 1rem 1rem;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ===== ФОРМЫ ===== */
.form-control,
.form-select {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    border-color: var(--primary);
}

.form-control.is-invalid {
    border-color: var(--primary);
    background-image: none;
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    color: var(--primary);
    background-color: #f8fafc;
    border: none;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    color: var(--primary);
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== ШАГИ (СТЕППЕР) ===== */
.step-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item.active {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: var(--primary);
    color: white;
}

/* ===== АККОРДЕОН ===== */
.accordion-button:not(.collapsed) {
    background-color: rgba(220, 53, 69, 0.05);
    color: var(--primary);
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

/* ===== РАНГ СЛАЙДЕР ===== */
.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}

.form-range::-ms-thumb {
    background: var(--primary);
}

/* ===== uLogin ===== */
#uLogin,
.uLogin {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

#uLogin > a,
.uLogin a {
    transition: all 0.2s ease !important;
}

#uLogin > a:hover,
.uLogin a:hover {
    transform: translateY(-2px);
}

/* ===== СПЕЦИФИЧЕСКИЕ СТИЛИ ДЛЯ СТРАНИЦ ===== */

/* === Главная страница (_index.php) === */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.bg-opacity-20 {
    --bs-bg-opacity: 0.2;
}
.bg-gradient {
    background: linear-gradient(135deg, var(--bs-gradient-start), var(--bs-gradient-end));
}
.bg-gradient-danger {
    --bs-gradient-start: var(--primary);
    --bs-gradient-end: #bb2d3b;
}
.opacity-90 {
    opacity: 0.9;
}

/* === Новости (_news.php) === */
.hover-bg-light:hover {
    background-color: #f8f9fa;
}
.news-content {
    color: #4a5568;
    line-height: 1.6;
}
.news-content h1,
.news-content h2,
.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}
.news-content p {
    margin-bottom: 1rem;
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.highlight-card {
    animation: highlightPulse 2s ease;
}
@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
    20%, 80% { box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3); }
}

/* === Восстановление пароля (_recovery.php) === */

/* === Серфинг (_serfing.php) === */

/* === Вход (_signin.php) === */

/* === Регистрация (_signup.php) === */
.password-strength {
    min-height: 24px;
    font-size: 0.875rem;
}

/* === Статистика (_statistics.php) === */
.col-md-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}
@media (max-width: 1200px) {
    .col-md-2-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* === Рекламодателю (_advertiser.php) === */
.timeline-step {
    display: flex;
    align-items: flex-start;
}
.timeline-step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
.bg-gradient-warning {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

/* === Пользовательское соглашение (_terms.php) === */
.terms-section {
    transition: all 0.3s ease;
}
.btn-outline-danger.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === Кабинет пользователя (_user_account.php) === */

/* === Добавление баннера (banners_add_site.php) === */
.banner-preview {
    width: 100%;
    min-height: 100px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6;
}
.preview-placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
    text-align: center;
}

/* === Редактирование баннера (banners_edit_site.php) === */

/* === Получение кода баннера (banners_get_code.php) === */
.code-block {
    background: #1e1e1e !important;
    border: 1px solid #333;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* === Мои баннеры (banners_my_banners.php) === */

/* === Мои сайты для баннеров (banners_my_sites.php) === */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 6px;
}
.btn-group-vertical .btn-sm {
    text-align: left;
    border-radius: 0 !important;
}
.btn-group-vertical .btn-sm:first-child {
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}
.btn-group-vertical .btn-sm:last-child {
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

/* === Размещение баннера (banners_place_banner.php) === */
.upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
}
.upload-area:hover {
    border-color: var(--primary) !important;
    background: rgba(220, 53, 69, 0.05) !important;
}
.color-btn {
    transition: all 0.2s ease;
    position: relative;
}
.color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}
.color-btn-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.color-btn:hover .color-btn-tooltip {
    visibility: visible;
    opacity: 1;
}
.chart-container {
    position: relative;
    width: 100%;
}

/* === Статистика баннеров (banners_stats.php) === */

/* === Добавление сайта для ссылок (showcase_add_site.php) === */

/* === Покупка ссылки (showcase_buy_link.php) === */

/* === Мои купленные ссылки (showcase_buy_links.php) === */

/* === Редактирование сайта ссылок (showcase_edit_site.php) === */

/* === Получение кода ссылок (showcase_get_code.php) === */

/* === Мои купленные ссылки (showcase_my_links.php) === */

/* === Мои сайты для ссылок (showcase_my_sites.php) === */

/* === Оплата ссылки (showcase_pay_link.php) === */
.payment-method .btn-check:checked + .btn-outline-primary {
    background: rgba(220, 53, 69, 0.05);
    border: 2px solid var(--primary);
    color: var(--primary);
}
.payment-method .btn-check + .btn-outline-primary {
    border: 1px solid #dee2e6;
    color: #212529;
    transition: all 0.3s ease;
}
.payment-method .btn-check + .btn-outline-primary:hover {
    background: #f8f9fa;
    border-color: var(--primary);
}
#pinSection {
    transition: opacity 0.2s ease;
}

/* === Статистика ссылок (showcase_stats.php) === */

/* === Бонус (_bonus.php) === */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid #198754;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}
.pulse-ring.delay-2 {
    animation-delay: 1s;
}
.bonus-button-animation {
    position: relative;
    height: 100px;
}
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
}
.countdown-item {
    text-align: center;
    min-width: 70px;
}
.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffc107;
    background: #fff3cd;
    padding: 0.5rem;
    border-radius: 8px;
    line-height: 1;
}
.countdown-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-transform: uppercase;
}
.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dee2e6;
}
.cooldown-circle {
    width: 100px;
    height: 100px;
    border: 3px solid #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulseWarning 2s infinite;
}
@keyframes pulseWarning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.bonus-success-icon {
    animation: bounceIn 1s ease;
}
.timer-container {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid #e9ecef;
}
.timer-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}
@media (max-width: 768px) {
    .countdown-value {
        font-size: 1.75rem;
    }
    .countdown-item {
        min-width: 50px;
    }
    .timer-display {
        font-size: 2rem;
    }
}
.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}
.table-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.05) !important;
}

/* === Пополнение баланса (_insert.php) === */

/* === Вывод на ЮMoney (_payment_yoomoney.php) === */
.sticky-custom {
    position: sticky;
    top: 20px;
    z-index: 100;
}
@media (max-width: 992px) {
    .sticky-custom {
        position: static;
    }
}

/* === Рефералы (_referals.php) === */

/* === Серфинг (serfing.php) === */
.card.highlighted {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}
.hover-danger:hover {
    color: var(--primary) !important;
}
.surfblockopen {
    background-color: #d0F0e0;
    border-color: #D0D0D0;
    color: #808080;
    opacity:0.3;
    display:none;
}
.panel-success {
    border-width: 2px;
}

/* === Статистика серфинга (serfing_account.php) === */

/* === Добавление серфинга (serfing_add.php) === */
.sticky-custom {
    position: sticky;
    top: 20px;
    z-index: 100;
}
.tariff-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.tariff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.1) !important;
}
.tariff-card.selected {
    border-color: var(--primary) !important;
    border-width: 2px !important;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.15) !important;
}
@media (max-width: 992px) {
    .sticky-custom {
        position: static;
        top: auto;
    }
}

/* === Кабинет серфинга (serfing_cabinet.php) === */

/* === Меню серфинга (serf_menu.php) === */
.surfing-nav {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.1);
}
.surfing-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.1);
    height: 100%;
}
.surfing-nav-link:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.15);
}
.surfing-nav-link.active {
    background: linear-gradient(135deg, var(--primary), #bb2d3b);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}
.surfing-nav-link.active .surfing-nav-icon {
    background: rgba(255, 255, 255, 0.2);
}
.surfing-nav-link.active .surfing-nav-icon i {
    color: white;
}
.surfing-nav-link.active .surfing-nav-title {
    color: white;
}
.surfing-nav-link.active .surfing-nav-desc {
    color: rgba(255, 255, 255, 0.8);
}
.surfing-nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}
.surfing-nav-link:hover .surfing-nav-icon {
    background: rgba(220, 53, 69, 0.15);
    transform: scale(1.05);
}
.surfing-nav-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}
.surfing-nav-text {
    display: flex;
    flex-direction: column;
}
.surfing-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.surfing-nav-desc {
    font-size: 0.75rem;
    color: #64748b;
    transition: color 0.3s ease;
}
.surfing-nav-link:hover .surfing-nav-title {
    color: var(--primary);
}
.surfing-nav-link:hover .surfing-nav-desc {
    color: #7f8c8d;
}
@media (max-width: 768px) {
    .surfing-nav {
        padding: 0.75rem;
    }
    .surfing-nav-link {
        padding: 0.75rem 1rem;
    }
    .surfing-nav-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    .surfing-nav-icon i {
        font-size: 1.2rem;
    }
    .surfing-nav-title {
        font-size: 0.9rem;
    }
    .surfing-nav-desc {
        font-size: 0.7rem;
    }
}
.surfing-nav-link {
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}
.col-md-4:nth-child(1) .surfing-nav-link {
    animation-delay: 0.1s;
}
.col-md-4:nth-child(2) .surfing-nav-link {
    animation-delay: 0.2s;
}
.col-md-4:nth-child(3) .surfing-nav-link {
    animation-delay: 0.3s;
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== УТИЛИТЫ ===== */
.bg-opacity-20 {
    --bs-bg-opacity: 0.2;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-75 {
    opacity: 0.75;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* ===== КРАСНЫЙ СКРОЛЛБАР ===== */

/* Для Chrome, Safari, Edge, Opera */
::-webkit-scrollbar {
    width: 12px; /* ширина вертикального скроллбара */
    height: 12px; /* высота горизонтального скроллбара */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* цвет дорожки */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #dc3545; /* КРАСНЫЙ цвет ползунка */
    border-radius: 10px;
    border: 2px solid #f1f1f1; /* отступы для эффекта "парящего" ползунка */
}

::-webkit-scrollbar-thumb:hover {
    background: #bb2d3b; /* более темный красный при наведении */
}

::-webkit-scrollbar-thumb:active {
    background: #9a2a2f; /* еще темнее при нажатии */
}

/* Для Firefox */
* {
    scrollbar-width: thin; /* "auto" или "thin" */
    scrollbar-color: #dc3545 #f1f1f1; /* первый - цвет ползунка, второй - цвет дорожки */
}

/* Для IE и Edge (старые версии) */
body {
    -ms-overflow-style: none; /* скрываем стандартный скроллбар */
}

/* Альтернативный вариант для Chrome с более тонким ползунком */
.thin-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.thin-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #bb2d3b;
}
.header-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    position: relative;
    z-index: 1020;
    margin-top: -1px; /* чтобы точно прилегало к меню */
}

/* Адаптация для мобильных */
@media (max-width: 991.98px) {
    .header-divider {
        margin-top: 0;
    }
}
/* Отключаем тяжелые эффекты на мобильных */
@media (max-width: 768px) {
    
    /* Отключаем background-attachment: fixed (самая частая причина лагов) */
    .hero-section {
        background-attachment: scroll !important;
    }
    
    /* Отключаем или упрощаем анимации */
    .hover-lift {
        transform: none !important;
        transition: none !important;
    }
    
    .hover-lift:hover {
        transform: none !important;
    }
    
    /* Оптимизируем карточки */
    .card {
        transform: translateZ(0); /* Включаем аппаратное ускорение */
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000;
        -webkit-perspective: 1000;
    }
    
    /* Отключаем тени на мобильных для плавности */
    .card.shadow-lg {
        box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05) !important;
    }
    
    /* Оптимизируем градиенты */
    [class*="gradient"] {
        background-attachment: scroll !important;
    }
    
    /* Отключаем blur эффекты */
    .backdrop-filter,
    [style*="backdrop-filter"] {
        backdrop-filter: none !important;
    }
    
    /* Оптимизируем анимированные фоны */
    .position-absolute[style*="radial-gradient"] {
        opacity: 0.3; /* Уменьшаем opacity для производительности */
    }
}

/* Дополнительные оптимизации для iOS */
@supports (-webkit-overflow-scrolling: touch) {
    /* Исправляем скролл на iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Оптимизируем для Safari */
    .card,
    .hero-section,
    [class*="bg-"] {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Отключаем hover эффекты на тач-устройствах */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .btn:hover,
    [class*="hover-"]:hover {
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
}


/* ===== УНИВЕРСАЛЬНАЯ HERO-СЕКЦИЯ ===== */

.hero-section {
    min-height: 400px;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Контейнер внутри hero для центрирования контента */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Для страниц с формами (вход, регистрация, восстановление) */
.page-auth .hero-section,
.signin .hero-section,
.signup .hero-section,
.recovery .hero-section {
    min-height: 350px;
    padding: 4rem 0;
}

/* Для информационных страниц (новости, статистика) */
.page-info .hero-section,
.news .hero-section,
.statistics .hero-section {
    min-height: 380px;
    padding: 4.5rem 0;
}

/* Для главной страницы */
.index .hero-section,
.home .hero-section {
    min-height: 550px;
    padding: 6rem 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px !important;
        padding: 2.5rem 0 !important;
    }
    
    /* Немного выше для главной на мобильных */
    .index .hero-section,
    .home .hero-section {
        min-height: 350px !important;
        padding: 3rem 0 !important;
    }
}





/* ===== ОТКЛЮЧЕНИЕ АНИМАЦИЙ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ ===== */

/* Отключаем анимации для всех элементов с классом badge */
.badge,
.badge *,
[class*="badge"] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Отключаем анимации для всех элементов с bg-opacity */
[class*="bg-opacity"] {
    animation: none !important;
    transition: none !important;
}

/* Отключаем pulse анимацию для красных бейджей */
.badge.bg-danger {
    animation: none !important;
}

/* Отключаем все возможные анимации */
.pulse-ring,
.pulse-ring.delay-1,
.pulse-ring.delay-2,
.cooldown-circle,
.bonus-success-icon,
.timer-container,
[data-aos],
[class*="animate-"],
[class*="hover-"] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}



/* ===== ЕДИНАЯ ШИРИНА ДЛЯ ВСЕГО САЙТА ===== */
.container,
.container-fluid,
.navbar .container,
.footer .container,
.main-footer .container {
    max-width: 1500px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .container,
    .container-fluid,
    .navbar .container,
    .footer .container,
    .main-footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

