@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

:root {
  --bg1: #070707;
  --bg2: #1a1a2e;
}

html {
  background-color: var(--bg1);
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg1);
  background-image: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 100%);
  z-index: -1;
  transform: translateZ(0);
}

body {
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100svh;
}

@supports not (height: 100svh) {
  body { min-height: 100vh; }
}

@media (max-width: 768px) {
  body { overscroll-behavior: none; }
}

/* отключаем overscroll */
@media (max-width: 768px) {
    body {
        overscroll-behavior: none;
    }
}

        /* Ваши стили остаются без изменений */
        :root {
            --primary-purple: #8B5CF6;
            --primary-purple-dark: #7C3AED;
            --primary-orange: #F59E0B;
            --primary-orange-dark: #D97706;
            --text-dark: #1F2937;
            --text-light: #6B7280;
            --bg-light: #F9FAFB;
            --border-color: #E5E7EB;
            --success: #10B981;
            --error: #EF4444;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Header стили */
body {
    background: linear-gradient(135deg, #070707 0%, #1a1a2e 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    padding-top: 78px; /* место под фиксированный header */
}

/* HEADER КАК ВО ВТОРОМ ПРМЕРЕ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

.navbar-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.container-custom {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
}

.navbar-brand:hover {
    color: #fff !important;
}

.navbar-brand i {
    color: #8B5CF6;
    font-size: 1.5rem;
}

/* КНОПКА СПРАВА */
.back-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 42px;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

.back-link::before {
    content: "←";
    display: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* ОСНОВНОЙ БЛОК НЖЕ HEADER */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    min-height: calc(100vh - 78px);
}

/* МОБЛКА */
@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .navbar-custom {
        min-height: 64px;
    }

    .container-custom {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .back-link span {
        display: none;
    }

    .back-link::before {
        display: block;
    }

    .back-link {
        padding: 0;
        gap: 0;
    }

    .main-content {
        min-height: calc(100vh - 72px);
        padding: 20px 12px;
    }
}

@media (max-width: 360px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .back-link {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }
}
        
        /* Основной контент */
        .main-content {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            min-height: calc(100vh - 70px);
        }
        
        .payment-container {
            width: 100%;
            max-width: 400px;
            padding: 20px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        
        /* Стили для модального окна согласия */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
        }
        
        .modal-content {
            background: white;
            border-radius: 16px;
            max-width: 500px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .modal-header {
            padding: 20px 24px 16px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .modal-header h3 {
            color: var(--text-dark);
            font-size: 18px;
            font-weight: 700;
            margin: 0;
        }
        
        .modal-body {
            padding: 20px 24px;
        }
        
        .terms-content {
            max-height: 300px;
            overflow-y: auto;
            padding: 16px;
            background: var(--bg-light);
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }
        
        .terms-content h4 {
            color: var(--text-dark);
            font-size: 16px;
            margin-bottom: 12px;
        }
        
        .terms-content p {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 10px;
        }
        
        .terms-content ol {
            padding-left: 20px;
            margin-bottom: 10px;
        }
        
        .terms-content li {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 8px;
        }
        
        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
            gap: 10px;
        }
        
        .terms-checkbox input {
            margin-top: 4px;
            cursor: pointer;
        }
        
        .terms-checkbox label {
            color: var(--text-dark);
            font-size: 14px;
            line-height: 1.4;
            cursor: pointer;
        }
        
        .terms-checkbox label a {
            color: var(--primary-purple);
            text-decoration: none;
            font-weight: 600;
        }
        
        .terms-checkbox label a:hover {
            text-decoration: underline;
        }
        
        .modal-footer {
            padding: 16px 24px 24px;
            display: flex;
            gap: 12px;
            border-top: 1px solid var(--border-color);
        }
        
        .btn-modal {
            flex: 1;
            padding: 14px 20px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 15px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-cancel {
            background: var(--bg-light);
            color: var(--text-dark);
            border: 1px solid var(--border-color);
        }
        
        .btn-cancel:hover {
            background: #e5e7eb;
        }
        
        .btn-confirm {
            background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
            color: white;
            box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
        }
        
        .btn-confirm:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
        }
        
        .btn-confirm:disabled {
            background: #9CA3AF;
            cursor: not-allowed;
            box-shadow: none;
        }
        
        /* Остальные стили остаются без изменений */
        .payment-header {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .payment-header h2 {
            color: var(--text-dark);
            margin-bottom: 6px;
            font-weight: 700;
            font-size: 20px;
        }
        
        .payment-header p {
            color: var(--text-light);
            font-size: 14px;
        }
        
        .payment-method {
            margin-bottom: 20px;
        }
        
        .payment-method label, .payment-method .payment-label {
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-dark);
            font-size: 16px;
            display: block;
            text-align: center;
        }
        
        .method-options {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        
        .method-option {
            flex: 1;
            padding: 14px 10px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--bg-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 60px;
        }
        
        .method-option:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        
        .method-option.selected {
            border-color: var(--primary-purple);
            background-color: var(--primary-purple);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3);
        }
        
        .method-option.crypto.selected {
            border-color: var(--primary-orange);
            background-color: var(--primary-orange);
            box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
        }
        
        .method-option .method-name {
            font-weight: 600;
            display: block;
        }
        
        .amount-input {
            margin-bottom: 20px;
        }
        
        .amount-input label {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-dark);
            font-size: 14px;
            display: block;
            text-align: center;
        }
        
        .input-group {
            margin-bottom: 10px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        
        .input-group-text {
            background: var(--bg-light);
            border: 2px solid var(--border-color);
            border-right: none;
            font-weight: 600;
            padding: 16px;
            font-size: 16px;
        }
        
        .form-control {
            padding: 14px;
            border: 2px solid var(--border-color);
            border-left: none;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s;
            height: auto;
        }
        
        .form-control:focus {
            border-color: var(--primary-purple);
            box-shadow: none;
        }
        
        .form-control.error {
            border-color: var(--error);
        }
        
        .min-amount {
            text-align: center;
            color: var(--text-light);
            font-size: 12px;
            margin-bottom: 16px;
        }
        
/* Вставьте эти стили в существующий CSS */
.crypto-info {
    display: none;
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    /* Добавьте эти свойства: */
    min-height: 400px; /* Фиксированная минимальная высота */
    overflow: hidden; /* Предотвращаем всплытие элементов */
    position: relative; /* Для правильного позиционирования */
}

.crypto-wallet {
    margin-bottom: 16px;
    /* Добавьте эти свойства: */
    min-height: 140px; /* Фиксированная высота для каждого кошелька */
}

.crypto-wallet:last-child {
    margin-bottom: 0;
}

.crypto-type {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
    /* Добавьте эти свойства: */
    height: 30px; /* Фиксированная высота для заголовка */
    flex-shrink: 0; /* Не сжимать */
}

.crypto-icon {
    width: 50px;
    height: 30px;
    flex-shrink: 0;
    /* Добавьте эти свойства: */
    position: relative;
    overflow: hidden;
}

.crypto-icon dotlottie-wc {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.wallet-address {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 10px;
    position: relative;
    padding-right: 40px;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    line-height: 1.4;
    /* Добавьте эти свойства: */
    min-height: 60px; /* Фиксированная минимальная высота */
    display: flex;
    align-items: center;
}

.copy-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 14px;
    /* Добавьте эти свойства: */
    height: 40px; /* Фиксированная высота кнопки */
    flex-shrink: 0; /* Не сжимать */
}

/* Обновленные медиа-запросы для мобильных */
@media (max-width: 768px) {
    .crypto-info {
        min-height: 350px; /* Меньше высота на мобильных */
    }
    
    .crypto-wallet {
        min-height: 120px; /* Меньше высота на мобильных */
    }
    
    .wallet-address {
        min-height: 50px; /* Меньше высота на мобильных */
        font-size: 11px;
        padding: 10px;
        padding-right: 35px;
    }
    
    .copy-btn {
        height: 36px; /* Меньше высота на мобильных */
        font-size: 13px;
        padding: 8px;
    }
    
    .crypto-type {
        font-size: 13px;
        height: 28px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .crypto-info {
        min-height: 320px;
        padding: 12px;
    }
    
    .crypto-wallet {
        min-height: 110px;
        margin-bottom: 12px;
    }
    
    .wallet-address {
        min-height: 45px;
        font-size: 10px;
        padding: 8px;
        padding-right: 30px;
        line-height: 1.3;
    }
    
    .copy-btn {
        height: 32px;
        font-size: 12px;
        padding: 6px;
    }
    
    .crypto-type {
        font-size: 12px;
        height: 26px;
    }
}
        
        .copy-icon:hover {
            color: var(--primary-purple);
        }
        
        .btn-pay {
            width: 100%;
            padding: 16px;
            font-size: 16px;
            font-weight: 700;
            border-radius: 10px;
            border: none;
            transition: all 0.3s;
            margin-top: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .btn-yoomoney {
            background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
            color: white;
            box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
        }
        
        .btn-yoomoney:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
        }
        
        .btn-crypto {
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
            color: white;
            display: none;
            box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
        }
        
        .btn-crypto:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
        }
        
        .btn-pay:disabled {
            background: #9CA3AF;
            transform: none;
            box-shadow: none;
            cursor: not-allowed;
        }
        
        .site-info {
            text-align: center;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
        }
        
        .site-info a {
            color: var(--primary-purple);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
            font-size: 14px;
        }
        
        .site-info a:hover {
            color: var(--primary-purple-dark);
        }
        
        .error-message {
            color: var(--error);
            font-size: 12px;
            text-align: center;
            margin-top: 8px;
            display: none;
        }
        
        .success-message {
            display: none;
            background: var(--success);
            color: white;
            padding: 14px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 16px;
            font-weight: 600;
            font-size: 14px;
        }
        
        .temp-message {
            position: fixed;
            top: 70px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--success);
            color: white;
            padding: 10px 16px;
            border-radius: 6px;
            font-weight: 600;
            z-index: 1000;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
            font-size: 14px;
            max-width: 90%;
            text-align: center;
        }
        
        .crypto-note {
            text-align: center;
            margin-top: 12px;
            font-size: 12px;
            color: var(--text-light);
        }

        /* Адаптив для очень маленьких экранов */
        @media (max-width: 360px) {
            .payment-container {
                padding: 16px;
            }
            
            .modal-content {
                padding: 0;
            }
            
            .modal-header,
            .modal-body,
            .modal-footer {
                padding: 16px;
            }
            
            .terms-content {
                max-height: 200px;
            }
            
            .method-options {
                flex-direction: column;
                gap: 8px;
            }
            
            .method-option {
                min-height: 50px;
                padding: 12px 8px;
            }
            
            .crypto-type {
                font-size: 13px;
            }
            
            .wallet-address {
                font-size: 11px;
                padding: 10px;
                padding-right: 35px;
            }
            
            .btn-pay {
                padding: 14px;
                font-size: 15px;
            }
            
            .btn-modal {
                padding: 12px 16px;
                font-size: 14px;
            }
        }
        
        /* Адаптив для планшетов и больших экранов */
        @media (min-width: 768px) {
            .main-content {
                padding: 50px;
            }
            
            .payment-container {
                padding: 24px;
            }
            
            .payment-header h2 {
                font-size: 22px;
            }
            
            .payment-header p {
                font-size: 15px;
            }
            
            .method-option .method-name {
                font-size: 16px;
            }
            
            .crypto-type {
                font-size: 15px;
            }
            
            .wallet-address {
                font-size: 13px;
            }
            
            .btn-pay {
                font-size: 17px;
            }
        }
        
/* Общие стили для кнопки назад */
.back-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white;
}

/* Стрелка по умолчанию (скрыта на десктопе) */
.back-link::before {
    display: none;
    content: "←";
    font-size: 24px; /* Увеличили размер стрелки */
    font-weight: 700; /* Сделали жирнее */
}

/* Мобильная версия */
@media (max-width: 768px) {
    .simple-header > div {
        flex-direction: row;
        gap: 10px;
        text-align: center;
        justify-content: space-between;
        padding: 0 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Скрываем текст "Вернуться на сайт" */
    .back-link span {
        display: none;
    }
    
    /* Показываем стрелку */
    .back-link::before {
        display: block;
    }
    
    /* Делаем кнопку компактной */
    .back-link {
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    
    /* Убираем промежуток, так как теперь только стрелка */
    .back-link {
        gap: 0;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .back-link {
        padding: 6px 10px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .back-link::before {
        font-size: 16px;
    }
}
    

/* Logo hover animation */
.navbar-brand {
    transition: transform 0.3s ease, color 0.3s ease;
}
.navbar-brand:hover {
    transform: scale(1.05);
}
.navbar-brand i {
    display: inline-block;
    transition: text-shadow 0.3s ease;
}
.navbar-brand:hover i {
    text-shadow: 0 0 20px rgba(139, 92, 246, 1);
}
.navbar-brand:hover i.fa-face-smile::before {
    content: '\f580';
}
