/* Базовые стили для всего документа */
body {
    font-family: Arial, sans-serif;
    background-color: rgb(26, 32, 38);
    margin: 0;
    padding: 0;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Добавьте это в конец /static/style.css */



/* Хэдер */
.header {
    display: flex;
   
    align-items: center;
    padding: 10px 15px;
    background-color: #212a33;
    border-bottom: 1px solid #212a33;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    width: 108px;
    height: auto;

}


.logoo {
    width: 108px;
    height: auto;
    margin-right: 6px;
    margin-top: 4px;
}

.logo1 {
    width: auto;
    height: 33px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    display: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 15px;
    height: 15px;
}

.search-input {
    padding: 8px 10px 8px 30px;
    border-radius: 8px;
    border: none;
    background-color: #2b343e;
    color: #8c9aa9;
    font-size: 12px;
    outline: none;
    width: 150px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #8794A1;
    text-align: center;
}

/* Контейнер */
.container {
    padding: 10px 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Секция с именем пользователя */
.username-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 15px;
    padding: 0 5%;
    flex-wrap: wrap;
}

.username {
    font-size: 19px;
    font-weight: bold;
    color: #fff;
}

.deal-status {
    background-color: #259b4034;
    padding: 7px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
    color: #33e66c;
    margin-left: 10px;
}

/* Карточка */
.card {
    background-color: #212a33;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card-header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(41, 52, 64);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #8794A1;
    padding: 5px 15%;
}

.card-header span {
    font-weight: 700 !important; /* Жирный текст с приоритетом */
}

.card-content {
    display: flex;
    justify-content: space-between;
    padding: 10px 12%;
}

.column {
    display: flex;
    flex-direction: row; /* .amount и .converted в одной строке */
    align-items: center; /* Вертикальное центрирование */
    gap: 3px; /* Отступ между .amount и .converted */
}

.card-content .amount {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.card-content .amount span {
    font-weight: 700; /* Жирный текст для <span> внутри .amount */
}

.coin-icon {
    width: 18px;
    height: 18px;
    margin-right: 2px;
    display: block;
    position: relative;
    top: -1.5px;
}

.converted {
    font-size: 11px;
    color: #8794A1;
    font-weight: 600; /* Чуть жирнее */
}

.how-it-works {
    display: none; /* был block */
    margin: 0 0 15px 15px;
    background: none;
    border: none;
    color: #8794A1;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
}

/* Информационные строки */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #13191e8b;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #fff;
    font-size: 12px;
}

.info-value {
    font-weight: 500;
    color: #248bda;
    font-size: 12px;
    word-break: break-all;
}

.deal-header {
    text-align: center;
    margin: 10px 0;
}

.deal-title {
    color: #8794A1;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}

.deal-subtitle {
    color: #8794A1;
    font-weight: 400;
    font-size: 12px;
    margin: 3px 0 0;
}

/* Кнопки */
.connect-wallet {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #248bda;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.connect-wallet:hover {
    background-color: rgb(30, 127, 201);
}

.subscribe-updates {
    display: none; /*display: flex;*/
    align-items: center;
    justify-content: center; /* Иконка и текст по центру */
    width: 100%;
    background: none;
    border: none;
    color: #8794A1;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    text-decoration: underline; /* Подчёркивание текста */

}

.subscribe-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px; /* Отступ между иконкой и текстом */
    display: none;
}



.merchant-card {
    background-color: rgb(41, 52, 64); /* Другой цвет фона, чтобы отличалась от .card */
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    margin-top: 20px;
}

.merchant-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    border-bottom: 1px solid #13191e00;
}

.merchant-row:last-child {
    border-bottom: none;
}

.merchant-label {
    font-weight: 700;
    color: #8794A1;
    font-size: 12px;
}

.merchant-value {
    font-weight: 700;
    color: #ffffff; /* Другой цвет, чтобы отличался от .info-value */
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.merchant-value.merchant-id {
    color: #8794A1; /* Тот же цвет, что у .merchant-label */
}

.merchant-icon {
    width: 16px;
    height: 16px;
    padding-top: 1px;
}

.merchant-icon-v {
    width: 13.5px;
    height: 13px;
}



.footer {
    background-color: #111417;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    padding: 10px 0;
    margin: 0;
    left: 0;
    color: #8794A1;
    font-size: 12px;
    z-index: 10;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
}

.footer-icon {
    width: 18.5px;
    height: 18px;
    vertical-align: middle; /* Центрирование по вертикали относительно текста */
    display: inline-block; /* Для совместимости с vertical-align */
}

/* Секция транзакций */
.transactions {
    margin-bottom: 80px; /* Отступ от футера */
    width: 100%;
    box-sizing: border-box;
}

.transactions-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 15px;
    text-align: left;
}

.transactions-table {
    background-color: #212a33;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(41, 52, 64);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 11px;
    color: #8794A1;
    padding: 5px 15px;
}

.transactions-header span {
    flex: 1;
    text-align: center;
    font-weight: 700 !important;
}

.transactions-header span:first-child {
    text-align: left;
}

.transactions-header span:last-child {
    text-align: right;
}

.transactions-body {
    padding: 5px 15px; /* Отступы для данных */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    transition: height 0.3s ease-in-out; /* Схлопывание только для Completed */
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    align-items: center;
    position: relative;
    z-index: 1;
}

.transaction-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -15px; /* Учитываем padding таблицы */
    right: -15px; /* На всю ширину, включая padding хедера */
    bottom: 0;
    border-bottom: 1px solid #13191e8b; /* Разделитель на всю ширину */
    z-index: 0;
}

.transaction-row span {
    flex: 1;
    font-size: 12px;
    text-align: center;
}

.transaction-row span:first-child {
    text-align: left;
    color: #8794A1; /* Цвет курса для юзернеймов */
}

.transaction-row span:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.transaction-row .price {
    color: #ffffff;
    font-weight: 700;
}

.transaction-row .price-usd {
    color: #8794A1;
    font-weight: 400;
    font-size: 11px;
}

.transaction-row .status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.transaction-row .status-content {
    display: flex;
    align-items: center;
    gap: 5px; /* Иконка слева от текста */
    font-weight: 700; /* Жирный текст для статусов */
}

.transaction-row .status.completed .status-content {
    color: #248bda;
}

.transaction-row .status.pending .status-content {
    color: #ff8633;
}

.transaction-row .status.in-progress .status-content {
    color: #33e66c;
}

.transaction-row .status-icon {
    width: 12px;
    height: 12px;
}

.transaction-row .status.in-progress .status-icon {
    animation: spin 1s linear infinite; /* Вращение для In Progress */
}

.transaction-row .time-ago {
    color: #8794A1;
    font-size: 10px;
    font-weight: 400;
}

.transaction-row.animate {
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.transaction-row.pulse {
    animation: pulsePending 0.5s ease-in-out;
}

@keyframes pulsePending {
    0% { transform: scale(1); }
    25% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.transaction-row.remove {
    animation: slideOutRight 0.3s ease-in-out forwards;
}

@keyframes slideOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для таймера */
.timer-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.timer-label {
    color: #8794A1;
    font-size: 14px;
    font-weight: 500;
}

.timer-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.timer-value.orange {
    color: #ff8633;
}

.timer-value.red {
    color: #e30c0c;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Полупрозрачный тёмный фон */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #111213;
    border-radius: 10px;
    border: 1px solid #1c1e1f92;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative; /* Для позиционирования крестика */
}

.modal-icons {
    display: flex;
    justify-content: center;
    align-items: center; /* Вертикальное центрирование иконки */
    gap: 10px; /* Отступ, если позже добавятся иконки */
}

.modal-icon1 {
    width: 30px;
    height: 30px;
}

.modal-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    align-self: center;
    margin: 0;
}

.modal-description {
    color: #8794A1;
    font-size: 12px;
    font-weight: 400;
    align-self: center;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px; /* Увеличено с 16.8px */
    height: 20px;
    background-color: #232525; /* Тёмно-серый кружок */
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-close svg {
    width: 10px; /* Увеличено с 8.4px */
    height: 10px;
}

