/* ===== FORMS-MODALS.CSS - ОПТИМИЗИРОВАННАЯ ВЕРСИЯ ===== */

/* ===== 1. БАЗОВЫЕ ФИКСЫ ===== */
* {
    box-sizing: border-box;
}

/* ===== 2. КНОПКА BACK TO HOME ===== */
.back-to-home-btn {
    font-size: var(--text-sm) !important;
    padding: var(--space-2) var(--space-4) !important;
    white-space: nowrap !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ===== 3. LANGUAGE MODAL ===== */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.language-modal.show {
    opacity: 1;
}

.language-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.language-modal .modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #09aff4;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.language-modal.show .modal-content {
    transform: scale(1);
}

.language-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
}

.language-modal .modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.language-modal .modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-modal .modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-modal .modal-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.language-modal .modal-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-modal .modal-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.language-modal .modal-body {
    padding: 16px 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text {
    color: #e2e8f0;
    line-height: 1.4;
    font-size: 13px;
}

.feature-text strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.important-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    margin-top: 12px;
}

.note-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.note-content {
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.3;
}

.note-content strong {
    color: var(--primary);
    font-weight: 600;
}

.note-warning {
    color: #fbbf24;
    font-weight: 500;
}

.language-modal .modal-footer {
    padding: 0 24px 24px;
}

.language-modal .btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.language-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.language-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.language-modal .btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.language-modal .btn:hover svg {
    transform: translateX(2px);
}

/* ===== 4. КАЛЬКУЛЯТОР ===== */
.calculator-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.calculator-wrapper.compact {
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.calculator-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.calculator-main.compact {
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.calculator-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.calculator-subtitle.compact {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
}

/* Баланс кошелька */
.wallet-balance-section {
    text-align: center;
}

.balance-input-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-6);
}

.balance-input-wrapper.compact {
    margin-bottom: var(--space-3);
}

.currency-symbol {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    pointer-events: none;
    z-index: 2;
}

.balance-input {
    width: 280px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 0 var(--space-4) 0 var(--space-10);
    color: var(--text-primary);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    transition: all var(--transition-normal);
}

.balance-input.compact {
    height: 45px;
    font-size: var(--text-xl);
}

.balance-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.balance-input:focus {
    outline: none;
    box-shadow: var(--glow);
    border-color: var(--primary-light);
}

/* Слайдер */
.balance-slider-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto var(--space-4);
    padding: 0 var(--space-4);
}

.balance-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--primary) 50%, var(--primary-light) 100%);
    outline: none;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.balance-slider:hover {
    opacity: 1;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Тарифы */
.tier-selection {
    text-align: center;
}

.tier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: 400px;
    margin: 0 auto;
}

.tier-grid.compact {
    gap: var(--space-2);
}

.tier-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
    user-select: none;
}

.tier-card.compact {
    padding: var(--space-3);
}

.tier-card:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 175, 244, 0.2);
}

.tier-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.tier-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tier-name {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.tier-rate {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
}

.tier-requirement {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.tier-selected {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Результаты калькулятора */
.calculator-results {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-6);
}

.calculator-results.compact {
    padding-top: var(--space-4);
}

.earnings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.earnings-grid.compact {
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.earning-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.2s ease;
}

.earning-card.compact {
    padding: var(--space-3);
}

.earning-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.earning-card.yearly {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-color: var(--primary);
}

.earning-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.earning-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.earning-card.compact .earning-value {
    font-size: var(--text-lg);
}

.earning-period {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ===== 5. АКТИВНЫЕ ПОЛЬЗОВАТЕЛИ ===== */
.active-users-section {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: linear-gradient(to top, rgba(20, 24, 35, 0.98) 0%, rgba(20, 24, 35, 0.95) 60%, rgba(20, 24, 35, 0) 100%);
    backdrop-filter: blur(8px);
    padding: var(--space-4) var(--space-6) var(--space-6);
    display: flex !important;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.active-users-section.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.active-users-button {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-4) var(--space-6);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 280px;
    justify-content: space-between;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(9, 175, 244, 0.2);
    pointer-events: all !important;
    position: relative;
    overflow: hidden;
}

.active-users-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(9, 175, 244, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.active-users-button:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--glow), 0 8px 24px rgba(9, 175, 244, 0.3);
}

.active-users-button.active {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    box-shadow: var(--glow), 0 8px 24px rgba(9, 175, 244, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.users-icon {
    font-size: var(--text-xl);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.active-users-button:hover .users-icon,
.active-users-button.active .users-icon {
    transform: scale(1.1);
}

.users-info {
    text-align: left;
    flex-grow: 1;
}

.users-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.users-count {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    transition: color 0.2s ease;
}

.users-arrow {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.active-users-button.active .users-arrow {
    transform: rotate(180deg);
    color: var(--primary-light);
}

/* Панель активных пользователей */
.active-users-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.active-users-panel.show {
    opacity: 1;
    visibility: visible;
}

.active-users-panel-content {
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-6);
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-xl), var(--glow);
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.active-users-panel.show .active-users-panel-content {
    transform: translateY(0);
}

.panel-handle {
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    margin: 0 auto var(--space-4);
    opacity: 0.5;
    transition: all 0.2s ease;
    cursor: grab;
}

.panel-handle:hover {
    opacity: 0.8;
    transform: scaleY(1.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: var(--font-weight-medium);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat-value {
    display: block;
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.panel-content {
    max-height: 50vh;
    overflow-y: auto;
}

.users-list {
    margin-bottom: var(--space-4);
}

.user-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    margin-bottom: var(--space-3);
    background: var(--bg-card);
    border: 1px solid transparent;
}

.user-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    transform: translateX(6px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-country {
    font-size: 16px;
    opacity: 0.8;
}

.user-address {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
    font-family: 'Monaco', 'Menlo', monospace;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.user-stats span:first-child {
    color: var(--text-muted);
}

.user-earning {
    color: var(--primary) !important;
    font-weight: 600;
}

.whale-badge {
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.8;
}

.panel-footer {
    text-align: center;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-4);
}

/* ===== 6. FAQ И TESTIMONIALS ===== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: var(--space-6);
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(9, 175, 244, 0.1);
}

.faq-question-text {
    flex: 1;
    margin-right: var(--space-4);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6);
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 var(--space-6) var(--space-6);
    opacity: 1;
}

/* Testimonial карточки */
.testimonial-card {
    background: linear-gradient(145deg, rgba(9, 175, 244, 0.06), rgba(45, 185, 255, 0.04));
    border: 1px solid rgba(9, 175, 244, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(9, 175, 244, 0.2);
}

.testimonials-grid-single-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.testimonials-grid-single-row .testimonial-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.testimonial-card .faq-answer {
    max-height: none;
    padding: 0;
    margin-bottom: var(--space-6);
    flex-grow: 1;
    opacity: 1;
}

.testimonial-card .faq-answer p {
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-6);
    position: relative;
}

.testimonials-grid-single-row .faq-answer p {
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.testimonial-card .faq-answer p::before {
    content: '"';
    font-size: 3rem;
    color: rgba(9, 175, 244, 0.2);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
    font-weight: bold;
    z-index: 0;
}

.testimonial-author {
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.testimonial-earnings {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

/* Stats и Features сетки */
.stats-grid-single-row,
.features-grid-single-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1200px;
}

/* ===== 7. ERROR PAGE КОМПОНЕНТЫ ===== */
.inactive-web3-banner-centered {
    background: linear-gradient(135deg, var(--bg-card), rgba(9, 175, 244, 0.1));
    border: 2px solid var(--primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin: var(--space-8) auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--glow);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.banner-icon {
    font-size: var(--text-4xl);
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(9, 175, 244, 0.5));
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-text h3 {
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-text p {
    margin: 0 0 var(--space-1);
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-family: 'Monaco', 'Menlo', monospace;
    word-break: break-all;
}

.balance-text {
    color: var(--text-muted) !important;
    font-size: var(--text-sm) !important;
}

.banner-connect-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.banner-connect-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 175, 244, 0.4);
}

/* Лицензия */
.license-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--primary) !important;
    border-radius: var(--radius-2xl) !important;
    padding: var(--space-8);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg), var(--glow);
}

.trust-wallet-header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.wallet-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.wallet-icon {
    filter: drop-shadow(0 0 15px rgba(9, 175, 244, 0.6));
}

.license-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(9, 175, 244, 0.1);
}

.license-label {
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
}

.license-value {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    text-align: right;
}

.security-grade {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(9, 175, 244, 0.5);
}

.licensed-features {
    margin: var(--space-6) 0;
}

.licensed-features h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.verification-section {
    margin-top: var(--space-6);
    text-align: center;
}

.verification-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.verification-code {
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    color: var(--primary);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    font-family: 'Monaco', 'Menlo', monospace;
    letter-spacing: 2px;
    text-align: center;
    box-shadow: var(--glow);
    text-shadow: 0 0 10px rgba(9, 175, 244, 0.5);
}

/* ===== 8. Z-INDEX CONTROL ===== */
div[class*="modal"]:not(.language-modal),
div[class*="Modal"],
div[class*="popup"],
div[class*="Popup"],
[class*="wallet"][class*="modal"],
[class*="connect"][class*="modal"],
[class*="web3"][class*="modal"] {
    z-index: 99999 !important;
}

[class*="backdrop"],
[class*="Backdrop"],
[class*="overlay"]:not(.modal-overlay) {
    z-index: 99998 !important;
}

.active-users-section { z-index: 1000 !important; }
.active-users-panel { z-index: 10000 !important; }
.language-modal { z-index: 10000; }
.header { z-index: 500; }

/* ===== 9. UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* ===== 10. RESPONSIVE ===== */
@media (min-width: 768px) {
    .calculator-main {
        grid-template-columns: 1fr 1fr;
    }

    .earnings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid-single-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .earnings-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid-single-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .back-to-home-btn {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    .language-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .language-modal .modal-content {
        max-width: 95%;
        max-height: calc(100vh - 40px);
    }

    .language-modal .modal-header,
    .language-modal .modal-body,
    .language-modal .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .feature-item {
        padding: 10px;
        gap: 10px;
    }

    .calculator-wrapper {
        padding: var(--space-4);
        margin: var(--space-4) 0;
    }

    .balance-input {
        width: 100%;
        max-width: 280px;
        height: 50px;
        font-size: var(--text-xl);
    }

    .active-users-section {
        padding: var(--space-3) var(--space-4) var(--space-5);
    }

    .active-users-button {
        min-width: 260px;
        padding: var(--space-3) var(--space-4);
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .banner-connect-btn {
        width: 100%;
    }

    .license-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .license-value {
        text-align: left;
    }

    .testimonials-grid-single-row {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    .testimonial-card .faq-answer p {
        font-size: var(--text-base);
    }

    .stats-grid-single-row,
    .features-grid-single-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .back-to-home-btn {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    .language-modal {
        padding: 5px;
        padding-top: 10px;
    }

    .language-modal .modal-content {
        width: 95%;
        max-height: calc(100vh - 20px);
    }

    .language-modal .modal-header {
        padding: 20px 16px 12px;
    }

    .language-modal .modal-body {
        padding: 12px 16px;
    }

    .language-modal .modal-footer {
        padding: 0 16px 20px;
    }

    .feature-item {
        padding: 8px;
        gap: 8px;
    }

    .feature-text {
        font-size: 12px;
    }

    .active-users-button {
        min-width: 240px;
        padding: var(--space-2) var(--space-3);
    }

    .users-label {
        font-size: 10px;
    }

    .users-count {
        font-size: 13px;
    }

    .stats-grid-single-row,
    .features-grid-single-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .language-modal {
        padding: 2px;
        padding-top: 5px;
    }

    .language-modal .modal-content {
        width: 98%;
        max-height: calc(100vh - 10px);
    }
}