/**
 * Максимально приоритетные стили для кнопки регистрации
 * Гарантируют единый темно-синий цвет (#2563EB) на всех страницах
 */

/* Стили кнопки регистрации с максимальным приоритетом */
.register-btn,
a.register-btn,
.header .register-btn,
.header a.register-btn,
button.register-btn,
html[data-theme="dark"] .register-btn,
html[data-theme="light"] .register-btn,
html[data-theme="dark"] a.register-btn,
html[data-theme="light"] a.register-btn,
*[class*="register-btn"] {
    background-color: #2563EB;
    color: #ffffff;
    border-radius: 24px;
    padding: 6px 16px;
    font-weight: 400;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    border: none;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.35);
    transition: none;
    transform: none;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    outline: none;
    line-height: 1.5;
    opacity: 1;
}

/* Стили при наведении с максимальным приоритетом */
.register-btn:hover,
a.register-btn:hover,
.header .register-btn:hover,
.header a.register-btn:hover,
button.register-btn:hover,
html[data-theme="dark"] .register-btn:hover,
html[data-theme="light"] .register-btn:hover,
html[data-theme="dark"] a.register-btn:hover,
html[data-theme="light"] a.register-btn:hover,
*[class*="register-btn"]:hover {
    background-color: #1E40AF;
    color: #ffffff;
    outline: none;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.45);
}

.theme-switch,
.lang-switch {
    width: 33px;
    height: 33px;
    padding: 4px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-switch:focus,
.lang-switch:focus,
.theme-switch:active,
.lang-switch:active {
    outline: none;
    box-shadow: none;
}

.theme-switch svg,
.lang-switch svg {
    color: #ffffff;
    width: 22px;
    height: 22px;
}

.lang-switch {
    margin-left: 15px;
}

/* Эффект свечения только для кнопки регистрации в registration-form */
.registration-form > button:hover {
    box-shadow: 0 0 16px 4px rgba(37, 99, 235, 0.55);
    background-color: #2563EB;
    color: #fff;
    transition: box-shadow 0.25s, background 0.2s;
}

/* --- ВЕРТИКАЛЬНЫЙ ВИДЖЕТ последних обменов (как на gate.com) --- */
.exchange-history-widget {
    width: 380px;
    height: 470px;
    background: #fff;
    border-radius: 24px;
    box-shadow: none;
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 0;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.exchange-history-title {
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary, #22223a);
    letter-spacing: 0.01em;
    padding: 0 24px;
}

.exchange-history-list {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.exchange-history-list li {
    width: 100%;
    text-align: left;
    padding: 14px 24px;
    border-radius: 8px;
}

.exchange-history-list li:hover {
    background: #f5f6fa;
}

html[data-theme="dark"] .exchange-history-widget {
    background: #070808;
    border: 1px solid #23272f;
}

html[data-theme="dark"] .exchange-history-title {
    color: #fff;
}

html[data-theme="dark"] .exchange-history-list li {
    color: var(--text-secondary, #a0aec0);
}

html[data-theme="dark"] .exchange-history-list li:hover {
    background: #181a20;
}

@media (max-width: 900px) {
    .exchange-history-widget {
        width: 100%;
        max-width: 380px;
        margin: 32px auto 0 auto;
    }
}

/* --- СТИЛИ ДЛЯ exchange-history-table (как на gate.com) --- */
.exchange-history-table {
    width: 92%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 6px;
    padding: 0;
    table-layout: fixed;
}

.exchange-history-table tr {
    transition: background 0.15s;
}

.exchange-history-table td {
    width: 150px;
    height: 60px;
    line-height: 60px;
    padding: 0;
    font-size: 17px;
    color: #1A1D1F;
    font-weight: 500;
    border: none;
    background: none;
    vertical-align: middle;
    text-align: center;
}

.exchange-history-table tr:hover td {
    background: #f5f6fa;
    border-radius: 8px;
}

html[data-theme="dark"] .exchange-history-table tr:hover td {
    background: #23242a;
    border-radius: 8px;
}

html[data-theme="dark"] .exchange-history-table td {
    color: #fff;
}

html[data-theme="light"] .exchange-history-table td {
    color: #1A1D1F;
}

/* Удаляю все стили для .exchange-row-inner */
.exchange-history-list, .exchange-history-list li { all: unset; } 

.buy-amount {
    color: #22c55e;
    font-weight: 600;
}

.sell-amount {
    color: #ef4444;
    font-weight: 600;
}

.currency-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin: 0 6px 0 0;
    display: inline-block;
}

.currency-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
}

.custom-widget {
    padding-top: 3px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    text-align: left;
    padding-left: 32px;
    transform: translateX(-120px) translateY(-3px);
    align-self: flex-start;
    margin-left: 40px;
    width: 580px;
    height: 90px;
    border-radius: 24px;
    margin-top: 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: none;
    padding: 32px 28px 24px 28px;
    margin-bottom: 0;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
    color: #8b8b8b;
}

html[data-theme="dark"] .custom-widget {
    background: #070808;
    border: 1px solid #23272f;
}

.custom-widget-text {
    display: inline-block;
    transform: translateY(-3px);
}

.social-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.social-icons-row {
    margin-left: -30px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 8px;
}

.social-caption {
    font-size: 13px;
    color: #8b8b8b;
    margin-bottom: 8px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-right: 32px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #181a20;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
}

.social-link:hover {
    background: #23272f;
}

.social-link svg {
    width: 28px;
    height: 28px;
}

.registration-social-links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
    margin-top: 125px;
}

.registration-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #181a20;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
}

.registration-social-link:hover {
    background: #23272f;
}

.registration-social-link svg {
    width: 45px;
    height: 45px;
}

.registration-social-link.email {
    margin-left: 0;
    margin-top: 5px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.registration-social-link.email:hover {
    background: transparent;
    box-shadow: none;
}

.email-icon-row {
    margin-left: 25px;
    margin-top: 8px;
}

.social-group:last-child {
    margin-left: -40px;
}

.social-group:last-child .social-caption {
    margin-left: 70px;
}

html[data-theme="light"] #mars-weather-widget {
  background: #f8fafc;
  color: #23272f;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  /* border: 1px solid #e5e7eb; */
}
html[data-theme="light"] #mars-weather-widget img {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}
html[data-theme="light"] #mars-weather-data {
  color: #23272f;
}

.mars-rover-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  min-height: 160px;
  max-height: 320px;
} 