/* CSS Variables for theming */
:root {
    --color-black: #111111;
    --color-yellow: #ffff00;
    --color-red: #ed5c5c;
    --color-white: #ffffff;
    --color-gray: #333333;
    --color-light-gray: #f5f5f5;
    --color-text: #e0e0e0;
    --font-main: 'Inter', 'Helvetica', 'Arial', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-black);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Alert Banner */
.alert-banner {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-bottom: 2px solid var(--color-yellow);
}

.alert-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.alert-close {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 0.7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    border-bottom: 3px solid var(--color-yellow);
    background-color: var(--color-black);
}

/* Когда есть alert-banner, header смещается вниз */
body:has(.alert-banner:not(.hidden)) .header {
    top: 46px;
}

/* Основной контент с отступом под header */
.main-content {
    margin-top: 140px;
}

/* Когда есть alert-banner, больше отступ */
body:has(.alert-banner:not(.hidden)) .main-content {
    margin-top: 186px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(255, 255, 0, 0.05);
    border-bottom: 1px solid var(--color-yellow);
}

.header-contacts {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.7;
}

.icon {
    width: 18px;
    height: 18px;
    color: var(--color-yellow);
}

.work-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-yellow);
    font-size: 13px;
    font-weight: 500;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

.language-selector {
    color: var(--color-yellow);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid var(--color-yellow);
    border-radius: 3px;
}

.header-main {
    display: none; /* Скрыт на ПК */
    justify-content: flex-end;
    align-items: center;
    padding: 20px 40px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-auth {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid var(--color-black);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    font-family: var(--font-main);
}

.btn-register {
    background-color: var(--color-yellow);
    color: var(--color-black);
    box-shadow: 4px 4px 0 var(--color-yellow);
}

.btn-login {
    background-color: var(--color-yellow);
    color: var(--color-black);
    box-shadow: 4px 4px 0 var(--color-yellow);
}

.btn-auth:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-yellow);
}

.btn-auth:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--color-yellow);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 80px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.bitcoin-logo {
    width: 80px;
    height: 80px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.main-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
}

.main-title .highlight {
    color: var(--color-yellow);
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

/* Exchange Section */
.exchange-section {
    margin-bottom: 80px;
}

.exchange-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.exchange-form {
    width: 100%;
    max-width: 1100px;
    border: 4px solid var(--color-yellow);
    background-color: var(--color-black);
    padding: 40px;
    position: relative;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-simple {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-field-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pair-select {
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--color-black);
    background-color: #e8e8e8;
    color: var(--color-black);
    font-family: var(--font-main);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23000" d="M0 0l6 8 6-8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.pair-select:hover {
    border-color: var(--color-yellow);
}

.pair-select:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.result-display {
    background-color: rgba(255, 255, 0, 0.05);
    border: 2px solid var(--color-yellow);
    padding: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 0, 0.2);
}

.result-label {
    color: var(--color-text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    color: var(--color-yellow);
    font-size: 32px;
    font-weight: 700;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.form-label {
    color: var(--color-yellow);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.currency-select {
    background-color: #e8e8e8;
    border: 2px solid var(--color-black);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: border-color 0.2s;
}

.currency-select:hover {
    border-color: var(--color-yellow);
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-black);
    font-weight: 600;
    font-size: 14px;
}

.currency-icon {
    font-size: 20px;
}

.currency-icon svg,
.currency-display svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.dropdown-arrow {
    color: var(--color-black);
    font-size: 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    color: var(--color-black);
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background-color: var(--color-yellow);
}

.amount-input {
    padding: 14px 16px;
    font-size: 26px;
    font-weight: 700;
    border: 2px solid var(--color-black);
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-main);
    transition: border-color 0.2s;
}

.amount-input:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.amount-input[readonly] {
    background-color: #e8e8e8;
    cursor: not-allowed;
    color: #333;
}

.exchange-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    cursor: pointer;
}

.exchange-arrow svg {
    width: 48px;
    height: 48px;
    transition: none;
}

.exchange-arrow.reverse svg {
    transform: rotate(180deg);
}

.exchange-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    gap: 8px;
}

.info-label {
    color: var(--color-text);
    opacity: 0.7;
}

.info-value {
    color: var(--color-yellow);
    font-weight: 600;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.reserve-amount {
    color: #4CAF50;
}

.info-error {
    color: var(--color-red);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rate-actual {
    color: var(--color-white);
}

.rate-markup {
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.rate-markup.positive {
    color: var(--color-yellow);
}

.rate-markup.negative {
    color: var(--color-red);
}

.rate-markup.neutral {
    color: var(--color-text);
}

.rate-base {
    color: var(--color-text);
    font-size: 11px;
    letter-spacing: 0.4px;
}

.rate-note {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.7;
}

.exchange-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--font-main);
    position: relative;
}

.exchange-btn:hover {
    opacity: 0.9;
}

.exchange-btn:active {
    opacity: 0.8;
}

/* Info Section */
.info-section {
    margin-bottom: 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: rgba(255, 255, 0, 0.03);
    border: 2px solid var(--color-yellow);
    padding: 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 0, 0.2);
}

.info-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
}

.info-icon svg {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.info-card h3 {
    color: var(--color-yellow);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.info-card p {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
}

/* Request Section */
.request-section {
    margin-bottom: 80px;
    border: 3px solid var(--color-yellow);
    padding: 40px;
    background-color: rgba(17, 17, 17, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-request-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 0, 0.2);
}

.modal-request-form .request-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .modal-request-form .request-grid {
        grid-template-columns: 1fr;
    }
}

.modal-request-form .request-field input {
    width: 100%;
}

.modal-form-title {
    color: var(--color-yellow);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .request-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-request-form {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .modal-request-form .request-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.request-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-field label {
    color: var(--color-yellow);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.request-field input {
    padding: 14px 18px;
    border: 2px solid var(--color-yellow);
    background-color: #0f0f0f;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--color-white);
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.request-field input:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.4);
}

.request-field input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.request-field select,
.request-select {
    padding: 14px 18px;
    border: 2px solid var(--color-yellow);
    background-color: #0f0f0f;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--color-white);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23ffff00" d="M0 0l6 8 6-8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.15);
}

.request-field select:focus,
.request-select:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.4);
}

.request-field select option {
    background-color: #0f0f0f;
    color: #fff;
    padding: 10px;
}

.request-field select option:checked {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--color-white);
}

.rules-list li {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 0, 0.3);
    background-color: rgba(255, 255, 0, 0.05);
    font-size: 14px;
    line-height: 1.5;
}

.request-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 3px solid var(--color-black);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.request-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.3);
}

.request-note {
    color: var(--color-text);
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* News Section - УДАЛЁН */

/* Partners Section */
.partners-section {
    margin-bottom: 80px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    padding: 40px;
    border: 3px solid var(--color-yellow);
    background-color: rgba(255, 255, 0, 0.02);
    position: relative;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    transition: transform 0.2s;
    cursor: pointer;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-logo svg {
    width: 100%;
    height: auto;
    max-width: 120px;
    image-rendering: pixelated;
}

.partner-logo span {
    color: var(--color-yellow);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    border-top: 3px solid var(--color-yellow);
    padding: 50px 40px 30px;
    margin-top: 100px;
    position: relative;
}

/* Mobile-only elements */
.mobile-header-logo { display: none; }

/* Footer Burger Menu */
/* Header Burger Menu - скрыт по умолчанию, показывается только на мобильных */
.header-burger {
    display: none;
}

.header-burger span {
    width: 24px;
    height: 3px;
    background-color: var(--color-yellow);
    transition: all 0.3s;
}

.header-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header-burger.active span:nth-child(2) {
    opacity: 0;
}

.header-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.header-burger:hover {
    background-color: rgba(255, 255, 0, 0.1);
}

.header-content {
    width: 100%;
    display: block;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-crypto-icons {
    display: flex;
    gap: 12px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    transition: transform 0.2s;
    cursor: pointer;
}

.footer-icon:hover {
    transform: scale(1.1);
}

.footer-info p {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.footer-description {
    opacity: 0.7;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    color: var(--color-yellow);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s;
    line-height: 1.6;
}

.footer-links a:hover {
    color: var(--color-yellow);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.support-btn {
    background-color: var(--color-red);
    color: var(--color-white);
    border: 3px solid var(--color-black);
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 5px 5px 0 rgba(237, 92, 92, 0.4);
}

.support-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 rgba(237, 92, 92, 0.4);
}

.support-btn:active {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 rgba(237, 92, 92, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-link {
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 8px 15px;
    border: 1px solid var(--color-yellow);
}

.social-link:hover {
    opacity: 0.7;
    background-color: rgba(255, 255, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-simple {
        gap: 20px;
    }
    
    .result-value {
        font-size: 24px;
    }
    
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px;
    }

    .request-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-right {
        align-items: flex-start;
    }
}

/* OLD MOBILE BLOCK REMOVED — see final override at end of file */
/* old mobile blocks removed — see final override block at end of file */


/* Hidden class for alert */
.hidden {
    display: none !important;
}

/* Success Toast Notification */
.success-toast {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: 4px solid var(--color-yellow);
    border-radius: 8px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 0, 0.3);
    min-width: 400px;
    max-width: 90vw;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-toast.show {
    top: 100px;
    animation: toastBounce 0.6s ease-out;
}

@keyframes toastBounce {
    0% {
        transform: translateX(-50%) translateY(-100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) translateY(10px) scale(1.05);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

.toast-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 255, 0, 0.5);
    }
}

.toast-content {
    flex: 1;
}

.toast-title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.toast-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

/* toast mobile — moved to final override block */

/* Exchange Confirmation Modal */
/* Окно оплаты поверх тоста (у success-toast z-index: 10000) */
#paymentModal.modal-overlay {
    z-index: 10100;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--color-black);
    border: 4px solid var(--color-yellow);
    max-width: 720px;
    width: min(95vw, 720px);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: slideIn 0.3s ease-out;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--color-yellow) rgba(255, 255, 0, 0.15);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 0, 0.1);
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--color-yellow);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--color-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--color-yellow);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-yellow);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exchange-summary {
    background-color: rgba(255, 255, 0, 0.05);
    border: 2px solid var(--color-yellow);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: var(--color-text);
    font-size: 14px;
    opacity: 0.8;
}

.summary-value {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
}

.summary-value.highlight {
    color: var(--color-yellow);
    font-size: 18px;
}

.summary-arrow {
    text-align: center;
    color: var(--color-yellow);
    font-size: 24px;
    margin: 10px 0;
}

.summary-divider {
    height: 1px;
    background-color: var(--color-yellow);
    margin: 15px 0;
    opacity: 0.3;
}

.modal-info {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    opacity: 0.8;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--color-yellow);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.modal-btn-cancel {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.modal-btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-btn-confirm {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-black);
}

.modal-btn-confirm:hover {
    background-color: #ffff33;
    transform: translateY(-2px);
}

/* WhatsApp Error Modal Styles */
.error-modal .modal-content {
    border-color: var(--color-red);
}

.error-header {
    background-color: rgba(237, 92, 92, 0.1);
    border-bottom-color: var(--color-red);
}

.error-header h3 {
    color: var(--color-red);
}

.error-icon-large {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.error-icon-large svg {
    width: 100px;
    height: 100px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.error-message {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.error-suggestion {
    color: var(--color-text);
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.error-suggestion strong {
    color: var(--color-yellow);
    font-weight: 700;
}

.error-telegram-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--color-yellow);
    color: var(--color-black);
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 3px solid var(--color-black);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.3);
}

.error-telegram-btn:hover {
    background-color: #ffff33;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(255, 255, 0, 0.3);
}

/* ─── Payment Modal ─────────────────────────────────────────────────────── */

.payment-modal-content {
    max-width: 520px;
}

.payment-order-summary {
    background: rgba(255, 255, 0, 0.06);
    border: 1px solid rgba(255, 255, 0, 0.2);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.payment-order-id {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.payment-order-id span {
    color: var(--color-yellow);
    font-weight: 700;
}

.payment-order-details {
    font-size: 15px;
    color: var(--color-text);
}

.payment-order-details strong {
    color: var(--color-yellow);
    font-weight: 700;
}

.payment-wallet-block {
    margin-bottom: 20px;
}

.payment-wallet-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-network-badge {
    background: rgba(255, 255, 0, 0.15);
    color: var(--color-yellow);
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.payment-network-badge:empty {
    display: none;
}

.payment-address-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 0, 0.3);
    border-radius: 4px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.payment-address-bar:hover {
    border-color: var(--color-yellow);
    background: #1f1f1f;
}

.payment-address-bar.copied {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
}

.payment-address-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--color-yellow);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
}

.payment-copy-icon {
    flex-shrink: 0;
    color: #888;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.payment-address-bar:hover .payment-copy-icon {
    color: var(--color-yellow);
}

.payment-address-bar.copied .payment-copy-icon {
    color: #4caf50;
}

.payment-copy-hint {
    font-size: 11px;
    color: #555;
    margin-top: 5px;
    text-align: center;
    transition: color 0.2s;
}

.payment-copy-hint.success {
    color: #4caf50;
}

.payment-no-wallet {
    background: rgba(237, 92, 92, 0.08);
    border: 1px solid rgba(237, 92, 92, 0.3);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #e0e0e0;
}

.payment-message-block {
    margin-bottom: 20px;
}

.payment-message-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.payment-message-text {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    white-space: pre-line;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-paid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #0088cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-transform: uppercase;
}

.payment-paid-btn:hover {
    background: #0099dd;
    transform: translateY(-1px);
}

.payment-paid-btn:active {
    transform: translateY(0);
}

.payment-note {
    font-size: 11px;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

/* modal/footer mobile — moved to final override block */

/* ─── Bottom Sheet (mobile currency picker) ──────────────────────────────── */

.bottom-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10200;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.bottom-sheet-overlay.active { display: block; }

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 3px solid var(--color-yellow);
    border-radius: 16px 16px 0 0;
    z-index: 10201;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

.bottom-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-yellow);
    text-align: center;
    padding: 14px 20px 8px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bottom-sheet-search {
    padding: 8px 16px 12px;
    flex-shrink: 0;
}

.bottom-sheet-search input {
    width: 100%;
    background: #111;
    border: 1.5px solid #333;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 15px;
    padding: 10px 14px;
    outline: none;
    font-family: var(--font-main);
    transition: border-color 0.2s;
}

.bottom-sheet-search input:focus {
    border-color: var(--color-yellow);
}

.bottom-sheet-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 0 0 12px;
}

.bottom-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #222;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-sheet-item:active,
.bottom-sheet-item.selected {
    background: rgba(255,255,0,0.07);
}

.bottom-sheet-item:last-child { border-bottom: none; }

.bottom-sheet-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,0,0.08);
    border: 1.5px solid rgba(255,255,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bottom-sheet-item-icon svg {
    width: 26px;
    height: 26px;
}

.bottom-sheet-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.bottom-sheet-item-sub {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.bottom-sheet-item-check {
    margin-left: auto;
    color: var(--color-yellow);
    flex-shrink: 0;
}

/* ─── Rules agree checkbox ───────────────────────────────────────────────── */

.rules-agree-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    padding: 0;
    user-select: none;
}

.rules-agree-prominent {
    padding: 12px 14px;
    background: rgba(255,255,0,0.04);
    border: 1px solid rgba(255,255,0,0.15);
    border-radius: 4px;
    margin-bottom: 4px;
}

.rules-agree-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--color-yellow);
    cursor: pointer;
}

.rules-inline-link {
    background: none;
    border: none;
    color: var(--color-yellow);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rules-inline-link:hover { text-decoration: none; }

/* ─── Footer redesign ────────────────────────────────────────────────────── */

.footer {
    border-top: 3px solid var(--color-yellow);
    background: #0d0d0d;
    padding: 50px 40px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-yellow);
    letter-spacing: 1px;
}

.footer-brand-tagline {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
}

.footer-copy {
    font-size: 11px;
    color: #444;
    margin-top: 6px;
}

.footer-center {
    display: flex;
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 4px;
}

.footer-link {
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--color-yellow); }

.footer-worktime {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-contacts-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 4px;
}

.footer-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid #333;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    font-family: var(--font-main);
    transition: border-color 0.2s, color 0.2s;
    min-width: 140px;
    justify-content: flex-start;
}

.footer-contact-btn:hover {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

/* ─── Blockchain payment status ─────────────────────────────────────────── */

.payment-blockchain-status {
    background: rgba(255,255,0,0.04);
    border: 1px solid rgba(255,255,0,0.15);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bc-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bc-status-dot.waiting {
    background: #888;
    box-shadow: 0 0 0 0 rgba(136,136,136,0.5);
    animation: pulseWait 2s ease-in-out infinite;
}

.bc-status-dot.detected {
    background: #f0b429;
    box-shadow: 0 0 0 0 rgba(240,180,41,0.5);
    animation: pulseDetected 1.5s ease-in-out infinite;
}

.bc-status-dot.confirmed {
    background: #4caf50;
    animation: none;
    box-shadow: 0 0 8px rgba(76,175,80,0.6);
}

@keyframes pulseWait {
    0%, 100% { box-shadow: 0 0 0 0 rgba(136,136,136,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(136,136,136,0); }
}
@keyframes pulseDetected {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240,180,41,0.6); }
    50%       { box-shadow: 0 0 0 6px rgba(240,180,41,0); }
}

.bc-status-text {
    font-size: 13px;
    color: #bbb;
    line-height: 1.4;
}

.bc-confirmations {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bc-conf-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.bc-conf-bar {
    height: 100%;
    background: var(--color-yellow);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.bc-conf-label {
    font-size: 11px;
    color: #666;
}

/* ─── Jabber hint ────────────────────────────────────────────────────────── */

.jabber-copied-hint {
    display: none;
    font-size: 11px;
    color: #4caf50;
    padding: 2px 0;
}

.jabber-copied-hint.visible { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — единственный блок стилей для мобильных устройств
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Base ── */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* ── Alert banner ── */
    .alert-banner {
        padding: 10px 44px 10px 16px;
        font-size: 12px;
        line-height: 1.4;
    }
    .alert-content {
        font-size: 12px;
    }

    /* ── Header ── */
    .header {
        min-height: 64px;
        padding: 0;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 9998;
    }
    body:has(.alert-banner:not(.hidden)) .header { top: 42px; }
    .header-top, .header-main { display: none !important; }
    /* ── Mobile drawer menu ── */
    .header-content {
        display: none !important;
        position: fixed;
        top: 0; left: 0; right: 0;
        bottom: auto !important;
        background: #111;
        border-bottom: 3px solid var(--color-yellow);
        padding: 64px 0 0;
        z-index: 10000;
        overflow: visible;
    }
    .header-content.active {
        display: block !important;
        animation: slideDown 0.25s ease-out;
    }
    .header-content.active .header-top,
    .header-content.active .header-main {
        display: flex !important;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .header-top {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border: none;
        margin: 0;
    }
    .header-contacts { flex-direction: column; gap: 0; width: 100%; }
    .contact-link {
        width: 100%;
        padding: 14px 20px;
        border: none;
        border-bottom: 1px solid rgba(255,255,0,.1);
        border-radius: 0;
        font-size: 15px;
        background: transparent;
        color: var(--color-yellow);
    }
    .contact-link:hover, .contact-link:active { background: rgba(255,255,0,.06); }
    .work-time {
        padding: 14px 20px;
        border: none;
        border-bottom: 1px solid rgba(255,255,0,.1);
        border-radius: 0;
        font-size: 15px;
        width: 100%;
        color: #888;
        background: transparent;
    }
    .jabber-copied-hint { padding: 0 20px 8px; display: none; }
    .jabber-copied-hint.visible { display: block; }
    .header-main { display: none !important; }
    .header-actions { display: none !important; }
    .header-burger {
        display: flex !important;
        position: fixed;
        top: 10px; right: 12px;
        width: 44px; height: 44px;
        background: var(--color-black);
        border: 2px solid var(--color-yellow);
        border-radius: 6px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 0;
        z-index: 10001;
    }
    body:has(.modal-overlay.active) .header-burger { display: none !important; }
    .header-burger span { width: 22px; height: 2.5px; background: var(--color-yellow); display: block; transition: all .3s; }
    .header-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .header-burger.active span:nth-child(2) { opacity: 0; }
    .header-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    /* ── Mobile header logo (shown only on mobile) ── */
    .mobile-header-logo {
        display: flex !important;
        align-items: center;
        position: absolute;
        top: 0; left: 0; right: 68px; bottom: 0;
        padding-left: 16px;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 2px;
        color: var(--color-yellow);
        pointer-events: none;
        z-index: 1;
    }

    /* ── Main content ── */
    .main-content {
        margin-top: 64px !important;
        padding: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    body:has(.alert-banner:not(.hidden)) .main-content { margin-top: 106px !important; }

    /* ── Title section ── */
    .title-section {
        padding: 20px 16px 12px !important;
        margin-bottom: 0 !important;
        text-align: center;
    }
    .logo-container { margin-bottom: 8px !important; }
    .logo-container svg { width: 48px !important; height: 48px !important; }
    .main-title {
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
        margin-bottom: 0 !important;
    }

    /* ── Exchange section ── */
    .exchange-section {
        padding: 0 !important;
        margin: 0 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .exchange-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .exchange-form {
        padding: 16px !important;
        border: 2px solid var(--color-yellow) !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        position: static !important;
    }
    .form-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .form-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .form-column {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        gap: 6px !important;
    }
    .form-label {
        font-size: 11px !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 0 !important;
    }
    .currency-select {
        padding: 12px 14px !important;
        font-size: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .currency-display { font-size: 14px !important; gap: 10px !important; }
    .amount-input {
        font-size: 26px !important;
        padding: 10px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Arrow between fields — thin divider */
    .exchange-arrow {
        padding: 0 !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 24px !important;
    }
    .exchange-arrow svg {
        width: 18px !important;
        height: 18px !important;
        transform: rotate(90deg) !important;
        opacity: 0.5;
    }

    .exchange-info {
        width: 100% !important;
        margin-top: 8px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .info-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 5px 0 !important;
        border-bottom: 1px solid rgba(255,255,0,.07) !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .info-row:last-child { border-bottom: none !important; }
    .info-label { font-size: 11px !important; opacity: .6; white-space: nowrap; }
    .info-value { font-size: 12px !important; text-align: right !important; }

    /* Exchange button — fully inside form */
    .exchange-btn {
        margin-top: 4px !important;
        padding: 15px !important;
        font-size: 15px !important;
        letter-spacing: 1px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: none !important;
        display: block !important;
        position: static !important;
    }

    /* ── Info cards ── */
    .info-section {
        margin-bottom: 24px !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .info-grid {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 12px !important;
    }
    .info-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 14px 12px !important;
        text-align: left !important;
        border-width: 1.5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
        border-radius: 4px !important;
        transform: none !important;
    }
    .info-card:last-child { margin-bottom: 0 !important; }
    .info-card:hover, .info-card:active { transform: none !important; box-shadow: none !important; }
    .info-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    .info-card h3 { font-size: 13px !important; margin-bottom: 2px !important; letter-spacing: 0 !important; }
    .info-card p { font-size: 12px !important; line-height: 1.4 !important; }

    /* ── Footer ── */
    .footer {
        padding: 32px 16px 24px !important;
        margin-top: 32px !important;
    }
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        max-width: 100% !important;
        grid-template-columns: unset !important;
    }
    .footer-brand { gap: 12px !important; }
    .footer-brand-name { font-size: 14px !important; }
    .footer-copy { font-size: 11px !important; }
    .footer-center { flex-direction: column !important; gap: 16px !important; }
    .footer-links { gap: 6px !important; }
    .footer-links-title { margin-bottom: 2px !important; }
    .footer-right { align-items: stretch !important; width: 100% !important; }
    .footer-contacts-title { text-align: left !important; margin-bottom: 8px !important; }
    .footer-contact-btn {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    /* ── Modal (bottom sheet on mobile) ── */
    .modal-overlay { align-items: flex-end !important; }
    .modal-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 88vh !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 16px 16px 0 0 !important;
        margin: 0 !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        animation: slideUp .3s ease-out !important;
    }
    @keyframes slideUp {
        from { transform: translateY(40px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
    .modal-header { padding: 16px 16px 12px !important; }
    .modal-header h3 { font-size: 15px !important; }
    .modal-body { padding: 12px 14px 12px !important; gap: 12px !important; }
    .modal-footer { padding: 10px 14px 20px !important; }
    .modal-btn { width: 100% !important; }

    /* Summary in modal */
    .exchange-summary { padding: 12px 14px !important; margin-bottom: 0 !important; }
    .summary-row { font-size: 14px !important; }
    .summary-value { font-size: 15px !important; }

    /* Contact form in modal */
    .modal-request-form { margin-top: 0 !important; padding-top: 12px !important; border-top-width: 1px !important; }
    .modal-form-title { font-size: 13px !important; margin-bottom: 12px !important; }
    .request-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .request-field { gap: 6px !important; }
    .request-field label { font-size: 11px !important; }
    .request-field input { padding: 11px 12px !important; font-size: 15px !important; box-shadow: none !important; }
    .request-btn { font-size: 15px !important; padding: 15px !important; }
    .request-note { font-size: 12px !important; }

    /* Rules agree */
    .rules-agree-prominent { padding: 10px 12px !important; }
    .rules-agree-label { font-size: 13px !important; }

    /* Payment modal */
    .payment-modal-content { max-height: 92vh !important; }
    .payment-order-summary { padding: 10px 12px !important; }
    .payment-address-text { font-size: 11px !important; }
    .payment-address-bar { padding: 12px 12px !important; }
    .payment-message-text { font-size: 12px !important; padding: 10px 12px !important; }
    .payment-paid-btn { font-size: 14px !important; padding: 14px !important; }

    /* Rules modal */
    .rules-list li { font-size: 13px !important; padding: 10px 12px !important; }

    /* Toast */
    .success-toast { min-width: 0 !important; width: 90vw !important; padding: 16px 20px !important; gap: 14px !important; }
    .toast-icon { width: 44px !important; height: 44px !important; }
    .toast-title { font-size: 16px !important; }
    .toast-message { font-size: 13px !important; }
}

/* ── Very small phones ── */
@media (max-width: 380px) {
    .main-title { font-size: 18px !important; }
    .amount-input { font-size: 24px !important; }
    .exchange-btn { font-size: 14px !important; padding: 15px !important; }
    .currency-display { font-size: 13px !important; }
}

