/* Стили главной страницы (site/index): навигация, разделы, кнопки, модалки */
.site-index-nav {
    padding-top: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.site-index-tabs .nav-link {
    cursor: pointer;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
    color: #6c757d;
    background: transparent;
}

.site-index-tabs .nav-link:hover {
    color: #495057;
    background: #e9ecef;
}

.site-index-tabs .nav-link.active {
    color: #ecfdf5;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 35%, #22c55e 75%, #bbf7d0 100%);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

.site-index-section.d-none {
    display: none !important;
}

.site-index-section:not(.d-none) {
    display: block;
}

.wallets-info,
.incomes-info,
.career-info {
    padding: 2rem 0;
}

.career-modal .career-modal-hero {
    border: none;
}
.career-modal .career-levels-diagram svg {
    display: block;
    margin: 0 auto;
}
.career-modal .career-mini-chart svg {
    display: block;
}
.career-modal .career-step-card {
    transition: box-shadow 0.2s, transform 0.2s;
}
.career-modal .career-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08) !important;
}

.wallets-info .card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wallets-info .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.wallets-info .stat-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.wallets-info .stat-item:last-child {
    border-bottom: none;
}

.wallets-info .stat-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.wallets-info .stat-value {
    font-weight: 600;
}

/* Кнопки в блоке «Карьера» — компактные, в цвет баннеров */
.career-cta-block .btn {
    padding: 0.5rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.career-cta-block .btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: rgba(79, 172, 254, 0.9);
    color: #f9fafb;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.career-cta-block .btn-primary:hover,
.career-cta-block .btn-primary:focus {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 40%, #0ea5e9 100%);
    border-color: rgba(37, 99, 235, 0.95);
    color: #ffffff;
}

.career-cta-block .btn-outline-primary {
    border-width: 1.5px;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 500;
}

.career-cta-block .btn-outline-primary:hover,
.career-cta-block .btn-outline-primary:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #4c51bf;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76, 81, 191, 0.35);
}

/* Кнопки в блоке кошельков — стиль в цвет хедера */
.wallets-info .btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 35%, #22c55e 75%, #bbf7d0 100%);
    border-color: rgba(15, 118, 110, 0.7);
    color: #ecfdf5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

.wallets-info .btn-primary:hover,
.wallets-info .btn-primary:focus {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #16a34a 80%, #bbf7d0 100%);
    border-color: rgba(13, 148, 136, 0.9);
    color: #ffffff;
}

/* Бриллиантовый перелив для D'Elite Brilliants — яркий на фоне чёрного текста */
.text-brilliant-shimmer {
    font-weight: 700;
    background: linear-gradient(110deg, #fef3c7 0%, #fff 20%, #93c5fd 40%, #fef9c3 50%, #93c5fd 60%, #fff 80%, #fef3c7 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: brilliants-shimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 0 1px rgba(147, 197, 253, 0.5));
}
@keyframes brilliants-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Сводная статистика «Доходы» — компактный деловой блок */
.site-index-stats .site-index-stat-card {
    background: #fafbfc;
    border-color: #e8eaed !important;
}
.site-index-stats .site-index-stat-label {
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}
.site-index-stats .site-index-stat-value {
    font-size: 1.1rem;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .site-index-stats .site-index-stat-value {
        font-size: 1rem;
    }
}

/* Кнопка «Купить D'Elite Brilliants» — главный призыв, премиальный акцент */
.btn-brilliants-buy {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-brilliants-buy:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-1px);
}
.btn-brilliants-buy:active {
    transform: translateY(0);
}
.btn-brilliants-buy .btn-brilliants-buy-text .text-white {
    color: rgba(255, 255, 255, 0.98) !important;
}

/* Кнопка «Узнать о выгоде» — информационная, акцент бренда */
.btn-brilliants-benefits {
    background: transparent;
    border: 1.5px solid #3b82f6;
    color: #1e40af;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-brilliants-benefits:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Кнопка «Обновить балансы» — утилитарная, нейтральная */
.btn-balance-refresh {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-balance-refresh:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

/* Кнопка «Вывести бонусы и дивиденды» — изумрудный стиль с переливами */
.btn-withdraw-premium {
    background: linear-gradient(115deg, #047857 0%, #6ee7b7 25%, #059669 50%, #a7f3d0 75%, #064e3b 100%);
    background-size: 200% 100%;
    animation: withdraw-btn-shimmer 3s ease-in-out infinite;
    border: 1px solid rgba(4, 120, 87, 0.6);
    color: #022c22;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-withdraw-premium:hover {
    color: #011c16;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.5), inset 0 1px 0 rgba(255,255,255,0.35);
    transform: translateY(-1px);
}
.btn-withdraw-premium:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.35), inset 0 1px 2px rgba(0,0,0,0.15);
}
@keyframes withdraw-btn-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Модальное окно «Выгода D'Elite Brilliants» */
.brilliants-benefits-modal .modal-content {
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 50%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}
.brilliants-benefits-modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.6);
    border-radius: 12px 12px 0 0;
}
.brilliants-benefits-modal .modal-header .modal-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.15rem;
}
.brilliants-benefits-modal .modal-body {
    padding: 1.25rem 1.5rem;
    color: #334155;
    line-height: 1.6;
}
.brilliants-benefits-content .brilliants-benefits-intro {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #1e293b;
}
.brilliants-benefits-content .brilliants-benefits-chance {
    margin-bottom: 1.25rem;
    color: #334155;
    font-weight: 500;
}
.brilliants-benefits-list {
    padding-left: 1.35rem;
    margin-bottom: 0;
}
.brilliants-benefits-list li {
    margin-bottom: 1rem;
}
.brilliants-benefits-list li:last-child {
    margin-bottom: 0;
}
.brilliants-benefits-chart-wrap {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.brilliants-benefits-chart {
    display: block;
    max-width: 100%;
    height: auto;
}
.brilliants-benefits-chart .brilliants-chart-label {
    fill: #64748b;
    font-family: inherit;
}
.brilliants-benefits-chart .brilliants-chart-value {
    fill: #1e40af;
    font-weight: 600;
    font-family: inherit;
}
.brilliants-benefits-chart .brilliants-chart-growth {
    fill: #059669;
    font-family: inherit;
}
.brilliants-benefits-chart-caption {
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
}
.brilliants-benefits-reference {
    border-color: #e2e8f0 !important;
}
.brilliants-reference-list {
    padding-left: 1.25rem;
}
.brilliants-reference-list li {
    margin-bottom: 0.35rem;
}
.brilliants-reference-list li:last-child {
    margin-bottom: 0;
}

/* Кнопка «Узнать подробности» в разделе финансирования */
.btn-funding-details {
    background: transparent;
    border: 1.5px solid #0ea5e9;
    color: #0284c7;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-funding-details:hover {
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

/* Модальное окно «Существенные условия финансирования» */
.funding-terms-modal .modal-content {
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 50%, #ecfdf5 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}
.funding-terms-modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px 12px 0 0;
}
.funding-terms-modal .modal-header .modal-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.15rem;
}
.funding-terms-modal .modal-body {
    padding: 1.25rem 1.5rem;
    color: #334155;
    line-height: 1.6;
}
.funding-terms-card {
    transition: box-shadow 0.2s, transform 0.2s;
}
.funding-terms-card:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12) !important;
}
.funding-terms-icon {
    flex-shrink: 0;
}

/* Финансовый калькулятор «Получить финансирование» — светлая голубая тема */
.funding-calculator-wrapper {
    background: linear-gradient(135deg, #e0f4ff 0%, #f0f9ff 50%, #e8f4fc 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.funding-input-module .funding-field-label {
    display: block;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.funding-input-module .funding-field-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.funding-slider {
    height: 8px;
    --bs-primary: #0ea5e9;
}

.funding-slider::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    background: #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

.funding-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #0ea5e9;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

.funding-input-number {
    max-width: 200px;
}

.funding-result-module {
    border: 1px solid #e2e8f0;
}

.funding-result-item .funding-result-value {
    font-size: 1.15rem;
    color: #0f172a;
}

.funding-apply-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.funding-apply-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.funding-info {
    padding: 2rem 0;
}

/* Модальное подтверждение заявки — предотвращение смещения вёрстки при открытии на мобильных */
#fundingConfirmModal .modal-dialog-scrollable .modal-body {
    max-height: min(70vh, 400px);
}

/* Фикс сдвига при открытии funding-модалки: body фиксируется с сохранением позиции скролла */
@media (max-width: 768px) {
    body.funding-modal-open {
        overflow: hidden !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
}

/* ---- Лендинг для неавторизованных пользователей ---- */
.guest-landing {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.guest-landing-banners {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-bottom: 2.5rem;
}

/* Высота слайдера для гостей — достаточная, чтобы кнопка не наезжала на текст */
.guest-landing-banners.banners-carousel .carousel-item {
    min-height: 233px !important;
}

@media (max-width: 768px) {
    .guest-landing-banners.banners-carousel .carousel-item {
        min-height: 285px !important;
    }
}

.guest-hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 40%, #a7f3d0 70%, #6ee7b7 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.guest-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
    pointer-events: none;
}

.guest-hero-title {
    font-weight: 700;
    color: #065f46;
    font-size: 1.6rem;
    line-height: 1.3;
}

.guest-hero-lead {
    font-size: 1.05rem;
    color: #047857;
    line-height: 1.65;
}

.guest-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.guest-stat-badge {
    display: inline-flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.guest-stat-label {
    font-size: 0.8rem;
    color: #047857;
    margin-bottom: 0.15rem;
}

.guest-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #065f46;
}

.guest-btn-register {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: none;
    color: #ecfdf5;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.35);
}

.guest-btn-register:hover {
    background: linear-gradient(135deg, #0d5c55 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
}

.guest-btn-login {
    border-width: 1.5px;
    font-weight: 500;
}

.guest-hero-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    opacity: 0.95;
}

.guest-hero-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(180, 83, 9, 0.2));
}

.guest-section-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.5rem;
}

.guest-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.guest-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.3);
}

.guest-card-icon {
    width: 56px;
    height: 56px;
}

.guest-card-icon svg {
    width: 100%;
    height: 100%;
}

.guest-card-icon-brilliants { color: #f59e0b; }
.guest-card-icon-dividends { color: #0ea5e9; }
.guest-card-icon-funding { color: #8b5cf6; }
.guest-card-icon-referral { color: #f59e0b; }

.guest-card-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.55;
}

.guest-trust {
    background: linear-gradient(165deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08);
}

@media (min-width: 992px) {
    .guest-trust .row > .col-lg-3 {
        flex: 0 0 22.79%;
        max-width: 22.79%;
    }
    .guest-trust .row > .guest-trust-col-noncustodial {
        flex: 0 0 31.63%;
        max-width: 31.63%;
    }
}

.guest-trust-icon {
    width: 48px;
    height: 48px;
    color: #0f766e;
}

.guest-trust-icon svg {
    width: 100%;
    height: 100%;
}

.guest-trust-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.guest-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1);
}

.guest-cta-title {
    font-weight: 600;
    color: #065f46;
    font-size: 1.4rem;
}

.guest-cta-lead {
    color: #047857;
    font-size: 1.05rem;
}

.guest-fn-ref,
.about-fn-ref {
    font-size: 0.7em;
    color: #6b7280;
}

.guest-footnotes,
.about-footnotes {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .guest-hero-title {
        font-size: 1.35rem;
    }

    .guest-hero-lead {
        font-size: 0.95rem;
    }

    .guest-cta {
        padding: 1.5rem 1rem !important;
    }
}
