/* Таблица обмена в стиле примера */
.exchange_table_wrap {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.exchange_type_table {
    padding: 25px;
}

.exchange_type_table_ins {
    position: relative;
}

/* Панель фильтров сверху */
.xtt_icon_wrap {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.xtt_col1, .xtt_col2 {
    flex: 1;
}

.xtt_col1_ins, .xtt_col2_ins {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tbl_icon {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.tbl_icon:hover {
    border-color: #e0e0e0;
    background: #fff;
    transform: translateY(-2px);
}

.tbl_icon.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tbl_icon_ins {
    position: relative;
    z-index: 2;
}

.tbl_icon_abs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tbl_icon:hover .tbl_icon_abs {
    opacity: 1;
}

/* Основная таблица */
.xtt_table_wrap {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.xtt_col1, .xtt_col2, .xtt_col3 {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.xtt_col3 {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e8e8e8;
}

.xtt_col1_ins, .xtt_col2_ins, .xtt_col3_ins {
    padding: 0;
}

/* Заголовки колонок */
.xtt_title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xtt_in_col1 {
    flex: 1;
}

.xtt_in_col2 {
    display: flex;
    gap: 15px;
}

.xtt_link_wrap {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 3px;
}

.xtt_link {
    padding: 6px 15px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.xtt_link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.xtt_link.active {
    background: white;
    color: #667eea;
    font-weight: 500;
}

/* Поиск */
.xtt_search_wrap {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.xtt_search {
    position: relative;
}

.xtt_search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 15px center;
    transition: all 0.3s ease;
}

.xtt_search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Списки валют */
.xtt_leftcol_data, .xtt_rightcol_data {
    max-height: 650px;
    overflow-y: auto;
    padding: 0;
}

/* Элементы валют */
.xtt_one_line_left_wrap, .xtt_one_line_right_wrap {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.xtt_one_line_left_wrap:last-child, .xtt_one_line_right_wrap:last-child {
    border-bottom: none;
}

.xtt_one_line_left_wrap:hover, .xtt_one_line_right_wrap:hover {
    background: #f8f9ff;
}

.xtt_one_line_left_wrap.active, .xtt_one_line_right_wrap.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid #667eea;
}

.xtt_one_line_left, .xtt_one_line_right {
    padding: 15px 20px;
    position: relative;
    cursor: pointer;
}

.xtt_one_line_abs, .xtt_one_line_abs2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xtt_one_line_left:hover .xtt_one_line_abs,
.xtt_one_line_right:hover .xtt_one_line_abs {
    background: rgba(102, 126, 234, 0.05);
    opacity: 1;
}

.xtt_one_line_name_wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xtt_one_line_ico_wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.xtt_one_line_ico {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.currency_logo {
    /* Фоновые изображения будут установлены через inline стили */
}

.xtt_one_line_name {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

/* Правая колонка с курсами и резервами */
.xtt_one_line_right_wrap {
    display: block;
    text-decoration: none;
    color: inherit;
}

.xtt_one_line_right_wrap:hover {
    text-decoration: none;
    color: inherit;
}

.xtt_one_line_right {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xtt_in_col1 {
    flex: 1;
    min-width: 0;
}

.xtt_in_col2 {
    width: 180px;
    flex-shrink: 0;
}

.xtt_one_line_reserve, .xtt_one_line_rate {
    display: none;
    text-align: right;
}

.xtt_one_line_reserve.active, .xtt_one_line_rate.active {
    display: block;
}

.xtt_one_line_reserve_in, .xtt_one_line_rate_in {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.xtt_one_line_reserve_in {
    color: #27ae60;
    font-weight: 500;
}

.xtt_one_line_rate_in {
    color: #666;
}

.xtt_one_line_rate_give {
    color: #e74c3c;
    font-weight: 500;
}

.xtt_one_line_rate_get {
    color: #27ae60;
    font-weight: 500;
}

/* Форма обмена (третья колонка) */
.hexch_form_wrap {
    padding: 20px;
}

.hexch_form_abs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hexch_form_abs_ins {
    text-align: center;
    padding: 40px;
}

.hexch_form_abs.active {
    opacity: 1;
    visibility: visible;
}

.hexch_info {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.hexch_info_line {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.hexch_info_line:last-child {
    margin-bottom: 0;
}

.hexch_info_line_label {
    color: #666;
    font-weight: 500;
}

.js_course_html {
    color: #e74c3c;
    font-weight: 600;
}

.js_reserve_html {
    color: #27ae60;
    font-weight: 600;
}

.hexch_cols {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hexch_left, .hexch_right {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.hexch_btitle {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.hexch_btitle.give {
    border-bottom-color: #e74c3c;
}

.hexch_btitle.get {
    border-bottom-color: #27ae60;
}

.hexch_btitle_ins {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.hexch_title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.hexch_title_logo_wrap {
    width: 40px;
    height: 40px;
}

.hexch_title_logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.hexch_currency {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.give_minmax, .get_minmax {
    text-align: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
}

.hexch_amount_wrap {
    margin-bottom: 15px;
}

.hexch_amount_label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.req {
    color: #e74c3c;
}

.hexch_input_wrap {
    position: relative;
}

.hexch_input_wrap input {
    background: rgb(148 188 227 / 80%) !important;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hexch_input_wrap input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hexch_comission {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.hexch_cfd_wrap {
    border:1px solid;
    border-color:rgba(98, 126, 234, 0.3);
    background: #21233c;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.cf_field_line {
    display: flow;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cf_field_label {
    width: 150px;
    flex-shrink: 0;
    font-weight: 500;
    color: white;
}

.cf_field_ins {
    flex: 1;
}

.cf_field_ins input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cf_field_ins input:focus {
    outline: none;
    border-color: #667eea;
}

.hexch_submit_wrap {
    text-align: center;
    margin-top: 25px;
}

.hexch_submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hexch_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.hexch_checkdata_line {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input {
    margin: 0;
}

.checkbox label {
    cursor: pointer;
    margin: 0;
}

/* Уведомления */
.window_message, .notice_message {
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.window_message_ins, .notice_message_ins {
    position: relative;
}

.window_message p, .notice_message_text {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.window_message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.window_message a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .xtt_table_wrap {
        flex-direction: column;
    }
    
    .xtt_col1, .xtt_col2, .xtt_col3 {
        width: 100%;
    }
    
    .hexch_cols {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .exchange_type_table {
        padding: 15px;
    }
    
    .xtt_icon_wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .xtt_one_line_right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .xtt_in_col2 {
        width: 100%;
    }
    
    .cf_field_line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cf_field_label {
        width: 100%;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Скроллбар */
.xtt_leftcol_data::-webkit-scrollbar,
.xtt_rightcol_data::-webkit-scrollbar {
    width: 6px;
}

.xtt_leftcol_data::-webkit-scrollbar-track,
.xtt_rightcol_data::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.xtt_leftcol_data::-webkit-scrollbar-thumb,
.xtt_rightcol_data::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.xtt_leftcol_data::-webkit-scrollbar-thumb:hover,
.xtt_rightcol_data::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.clear {
    clear: both;
}