/* Birland Exchange Styles - Brand Colors Version: 1.1.41*/
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* Исправляем конфликты только для конкретной страницы */
.page-id-XXXX .birland-exchange-container,
.birland-exchange-container {
    max-width: 520px;
    margin: 40px auto;
    font-family: 'Comfortaa', sans-serif;
    background: #f6f8fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    overflow: visible;
    clear: both;
    float: none;
}

/* Исправляем для Colibri WP */
.h-pageContent .birland-exchange-container,
.h-content .birland-exchange-container,
.main-content .birland-exchange-container,
.content-area .birland-exchange-container {
    margin: 40px auto !important;
    float: none !important;
    clear: both !important;
}

.exchange-header {
    text-align: center;
    margin-bottom: 30px;
}

.exchange-header h3 {
    color: #A29663;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 400;
    font-family: 'Tenor Sans', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.exchange-subtitle {
    color: #666;
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
}

.user-welcome {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    background: rgba(162, 150, 99, 0.05);
    border-radius: 6px;
    display: inline-block;
    line-height: 1.4;
}

.form-section {
    margin-bottom: 22px;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #A29663;
    font-size: 15px;
    font-family: 'Tenor Sans', sans-serif;
    line-height: 1.4;
}

.operation-type {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.operation-option {
    flex: 1;
    cursor: pointer;
}

.operation-option input {
    display: none;
}

.operation-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    font-weight: 600;
    gap: 10px;
    color: #333;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

.operation-label .icon {
    font-size: 18px;
}

/* Стили для кнопки SELL */
.sell-label {
    border-color: #12753d !important;
}

.operation-option input:checked + .sell-label {
    background: rgba(191, 247, 216, 0.31);
    border-color: #12753d !important;
    color: #12753d;
}

/* Стили для кнопки BUY */
.buy-label {
    border-color: #013c76 !important;
}

.operation-option input:checked + .buy-label {
    background: rgba(212, 233, 254, 0.34);
    border-color: #013c76 !important;
    color: #013c76;
}

.operation-option input:checked + .operation-label {
    border-width: 2px;
}

/* Стили для выбора способа получения */
.receive-method-section {
    margin-bottom: 22px;
}

.receive-method-type {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.receive-method-option {
    flex: 1;
    cursor: pointer;
}

.receive-method-option input {
    display: none;
}

.receive-method-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    font-weight: 600;
    gap: 10px;
    color: #333;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

.receive-method-label .method-icon {
    font-size: 18px;
}

.receive-method-option input:checked + .receive-method-label {
    border-color: #A29663;
    background: rgba(162, 150, 99, 0.1);
    color: #A29663;
    border-width: 2px;
}

.method-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-family: 'Comfortaa', sans-serif;
    padding: 8px 12px;
    background: rgba(162, 150, 99, 0.05);
    border-radius: 6px;
    border-left: 3px solid #A29663;
    line-height: 1.4;
}

.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input {
    width: 100%;
    padding: 14px 85px 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', sans-serif;
    color: #333;
    background: white;
    line-height: 1.4;
}

.amount-input:focus {
    outline: none;
    border-color: #A29663;
    box-shadow: 0 0 0 2px rgba(162, 150, 99, 0.1);
}

.currency-label {
    position: absolute;
    right: 18px;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

.amount-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

.user-address-container {
    margin-bottom: 10px;
    position: relative;
}

.user-address-textarea {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    line-height: 1.5;
    letter-spacing: 0.3px;
    resize: vertical;
    min-height: 65px;
    font-family: 'Comfortaa', monospace;
}

.user-address-textarea:focus {
    outline: none;
    border-color: #A29663;
    box-shadow: 0 0 0 2px rgba(162, 150, 99, 0.1);
}

/* Стили для валидного адреса */
.user-address-container.valid .user-address-textarea {
    border-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.05);
    padding-right: 45px;
}

.user-address-container.valid::after {
    content: "✅";
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 18px;
    color: #27ae60;
}

/* Стили для невалидного адреса */
.user-address-container.invalid .user-address-textarea {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
    padding-right: 45px;
}

.user-address-container.invalid::after {
    content: "❌";
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 18px;
    color: #e74c3c;
}

.address-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Comfortaa', sans-serif;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.address-hint::before {
    content: "💡";
    font-size: 14px;
}

/* Стили для подсказки при ошибке */
.address-hint.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

.address-hint.error::before {
    content: "⚠️";
}

/* Стили для подсказки при успехе */
.address-hint.success {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}

.address-hint.success::before {
    content: "✅";
}

/* Выравнивание блока расчета */
.calculation-result {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

.result-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

/* Колонка 1: Текст (левый край) */
.result-line > span:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Колонка 2: Цифры (правый край) */
.result-amount, .result-rate {
    text-align: right;
    font-weight: 700;
    color: #333;
    font-size: 16px;
    padding-right: 8px;
    font-variant-numeric: tabular-nums; /* Выравнивание цифр */
    min-width: 70px;
}

/* Колонка 3: Валюта (левый край) */
.result-currency {
    text-align: left;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    min-width: 70px; /* Фиксированная ширина для выравнивания */
}

/* Особые стили для строк */
.fee-line > span:first-child {
    color: #e74c3c;
}

.rate-line > span:first-child {
    color: #666;
}

.fee-line .result-amount,
.fee-line .result-currency {
    color: #e74c3c;
}

.rate-line .result-rate {
    font-weight: 700;
    color: #333;
}

.proceed-btn {
    width: 100%;
    padding: 16px;
    background: #A29663;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tenor Sans', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
    position: relative;
}

.proceed-btn:hover:not(:disabled) {
    background: #8f8457;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(162, 150, 99, 0.2);
}

.proceed-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.transfer-details {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #A29663;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.transfer-section {
    margin-bottom: 25px;
}

.transfer-section:last-child {
    margin-bottom: 0;
}

.transfer-section h4 {
    margin: 0 0 18px 0;
    color: #333;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Tenor Sans', sans-serif;
    line-height: 1.4;
}

.wallet-info, .transfer-amount-info {
    margin-bottom: 18px;
}

.wallet-info label, .transfer-amount-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #A29663;
    font-size: 14px;
    font-family: 'Tenor Sans', sans-serif;
    line-height: 1.4;
}

.wallet-address-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wallet-address {
    flex: 1;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.copy-btn {
    padding: 10px 16px;
    background: #A29663;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s ease;
    font-family: 'Comfortaa', sans-serif;
    white-space: nowrap;
    line-height: 1.4;
}

.copy-btn:hover {
    background: #8f8457;
}

.transfer-amount {
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

.tx-hash-input {
    margin-bottom: 12px;
}

.tx-hash-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #A29663;
    font-size: 14px;
    font-family: 'Tenor Sans', sans-serif;
    line-height: 1.4;
}

.tx-hash-input-field {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
    background: white;
    font-family: 'Comfortaa', monospace;
    line-height: 1.4;
}

.tx-hash-input-field:focus {
    outline: none;
    border-color: #A29663;
    box-shadow: 0 0 0 2px rgba(162, 150, 99, 0.1);
}

.confirm-btn {
    width: 100%;
    padding: 14px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Tenor Sans', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

.confirm-btn:hover {
    background: #219a52;
}

.tx-hint {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 8px;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.4;
}

.exchange-info {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

.info-icon {
    font-size: 14px;
    color: #A29663;
}

/* Toast Notifications */
.birex-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    max-width: 350px;
    line-height: 1.4;
}

.birex-toast.success {
    background: #27ae60;
    border-left: 4px solid #219a52;
}

.birex-toast.error {
    background: #e74c3c;
    border-left: 4px solid #c0392b;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стиль для неактивного поля суммы */
.amount-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #ddd;
    color: #999;
}

.amount-input:disabled::placeholder {
    color: #bbb;
}

/* Анимация подсказки */
.amount-hint span:last-child {
    color: #ff6b6b;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Стиль для кнопки "Продолжить" когда неактивна */
.proceed-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.proceed-btn:disabled:hover {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 480px) {
    .birland-exchange-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .operation-type {
        flex-direction: column;
    }
    
    .receive-method-type {
        flex-direction: column;
    }
    
    .exchange-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .wallet-address-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        align-self: flex-start;
        margin-top: 10px;
    }
    
    .user-address-textarea {
        font-size: 14px;
        min-height: 55px;
        padding: 12px 40px 12px 12px;
    }
    
    .user-address-container.valid::after,
    .user-address-container.invalid::after {
        right: 12px;
        top: 12px;
        font-size: 16px;
    }
    
    .exchange-header h3 {
        font-size: 24px;
    }
    
    .birex-toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    /* Адаптив для блока расчета */
    .calculation-result {
        padding: 15px;
        gap: 10px;
    }
    
    .result-line {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    
    .result-line > span:first-child {
        grid-column: 1 / span 2;
        margin-bottom: 4px;
    }
    
    .result-amount, .result-rate {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
        padding-right: 0;
    }
    
    .result-currency {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
}

/* Для средних экранов */
@media (max-width: 768px) {
    .birland-exchange-container {
        margin: 25px auto;
    }
}

/* Критическое исправление для Colibri - только очистка */
body.page .birland-exchange-container,
body.single .birland-exchange-container {
    margin: 40px auto !important;
    float: none !important;
    clear: both !important;
    display: block !important;
}

/* Для версии 1.1.33                  */
/* Стили для валидации хеша транзакции */
.tx-hash-input-field.valid {
    border-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.05);
}

.tx-hash-input-field.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

/* Улучшенные стили для уведомлений */
.birex-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    max-width: 350px;
    line-height: 1.4;
}

.birex-toast.success {
    background: #27ae60;
    border-left: 4px solid #219a52;
}

.birex-toast.error {
    background: #e74c3c;
    border-left: 4px solid #c0392b;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 1.1.36 */
/* Стили для кнопки TronLink */
.tronlink-toggle-btn {
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Comfortaa', sans-serif;
    min-width: 200px;
    margin: 0 auto;
}

.tronlink-toggle-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
}

.tronlink-toggle-btn.connected {
    background: #e74c3c;
}

.tronlink-toggle-btn.connected:hover {
    background: #c0392b;
}

.tronlink-toggle-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tronlink-icon {
    font-size: 16px;
}

.tronlink-connect-container {
    text-align: center;
    margin-bottom: 15px;
}

/* Стили для статуса подключения TronLink */
.tronlink-status {
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 4px solid #FFC107;
    font-size: 13px;
    text-align: center;
}

.tronlink-status span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tronlink-status code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

/* Стиль для поля адреса при подключенном TronLink */
.user-address-container.tronlink-connected .user-address-textarea {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

/* Кнопка отправки через TronLink в блоке перевода */
#birex-tronlink-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFC107 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tenor Sans', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#birex-tronlink-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

#birex-tronlink-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#birex-tronlink-btn .tronlink-icon {
    font-size: 18px;
}

/* Стили для баннеров TronLink */
.tronlink-banner {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: 'Comfortaa', sans-serif;
    border-left: 5px solid;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tronlink-banner-yellow {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFEAA7 100%);
    border-color: #FFC107;
    color: #856404;
}

.tronlink-banner-blue {
    background: linear-gradient(135deg, #D1ECF1 0%, #BEE5EB 100%);
    border-color: #0DCAF0;
    color: #0C5460;
}

.tronlink-banner-green {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tronlink-banner-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.tronlink-banner-green.pulsing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Отключаем мигание для зеленого баннера */
.tronlink-banner-green.blinking {
    animation: none;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.banner-text p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.4;
}

.banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.banner-button {
    padding: 10px 20px;
    background: #ffffff;
    color: inherit;
    border: 2px solid currentColor;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    box-sizing: border-box;
}

.banner-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.tronlink-banner-yellow .banner-button {
    color: #856404;
}

.tronlink-banner-yellow .banner-button:hover {
    background: #856404;
    color: white;
}

.tronlink-banner-blue .banner-button {
    color: #0C5460;
}

.tronlink-banner-blue .banner-button:hover {
    background: #0C5460;
    color: white;
}

.tronlink-banner-green .banner-button {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.tronlink-banner-green .banner-button:hover {
    background: #218838;
}

/* Стили для модального окна */
.birex-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.birex-modal.show {
    opacity: 1;
    visibility: visible;
}

.birex-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.birex-modal.show .birex-modal-content {
    transform: translateY(0);
}

.birex-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.birex-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.birex-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.birex-modal-close:hover {
    color: #2c3e50;
    background: #e9ecef;
}

.birex-modal-body {
    padding: 25px;
}

.birex-modal-body .modal-message {
    text-align: center;
    padding: 10px;
}

.birex-modal-body .modal-message h4 {
    color: #e74c3c;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.birex-modal-body .modal-message p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.birex-modal-body .modal-message .info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid #FFC107;
}

.birex-modal-body .modal-message .info-box p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #856404;
}

.birex-modal-body .modal-message .info-box ul {
    margin: 8px 0;
    padding-left: 20px;
}

.birex-modal-body .modal-message .info-box li {
    margin-bottom: 5px;
    color: #555;
}

.birex-modal-body .modal-message .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.birex-modal-body .modal-message .action-buttons a,
.birex-modal-body .modal-message .action-buttons button {
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
}

.birex-modal-body .modal-message .action-buttons a {
    background: #FFC107;
    color: #856404;
    border-color: #FFC107;
}

.birex-modal-body .modal-message .action-buttons a:hover {
    background: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.birex-modal-body .modal-message .action-buttons button#tronlink-check-again-btn {
    background: white;
    color: #0C5460;
    border: 2px solid #0DCAF0;
}

.birex-modal-body .modal-message .action-buttons button#tronlink-check-again-btn:hover {
    background: #0DCAF0;
    color: white;
    border-color: #0DCAF0;
    transform: translateY(-2px);
}

.birex-modal-body .modal-message .action-buttons button.close-tronlink-modal-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.birex-modal-body .modal-message .action-buttons button.close-tronlink-modal-btn:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.birex-modal-body .modal-message .icon-large {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

/* Для адаптивности */
@media (max-width: 480px) {
    .tronlink-toggle-btn {
        width: 100%;
        padding: 14px;
    }
    
    .tronlink-status {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #birex-tronlink-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .tronlink-banner {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-icon {
        font-size: 28px;
    }
    
    .banner-buttons {
        width: 100%;
        min-width: auto;
    }
    
    .banner-button {
        width: 100%;
        padding: 12px;
    }
    
    .banner-text strong {
        font-size: 14px;
    }
    
    .banner-text p {
        font-size: 12px;
    }
    
    .birex-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .birex-modal-header {
        padding: 15px 20px;
    }
    
    .birex-modal-body {
        padding: 20px;
    }
    
    .birex-modal-body .modal-message .icon-large {
        font-size: 48px;
    }
}

/* Стили для синего баннера */
.tronlink-banner-blue .banner-button {
    color: #0C5460;
    background: white;
    border: 2px solid #0C5460;
}

.tronlink-banner-blue .banner-button:hover {
    background: #0C5460;
    color: white;
    border-color: #0C5460;
}