/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;   
    user-select: none;  
}

/* CSS Variables for Dark Theme (Default) - Trust Wallet Colors */
:root {
    /* Background Colors */
    --bg-primary: #1b1b1c;
    --bg-secondary: rgba(27, 27, 28, 0.95);
    --bg-tertiary: rgba(27, 27, 28, 0.8);
    --bg-card: rgba(27, 27, 28, 0.9);
    --bg-header: rgba(27, 27, 28, 0.98);
    --bg-gradient-start: #1b1b1c;
    --bg-gradient-end: #1b1b1c;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-tertiary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Accent Colors - Gold Theme */
    --accent-blue: #FFD700;
    --accent-blue-hover: #FFC700;
    --accent-cyan: #FFD700;
    --accent-green: #FFD700;
    --accent-blue-light: rgba(255, 215, 0, 0.1);
    --accent-blue-medium: rgba(255, 215, 0, 0.2);
    --accent-blue-strong: rgba(255, 215, 0, 0.3);
    
    /* Border Colors - Gold in dark mode */
    --border-primary: rgba(255, 215, 0, 0.3);
    --border-secondary: rgba(255, 215, 0, 0.5);
    --border-light: rgba(255, 215, 0, 0.2);
    
    /* Button Colors - Gold in dark mode */
    --btn-primary: #FFD700;
    --btn-primary-hover: #FFC700;
    --btn-text: #000000;
    
    /* Shadow Colors */
    --shadow-blue: rgba(255, 215, 0, 0.3);
    --shadow-blue-strong: rgba(255, 215, 0, 0.4);
}

/* Light Theme - Trust Wallet Colors */
[data-theme="light"] {
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: rgba(255, 255, 255, 0.98);
    --bg-tertiary: rgba(248, 249, 250, 0.9);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-header: rgba(255, 255, 255, 0.98);
    --bg-gradient-start: #FFFFFF;
    --bg-gradient-end: #F8F9FA;
    
    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.9);
    --text-tertiary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
    
    /* Accent Colors - Gold Theme */
    --accent-blue: #B8860B;
    --accent-blue-hover: #DAA520;
    --accent-cyan: #DAA520;
    --accent-green: #DAA520;
    --accent-blue-light: rgba(184, 134, 11, 0.1);
    --accent-blue-medium: rgba(184, 134, 11, 0.2);
    --accent-blue-strong: rgba(184, 134, 11, 0.3);
    
    /* Border Colors - Gold in light mode */
    --border-primary: #B8860B;
    --border-secondary: rgba(184, 134, 11, 0.8);
    --border-light: rgba(184, 134, 11, 0.5);
    
    /* Button Colors - Gold in light mode */
    --btn-primary: #B8860B;
    --btn-primary-hover: #DAA520;
    --btn-text: #FFFFFF;
    
    /* Shadow Colors */
    --shadow-blue: rgba(184, 134, 11, 0.2);
    --shadow-blue-strong: rgba(184, 134, 11, 0.3);
}

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    scroll-behavior: smooth;
    font-weight: 400;
    background-color: var(--bg-primary);
    line-height: 26px;
    letter-spacing: -0.0001em;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    background: rgba(27, 27, 28, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}


.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    transition: color 0.3s ease, stroke 0.3s ease;
}


/* Dark theme - показываем только луну */
.theme-icon-dark {
    display: block;
}

.theme-icon-light {
    display: none;
}

/* Light theme - показываем только солнце */
[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: block;
    color: var(--accent-blue);
    stroke: var(--accent-blue);
}

/* Разделитель перед кнопкой темы */
.header-wrp1 .theme-toggle {
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--border-secondary);
    border-radius: 0;
}


.header__wrapper {
    max-width: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 12px;
}

.header-wrp1 {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border-secondary);
    border-radius: 60px;
    padding: 8px 24px;
    background: var(--accent-blue-light);
    transition: all 0.3s ease;
}


.header-wrp1-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.3s ease;
}


.header-img-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.header-img {
    background-image: url(images/logo.png);
    width: 46px;
    height: 46px;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}



.header-wrp2 a {
    background-color: var(--btn-primary);
    backdrop-filter: blur(14px);
    color: var(--btn-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 6.5px 36px;
    border-radius: 8px; 
    transition: background-color 0.3s ease, color 0.3s ease;
}


.hero {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.hero__block1-wrapper {
    padding-top: 30px;
}

.hero__block1-background {
    width: 100%;
    height: auto;
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: center;
}

.hero__block1-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__block1-wrp {
    display: flex;
    align-items: center;
    background-color: var(--accent-blue-light);
    border: 1px solid var(--border-secondary);
    border-radius: 50px;
    padding: 8px 14px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}


.hero__block1-wrp-img {
    width: 34px;
    height: 18px;
    margin-right: 7px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-medium);
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero__block1-wrp-img::before {
    content: 'our';
    color: var(--accent-green);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.hero__block1-wrp-text {
    color: var(--accent-green);
    font-weight: 500;
    transition: color 0.3s ease;
}

.hero__block1-head {
    font-size: 82px;
    font-weight: 500;
    line-height: 84px;
    max-width: 486px;
    text-align: center;
    margin: 13px 0 16px;
}

.hero__block1-head-span {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

[data-theme="light"] .hero__block1-head-span {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__block1-text {
    font-size: 20px;
    line-height: 31px;
    max-width: 500px;
    text-align: center;
    margin-bottom: 22px;
}

.hero__block1-wrp-btn {
    display: flex;
    align-items: center;
    padding: 6px 6.5px;
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    margin-top: 10px;
    font-size: 30px;
    transition: border-color 0.3s ease;
}

.hero__block1-wrp-btn a {
    text-decoration: none;
    background-color: var(--btn-primary);
    backdrop-filter: blur(14px);
    color: var(--btn-text);
    font-weight: 600;
    padding: 40px 120px;
    border-radius: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


@media screen and (max-width: 768px) {
    .hero__block1-wrp-btn {
        margin-top: 60px;
        font-size: 26px;
    }
    
    .hero__block1-wrp-btn a {
        padding: 35px 90px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero__block1-wrp-btn {
        margin-top: 40px;
        font-size: 22px;
    }
    
    .hero__block1-wrp-btn a {
        padding: 20px 50px;
        font-size: 16px;
    }
}

@media screen and (max-width: 360px) {
    .hero__block1-wrp-btn a {
        padding: 16px 35px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .hero__block3-item-text {
        font-size: 14px;
        line-height: 1.5;
        width: 100%;
        max-width: 100%;
    }
    
    .hero__block3-item-img-content {
        padding: 0 5px;
    }
    
    .hero__block3-item-img-step {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .hero__block3-item-text {
        font-size: 13px;
        margin-top: 20px;
    }
    
    .hero__block3-item-img-step {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .hero__block3-item-img-content {
        gap: 10px;
        margin-top: 20px;
    }
}

.hero__block1-blur-wrp {
    display: flex;
    max-width: 1248px;
    margin: 0 auto;
    position: relative;
}

.hero__block1-blur {
    position: absolute;
    right: 10px;
    bottom: -1290px;
    width: 1225px;
    height: 988px;
    border-radius: 50%;
    background: var(--accent-blue-strong);
    filter: blur(135px);
    transition: background 0.3s ease;
}

.hero__block1-wrp-ban {
    display: none;
}

.hero__block2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    gap: 40px;
}

.hero__block2-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.hero__block2-text {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}
.hero__item {
    width: 235px;
    height: 98px;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero__item {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.hero__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.hero__item-icon {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero__item-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Bitcoin specific styling */
.hero__item1 {
    border-color: rgba(247, 147, 26, 0.3);
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.15) 0%, var(--bg-primary) 100%);
}


.hero__item1 .hero__item-icon {
    background-image: url(images/BTC.png);
}

/* Ethereum specific styling */
.hero__item2 {
    border-color: rgba(98, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(98, 126, 234, 0.15) 0%, var(--bg-primary) 100%);
}


.hero__item2 .hero__item-icon {
    background-image: url(images/ETH.png);
}

/* BNB Chain specific styling */
.hero__item3 {
    border-color: rgba(243, 186, 47, 0.3);
    background: linear-gradient(135deg, rgba(243, 186, 47, 0.15) 0%, var(--bg-primary) 100%);
}


.hero__item3 .hero__item-icon {
    background-image: url(images/BNB.png);
}

/* Solana specific styling */
.hero__item4 {
    border-color: rgba(0, 217, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, var(--bg-primary) 100%);
}


.hero__item4 .hero__item-icon {
    background-image: url(images/SOL.png);
}

.switch {
    position: relative;
    display: inline-block;
    width: 33px;  
    height: 20px; 
}

input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.lbl {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-radius: 34px;
}

.lbl:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    bottom: 2px; 
    background-color: var(--bg-primary); 
    transition: .4s;
    border-radius: 50%; 
}


input[type="checkbox"]:checked + .lbl {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="checkbox"]:checked + .lbl:before {
    transform: translateX(16px); 
}

.hero__block3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
}

.hero__block3-wrp {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 38px;
}



.hero__block3-item {
    border: 1px solid var(--border-primary);
    width: 307px;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .hero__block3-item {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.hero__block3-item-wrp {
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 20px;
    transition: border-color 0.3s ease;
}

.hero__block-item-head {
    font-weight: 500;
    line-height: 31px;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.hero__block-item-span {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.hero__block3-head {
    font-size: 56px;
    font-weight: 500;
    line-height: 65px;
    letter-spacing: -0.015em;
    margin-bottom: 40px;
}

.hero__block3-head2 {
    font-size: 20px;
    font-weight: 400;
    line-height: 31px;
    margin-bottom: 42px;
}

.hero__block3-wrp-p {
    color: var(--text-muted);
    line-height: 31px;
    transition: color 0.3s ease;
}

.hero__block3-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__block3-item-img {
    border: 1px solid var(--border-primary);
    width: 307px;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--bg-card);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hero__block3-item-text {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 35px;
    width: 100%;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    flex: 1;
}

.hero__block3-item-img-content {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 10px;
}

.hero__block3-item-img-step {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}



.hero__block4-wrapper-img {
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    transition: filter 0.3s ease;
}

.hero__block4-wrapper-img1 {
    background-image: url(images/gauge\ 1.svg);
}
.hero__block4-wrapper-img2 {
    background-image: url(images/list-checks\ 1.svg);
}
.hero__block4-wrapper-img3 {
    background-image: url(images/chart-line\ 1.svg);
}
.hero__block4-wrapper-img4 {
    background-image: url(images/target\ 1.svg);
}

/* Иконки черного цвета в светлой теме */
[data-theme="light"] .hero__block4-wrapper-img {
    filter: brightness(0);
}

.hero__block4 {
    background: linear-gradient(107.08deg, var(--bg-gradient-start) 0.54%, var(--bg-gradient-end) 99.46%);
    padding: 60px 50px;
    transition: background 0.3s ease;
}

.hero__block4-head {
    font-size: 56px;
    font-weight: 500;
    line-height: 65px;
    letter-spacing: -0.015em;
    padding-bottom: 40px;
}

.hero__block4-wrapper-wrp {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero__block4-wrapper-text {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.hero__block4-wrp {
    max-width: 704px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 123px;
    row-gap: 32px;
}

.hero__wrapper4 {
    margin: 0 auto;
    max-width: 1105px;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exchange-container {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 16px;
    max-width: 700px;
    margin: 20px auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.exchange-header {
    text-align: center;
    margin-bottom: 30px;
}

.exchange-header h1 {
    font-size: 38px;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.exchange-subtitle {
    color: var(--text-tertiary);
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.crypto-selection {
    margin-bottom: 20px;
}

.crypto-selection .field-label {
    font-size: 15px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.helper-text {
    display: none;
}

.dropdown {
    margin-top: 12px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-toggle {
    width: 100%;
    max-width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: left;
    box-sizing: border-box;
}

.dropdown-copy {
    flex: 1;
}

.dropdown-price {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    line-height: 1.1;
}

.dropdown-selected-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.dropdown-toggle:focus-visible {
    border: 2px solid var(--accent-blue);
}

.dropdown-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.dropdown-meta {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.dropdown-toggle-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-tertiary);
    border-bottom: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.dropdown.is-open .dropdown-toggle-caret {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 14px;
    z-index: 20;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    margin: 0;
}

/* Ensure dropdown menu matches toggle width exactly */
.dropdown.is-open .dropdown-menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.dropdown.is-open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.dropdown-search input::placeholder {
    color: var(--text-muted);
    opacity: 1;
    transition: color 0.3s ease;
}

.dropdown-search input::-webkit-input-placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.dropdown-search input::-moz-placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.dropdown-search input:-ms-input-placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.dropdown-search input:focus {
    border-color: var(--accent-blue);
}

.dropdown-options {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    width: 100%;
}

.dropdown-option {
    border: none;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s ease, border 0.2s ease, color 0.3s ease;
    border: 1px solid transparent;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
}


.dropdown-option.selected {
    border-color: var(--accent-blue);
    background: var(--accent-blue-medium);
}

.option-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.option-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.option-symbol {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.option-name {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.option-price {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.crypto-list {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent; /* Для Firefox */
}

.crypto-list::-webkit-scrollbar {
    width: 6px;
}

.crypto-list::-webkit-scrollbar-track {
    background: transparent;
}

.crypto-list::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 3px;
}

.crypto-item {
    background: var(--bg-tertiary);
    margin: 10px 0;
    display: flex;
    border-radius: 8px;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(51, 117, 187, 0.2);
}


.crypto-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}
.swap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.swap-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.swap-panel__col {
    display: flex;
    flex-direction: column;
}

.swap-panel__divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.swap-panel__line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-primary);
    opacity: 0.8;
}

.swap-panel__dot {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    line-height: 0;
}

.swap-panel__dot svg {
    display: block;
    color: inherit;
    width: 16px;
    height: 16px;
}

.swap-panel__dot:hover {
    transform: translateY(-1px);
    border-color: var(--accent-blue);
}

[data-theme="light"] .swap-panel__dot {
    background: var(--bg-secondary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-surface {
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    padding: 18px;
    box-sizing: border-box;
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.amount {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.amount label {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.input-card {
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    padding: 18px;
    background: var(--bg-tertiary);
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.input-with-icon .inp {
    flex: 1;
    min-width: 0;
}

.input-with-icon.read-only {
    justify-content: space-between;
}

.coin-badge-icon {
    width: 24px;
    height: 24px;
}

.coin-chip {
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--border-primary);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.coin-chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.coin-chip-symbol {
    line-height: 1;
}

.coin-chip:empty {
    display: none;
}

.inp {
    border-radius: 8px;
    outline: none;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
}

.inp::placeholder {
    color: var(--text-muted);
    opacity: 1;
    transition: color 0.3s ease;
}

.inp::-webkit-input-placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.inp::-moz-placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.inp:-ms-input-placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.input-with-icon .inp {
    width: auto;
    flex: 1;
    min-width: 0;
}

.amount .inp,
.rate-display .inp {
    width: 100%;
}

.inp:focus {
    background-color: var(--accent-blue-light);
    border: 2px solid var(--accent-blue);
}

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

.rate-display p {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}

.rate-display .input-with-icon.read-only span {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

button {
    background: var(--btn-primary);
    color: var(--btn-text);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    border: none;
    max-width: 200px;
}


.exchange-container .btn,
.exchange-container button.btn {
    display: block;
    margin: 24px auto 0;
    max-width: 100%;
    width: auto;
    min-width: 200px;
}

@media screen and (max-width: 640px) {
    .swap-panel {
        gap: 12px;
        padding: 18px;
    }

    .swap-panel__divider {
        min-height: 70px;
    }
}

@media screen and (max-width: 560px) {
    .exchange-container {
        padding: 32px 20px;
        max-width: 100%;
        margin: 10px auto;
    }

    .swap-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .card-surface,
    .input-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }

    .input-with-icon,
    .input-with-icon.read-only {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .input-with-icon .inp {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .input-with-icon.read-only {
        width: 100%;
    }

    .coin-chip {
        margin-left: 0;
        flex-shrink: 0;
    }

    .dropdown {
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dropdown-toggle {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dropdown-menu {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        top: calc(100% + 12px);
        bottom: auto;
        max-height: min(70vh, 400px);
        z-index: 1000;
        box-sizing: border-box;
    }

    .dropdown-option {
        padding: 10px 12px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .option-icon {
        width: 28px;
        height: 28px;
    }

    .option-symbol {
        font-size: 14px;
    }

    .option-price {
        font-size: 12px;
    }

    .exchange-container .btn,
    .exchange-container button.btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

@media screen and (max-width: 768px) {
    .hero__block2 {
        margin-top: 60px;
    }

    .hero__block3-items {
        flex-direction: column;
        align-items: center;
    }

    .hero__block3-item,
    .hero__block3-item-img {
        width: 100%;
        max-width: 500px;
    }

    .hero__block4-wrp {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

@media screen and (max-width: 480px) {
    .hero__block2 {
        margin-top: 60px;
    }

    .hero__block2-wrapper {
        gap: 8px;
    }

    .hero__item {
        width: calc(50% - 4px);
        min-width: 150px;
    }
}

.wallet-container-small {
    display: flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    max-width: 400px;
}

.wallet-container-small p {
    flex-grow: 1;
    margin: 0;
    font-size: 14px;
    padding: 5px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button-small {
    color: #000000;
    border: none;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    background-color: var(--btn-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .copy-button-small {
    color: #FFFFFF;
    background-color: var(--btn-primary);
}

.copy-button-small img {
    filter: brightness(0);
    transition: filter 0.3s ease;
}

[data-theme="light"] .copy-button-small img {
    filter: brightness(0) invert(1);
}

/* Стили для названия монеты в строке "you need to send" */
#cryptoIconContainer {
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="light"] #cryptoIconContainer {
    color: #000000;
}


.footer {
    background: rgba(27, 27, 28, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 45px 20px;
    border-top: 1px solid var(--border-primary);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.95);
}


.footer__block {
    margin: 0 auto;
    max-width: 1110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer__support-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 24px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer__support-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.footer__wrp1-logopack {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__wrp1-p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}



.wrapper-logos {
    display: flex;
    gap: 65px;
    margin-top: 2em;
}

.wrp-log {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
    opacity: 0.5;
    filter: blur(1px);
}
.wrp-log.active {
    transform: scale(1.5); 
    opacity: 1;
    filter: blur(0px);
}

.wrp-log1 {
    background-image: url(images/BTC.png);
    transform: rotate(-20deg) translateY(175px);
}
.wrp-log2 {
    background-image: url(images/DOT.png);
    transform: rotate(-25deg) translateY(105px);
}
.wrp-log3 {
    background-image: url(images/FTM.png);
    transform: rotate(-25deg) translateY(45px);
}
.wrp-log4 {
    background-image: url(images/SOL.png);
    transform: rotate(-5deg) translateY(10px);
}
.wrp-log5 {
    background-image: url(images/TRX.png);
}
.wrp-log6 {
    background-image: url(images/USDT.png);
    transform: rotate(5deg) translateY(10px);
}
.wrp-log7 {
    background-image: url(images/XRP.png);
    transform: rotate(25deg) translateY(45px);
}
.wrp-log8 {
    background-image: url(images/ETH.png);
    transform: rotate(25deg) translateY(105px);
}
.wrp-log9 {
    background-image: url(images/DOGE.png);
    transform: rotate(20deg) translateY(175px);
}

#coinIcon {
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); /* Тень для иконки монеты */
}

#coinToIcon {
    border-radius: 50%; /* Делает иконку круглой */
    width: 20px; /* Устанавливает размеры */
    height: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); /* Более интенсивная и компактная тень */
}

#coinFromIcon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    display: none;
    border-radius: 50%;
}
/* Removed planet.webp - no longer needed */

/* Mobile animations - fade in on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Apply animations to main sections */
.hero__block1-head {
    animation: fadeInUp 0.8s ease-out;
}

.hero__block1-text {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero__block1-wrp-btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero__item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.hero__item:nth-child(1) {
    animation-delay: 0.1s;
}

.hero__item:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__item:nth-child(3) {
    animation-delay: 0.3s;
}

.hero__item:nth-child(4) {
    animation-delay: 0.4s;
}

.hero__block3-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.hero__block3-item:nth-child(1) {
    animation-delay: 0.1s;
}

.hero__block3-item:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__block3-item:nth-child(3) {
    animation-delay: 0.3s;
}

.consent-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1200;
}

.consent-modal.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

[data-theme="light"] .consent-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.consent-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 22px 24px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    z-index: 1;
    display: grid;
    gap: 12px;
    text-align: left;
}

.consent-card h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.consent-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
}

.consent-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.consent-actions .consent-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.consent-actions .consent-link:hover {
    text-decoration: underline;
}

.consent-actions button {
    border: none;
    background: var(--btn-primary);
    color: var(--btn-text);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.consent-actions button:hover {
    transform: translateY(-1px);
    background: var(--btn-primary-hover);
}

@media (max-width: 520px) {
    .consent-card {
        padding: 18px 16px;
    }

    .consent-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .consent-actions button {
        width: 100%;
        text-align: center;
    }
}

/* Размытие и блокировка кнопки и виджета поддержки при открытой модалке согласия */
#support-launcher,
#support-widget {
    z-index: 900 !important; /* Ниже модалки (z-index 1200) */
}

.consent-modal.is-visible ~ #support-launcher,
.consent-modal.is-visible ~ #support-widget {
    filter: blur(4px);
    opacity: 0.4;
    pointer-events: none;
}

/* Блокируем прокрутку страницы, когда открыта модалка согласия */
body.consent-open {
    overflow: hidden;
}

/* Terms page layout */
.terms-page .hero__block1 {
    width: 100%;
}

.terms-page .hero__block1-wrapper {
    align-items: center;
    margin: 0 auto;
    max-width: 960px;
    text-align: left;
    gap: 18px;
}

.terms-page .hero__block1-head {
    text-align: center;
    width: 100%;
    font-size: 42px;
    line-height: 48px;
}

.terms-page .hero__block1-text,
.terms-page .card-surface {
    width: 100%;
}

@media (max-width: 640px) {
    .footer__block {
        flex-direction: column;
        align-items: center;
    }

    .footer__links {
        justify-content: center;
        width: 100%;
    }
}

/* Light theme header backdrop */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
