:root {
    /* Bootstrap Font Overrides */
    --bs-font-sans-serif: 'Sora', sans-serif;
    --bs-font-monospace: 'Space Mono', monospace;
    --bs-gradient: none;

    /* Custom Variables */
    --accent-teal: #20cfcf;
    --accent-purple: #8b5cf6;
    --accent-teal-dim: rgba(32, 207, 207, 0.15);
    --accent-teal-glow: rgba(32, 207, 207, 0.4);
    --accent-green: #00d46a;
    --accent-orange: #ff8c42;
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-input: #0f0f0f;
    --bg-dropdown: #1a1a1a;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-active: rgba(32, 207, 207, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --text-muted: rgba(255, 255, 255, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-glow: 0 0 60px rgba(32, 207, 207, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-dropdown: 0 12px 48px rgba(0, 0, 0, 0.6);

    --error: #ef4444;
    --error-muted: rgba(239, 68, 68, 0.15);
    --error-subtle: rgba(239, 68, 68, 0.08);

    --success: #22c55e;
    --warning: #eab308;
    --info: #3b82f6;
}

body {
    font-family: 'Sora', sans-serif;
    background: #0d0d0d;
    color: #ffffff;
    height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

.mainContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
.containerContent{
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 207, 207, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 207, 207, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Custom .bg-gradient - override Bootstrap */
.bg-gradient {
    position: fixed !important;
    inset: 0 !important;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(32, 207, 207, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(32, 207, 207, 0.06), transparent) !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(32, 207, 207, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(32, 207, 207, 0.06), transparent) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Header */
header {
    position: relative;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(13, 13, 13, 0.8) !important;
}

/* Fallback для браузеров без поддержки backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    header {
        background: rgba(13, 13, 13, 0.95) !important;
    }
}

#logo-link {
    text-decoration: none;
    color: #ffffff;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-teal), rgba(32, 207, 207, 0.6));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 18px;
    color: #0d0d0d;
    box-shadow: 0 0 20px var(--accent-teal-glow);
}

.logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.2s ease-in-out;
}
.logo-text:hover {
    color: var(--accent-teal);
    text-shadow: 0 0 2px var(--accent-teal), 0 0 20px rgba(32, 207, 207, 0.5);
}

.logo-text span {
    color: var(--accent-teal);
}

.by-torblack {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease-in-out;
}
.by-torblack:hover {
    color: var(--accent-teal);
    text-shadow: 0 0 2px var(--accent-teal), 0 0 20px rgba(32, 207, 207, 0.5);
    transform: scale(1.05);
}

.status-badgeMain {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 212, 106, 0.1);
    border: 1px solid rgba(0, 212, 106, 0.2);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 500;
}

.status-dotMain {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-roadmap {
    color: rgba(32, 207, 207, 0.7);
    border: 1px solid rgba(32, 207, 207, 0.25);
    background: rgba(32, 207, 207, 0.06);
    font-weight: 500;
}

.nav-link-roadmap:hover {
    color: var(--accent-teal);
    border-color: rgba(32, 207, 207, 0.4);
    background: rgba(32, 207, 207, 0.12);
}

.nav-link.active {
    color: var(--accent-teal);
    background: rgba(32, 207, 207, 0.1);
    font-weight: 500;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-teal);
    border-radius: var(--radius-sm);
    color: var(--accent-teal);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.login-btn:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
}

/* Currency Icons */
.currency-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background: transparent;
}

.currency-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Fallback styles for text icons (when image fails to load) */

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 5px 1px 5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.network-badge-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.network-badge.trc20 {
    border-color: rgba(239, 0, 39, 0.4);
    color: #ef0027;
    background: rgba(239, 0, 39, 0.08);
}

.network-badge.erc20 {
    border-color: rgba(98, 126, 234, 0.4);
    color: #627eea;
    background: rgba(98, 126, 234, 0.08);
}

.network-badge.bep20 {
    border-color: rgba(243, 186, 47, 0.4);
    color: #f3ba2f;
    background: rgba(243, 186, 47, 0.08);
}

.network-badge.polygon {
    border-color: rgba(130, 71, 229, 0.4);
    color: #8247e5;
    background: rgba(130, 71, 229, 0.08);
}

.network-badge.avalanche {
    border-color: rgba(232, 65, 66, 0.4);
    color: #e84142;
    background: rgba(232, 65, 66, 0.08);
}

.network-badge.arbitrum {
    border-color: rgba(40, 160, 240, 0.4);
    color: #28a0f0;
    background: rgba(40, 160, 240, 0.08);
}

.network-badge.optimism {
    border-color: rgba(255, 4, 32, 0.4);
    color: #ff0420;
    background: rgba(255, 4, 32, 0.08);
}

.network-badge.base {
    border-color: rgba(0, 82, 255, 0.4);
    color: #0052ff;
    background: rgba(0, 82, 255, 0.08);
}

.network-badge.solana {
    border-color: rgba(157, 78, 221, 0.4);
    color: #9d4edd;
    background: rgba(157, 78, 221, 0.08);
}

.network-badge.ton {
    border-color: rgba(0, 165, 255, 0.4);
    color: #00a5ff;
    background: rgba(0, 165, 255, 0.08);
}

.network-badge.near {
    border-color: #6b6b6b;
    color: #f0f0f0;
    background: #6b6b6b;
}

.network-badge.sui {
    border-color: rgba(33, 212, 253, 0.4);
    color: #21d4fd;
    background: rgba(33, 212, 253, 0.08);
}

.network-badge.aptos {
    border-color: rgba(109, 96, 96, 0.4);
    color: #dbdbdb;
    background: rgba(109, 94, 94, 0.08);
}

.network-badge.stellar {
    border-color: rgba(123, 97, 255, 0.4);
    color: #7b61ff;
    background: rgba(123, 97, 255, 0.08);
}

.network-badge.xrp {
    border-color: rgba(0, 0, 0, 0.4);
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

/* Currency color accents */
.currency-item.currency-btc {
    border-left: 2px solid transparent;
}

.currency-item.currency-btc:hover {
    border-left-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.currency-item.currency-btc .currency-full-name,
.currency-item.currency-btc .currency-ticker {
    color: #f7931a;
}

.currency-item.currency-stable {
    border-left: 2px solid transparent;
}

.currency-item.currency-stable:hover {
    border-left-color: #26a69a;
    background: rgba(38, 166, 154, 0.05);
}

.currency-item.currency-stable .currency-full-name,
.currency-item.currency-stable .currency-ticker {
    color: #26a69a;
}

.currency-item.currency-eth {
    border-left: 2px solid transparent;
}

.currency-item.currency-eth:hover {
    border-left-color: #627eea;
    background: rgba(98, 126, 234, 0.05);
}

.currency-item.currency-eth .currency-full-name,
.currency-item.currency-eth .currency-ticker {
    color: #627eea;
}

/* Currency item text styles */
.currency-full-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-network-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.currency-ticker {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

/* Custom Dropdown */
.currency-dropdown {
    position: absolute;
    top: 100%;
    left: var(--dropdown-offset, 0);
    right: auto;
    background: #1a1a1a;
    border: 1px solid color-mix(in srgb, var(--currency-color, #888) 50%, transparent) !important;
    border-top: none;
    border-radius: 12px 12px 12px 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    z-index: 100;
    max-height: 380px;
    overflow: hidden;
    display: none;
    width: var(--dropdown-width, 100%);
    /* FULL WIDTH of dropdown-container */
    min-width: 100%;
    transition: border-color 0.3s ease;
}

.currency-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
    width: var(--dropdown-width, 100%);
    left: var(--dropdown-offset, 0);
}

.dropdownCol {
    display: flex;
    gap: 10px;
}

.selectBtn {
    width: 150px;
}

.swapBtn {
    width: 45px;
}

.dropdown-container {
    width: 100%;
    max-width: 350px;
    position: relative;
}

.amount-input {
    min-width: 150px;
}

.amount-output {
    min-width: 150px;
}

.swap-button {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.swap-button:hover {
    transform: rotate(270deg);
}

@media (max-width: 992px) {
    .dropdownCol {
        flex-direction: column;
    }

    .dropdown-container {
        max-width: 100%;
    }

    .swap-button {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .swap-button:hover {
        transform: rotate(180deg);
    }
}

@media (max-width: 400px) {
    .amount-input {
        min-width: 130px !important;
    }

    .amount-output {
        min-width: 130px !important;
    }
}

/* Custom Scrollbar for Dropdown */
.currency-dropdown .currency-dropdown::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown .overflow-auto::-webkit-scrollbar-track {
    background: transparent;
}

.currency-dropdown .overflow-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.currency-dropdown .overflow-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Firefox scrollbar */
.currency-dropdown .overflow-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.dropdown-item.selected {
    background: var(--accent-teal-dim);
}

.dropdown-item:hover {
    background: var(--accent-teal-dim);
    color: var(--text-primary);
}

/* Dropdown Arrow Rotation */
.dropdown-arrow {
    transition: transform 0.3s ease;
}

button.open .dropdown-arrow {
    transform: rotate(180deg);
}

.amount-input,
.amount-output {
    font-size: 18px;
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 6px 12px !important;
    border-top-left-radius: var(--radius-md) !important;
    border-bottom-left-radius: var(--radius-md) !important;
    margin-right: -6px;
    position: relative;
    z-index: 1;
}


input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.data-currency-containerBorder {
    border: 1px solid color-mix(in srgb, var(--currency-color, #888) 50%, transparent) !important;
    border-radius: var(--radius-md) !important;
    transition: all .30s ease;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--currency-color, #888) 20%, transparent) !important;
}
.data-currency-containerBorder:hover{
    border-color: color-mix(in srgb, var(--currency-color, #888) 80%, transparent) !important;
    box-shadow: 0 0 6px 0 color-mix(in srgb, var(--currency-color, #888) 40%, transparent) !important;
}
.data-currency-containerBorder:focus-within,
.data-currency-containerBorder:focus {
    border-color: var(--currency-color, #888) !important;
    box-shadow: 0 0 8px 0 color-mix(in srgb, var(--currency-color, #888) 60%, transparent) !important;
}

.exchange-btn {
    background: linear-gradient(135deg, var(--accent-teal), #1ab3b3);
    border: none;
    color: #0d0d0d;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


.exchange-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.exchange-btn:hover::before {
    transform: translateX(100%);
}

.exchange-btn:hover {
    box-shadow: 0 8px 32px var(--accent-teal-glow);
    transform: translateY(-2px);
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-teal), #4fd1c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card:hover {
    border-color: rgba(32, 207, 207, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-teal-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
}


/* Bootstrap Overrides - Disable conflicting styles */
* {
    font-family: var(--bs-font-sans-serif) !important;
}

code,
kbd,
pre,
samp,
.font-monospace {
    font-family: var(--bs-font-monospace) !important;
}

a:hover {
    
    text-decoration: none;
}

/* Disable Bootstrap gradient utilities - only for Bootstrap classes, not custom .bg-gradient */
.bg-primary.bg-gradient,
.bg-secondary.bg-gradient,
.bg-success.bg-gradient,
.bg-danger.bg-gradient,
.bg-warning.bg-gradient,
.bg-info.bg-gradient,
.bg-light.bg-gradient,
.bg-dark.bg-gradient,
.text-bg-primary.bg-gradient,
.text-bg-secondary.bg-gradient,
.text-bg-success.bg-gradient,
.text-bg-danger.bg-gradient,
.text-bg-warning.bg-gradient,
.text-bg-info.bg-gradient,
.text-bg-light.bg-gradient,
.text-bg-dark.bg-gradient {
    background-image: none !important;
}

/* Bootstrap Dark Theme Overrides */
.navbar {
    background-color: rgba(13, 13, 13, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 60px rgba(32, 207, 207, 0.08);
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    padding: 10px;
}

.form-control,
.form-select {
    background-color: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    background-color: #0f0f0f;
    border-color: rgba(32, 207, 207, 0.3);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--accent-teal-dim);
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

.btn-check:focus+.btn-outline-secondary,
.btn-outline-secondary:focus {
    box-shadow: none !important;
}


.btn-outline-secondary:hover {
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--accent-teal);
    background-color: transparent;
}

.badge {
    background-color: rgba(0, 0, 0, 0.034);
    border: 1px solid rgba(0, 212, 106, 0.2);
}

.alert-warning {
    background-color: rgba(255, 140, 66, 0.08);
    border-color: rgba(255, 140, 66, 0.2);
    color: var(--accent-orange);
}

.customBG {
    background-color: var(--bg-input) !important;
    /* border: 1px solid var(--border-subtle) !important; */
    border-radius: var(--radius-md) !important;
}

.form-control.customBG {
    padding: 14px 65px 14px 16px !important;
    background-color: var(--bg-input) !important;
    /* border: 1px solid var(--border-subtle) !important; */
    color: #d5d5d5 !important;
}

.form-control.customBG:focus {
    /* border-color: var(--border-active) !important; */
    box-shadow: 0 0 0 3px var(--accent-teal-dim) !important;
    background-color: var(--bg-input) !important;
    outline: none !important;
    color: #d5d5d5 !important;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: inherit;
    text-decoration: none;
    white-space: wrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    overflow: hidden;
}

.currency-item-hidden {
    display: none !important;
    visibility: hidden !important;
}

.form-control.customBG::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

.form-control {
    border: 1px solid var(--border-subtle);
}

.btn {
    border-radius: var(--radius-sm);
}

.border-secondary {
    border-color: #6c757d57 !important;
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lang-option.active {
    background: var(--accent-teal-dim);
}

.lang-option .flag {
    font-size: 16px;
}

.lang-option .name {
    font-size: 13px;
    color: var(--text-primary);
}

.lang-option .code {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

.lang-option.active .name {
    color: var(--accent-teal);
}

.lang-selector .dropdown-arrow {
    transition: transform 0.3s ease;
}

.lang-selector button.open .dropdown-arrow {
    transform: rotate(180deg);
}



.otc-banner {
    margin-top: 48px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.08), rgba(32, 207, 207, 0.05));
    border: 1px solid rgba(255, 140, 66, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.otc-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.otc-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(255, 140, 66, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
}

.otc-text {
    flex: 1;
}

.otc-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.otc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.otc-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.otc-min {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-orange);
    background: rgba(255, 140, 66, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 140, 66, 0.2);
}

.otc-btn {
    background: var(--accent-orange);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.otc-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}


/* Mirrors Section */
.mirrors-section {
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mirrors-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mirrors-toggle:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mirrors-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.mirrors-toggle-left svg {
    color: var(--accent-teal);
    opacity: 0.7;
}

.mirrors-chevron {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.mirrors-section.open .mirrors-chevron {
    transform: rotate(180deg);
}

.mirrors-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mirrors-section.open .mirrors-content {
    max-height: 400px;
}

.mirrors-hint {
    padding: 0 20px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.mirrors-list {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mirror-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.mirror-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.mirror-badge.main {
    background: rgba(32, 207, 207, 0.15);
    color: var(--accent-teal);
}

.mirror-badge.reserve {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.mirror-badge.onion {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.mirror-url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.mirror-url-long {
    font-size: 11px;
    word-break: break-all;
}

.mirror-copy {
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mirror-copy:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: var(--accent-teal-dim);
}

.mirror-copy.copied {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 212, 106, 0.1);
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.link-footer {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}
.link-footer:hover {
    color: var(--accent-teal) !important;
}


@media (max-width: 768px) {
    .logo-container{
        flex-direction: column;
        gap: 0px !important;
    }
    .by-torblack{
        font-size: 9px;
        margin-left: 4px;
    }
    #logo-link{
        gap: 5px !important;
    }
    .header-nav-container{
        gap: 6px !important;
    }
    .header-nav-container-mobile{
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .login-btn{
        padding: 5px 8px !important;
    }
    .status-badgeMain{
        display: none !important;
    }

    .header-nav {
        display: none;
    }
    .nav-link-roadmap {
        display: none !important;
    }
    .cardMain {
        padding: 12px !important;
    }

    .customBG {
        font-size: 14px !important;
    }

    .logo-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .logo-text {
        font-size: 18px !important;

    }

    .by-torblack {
        padding-left: 0px;
    }

    .langDropdown {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .otc-content {
        flex-direction: column;
        text-align: center;
    }

    .otc-action {
        align-items: center;
        width: 100%;
    }

    .otc-btn {
        width: 100%;
        text-align: center;
    }

}


/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lang-option.active {
    background: var(--accent-teal-dim);
}

.lang-option .flag {
    font-size: 16px;
}

.lang-option .name {
    font-size: 13px;
    color: var(--text-primary);
}

.lang-option .code {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

.lang-option.active .name {
    color: var(--accent-teal);
}

/* Language Dropdown Arrow Rotation */
.lang-selector .dropdown-arrow {
    transition: transform 0.3s ease;
}

.lang-selector button.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Main */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Error Card */
.error-card {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--error-subtle);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.error-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error-muted);
    border-radius: var(--radius-sm);
    color: var(--error);
}

.error-icon svg {
    width: 20px;
    height: 20px;
}

/* Suggestions */
.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.suggestion-item:hover {
    border-color: var(--border-active);
    background: var(--bg-card);
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-teal-dim);
    border-radius: var(--radius-sm);
    color: var(--accent-teal);
    flex-shrink: 0;
}

.suggestion-icon svg {
    width: 16px;
    height: 16px;
}

/* Error Details */
.error-details {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.details-code {
    font-size: 14px;
    color: var(--text-secondary);
}

.copy-details {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-details:hover {
    background: var(--accent-teal-dim);
    border-color: var(--border-active);
    color: var(--accent-teal);
}

.copy-details svg {
    width: 14px;
    height: 14px;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--accent-teal);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    main {
        padding: 32px 16px;
    }

    .error-header {
        padding: 16px 20px;
    }

    .error-body {
        padding: 20px;
    }

    .error-actions {
        flex-direction: column;
    }
}

/* ORDER PAGE */

.logo-mark {
    width: 28px;
    height: 28px;
    /*background: var(--accent-teal);*/
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    color: #0d0d0d;
}

.logo-type {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.logo-type span {
    color: var(--accent-teal);
}

.order-ref-label {
    color: var(--text-muted);
    font-size: 13px;
}

.order-ref-id {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    color: var(--accent-teal);
    font-size: 13px;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--warning);
}

.status-badge .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Exchange Summary Bar */
.exchange-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 20px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.coin-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.coin-badge.xmr {
    background: #ff6600;
    color: #fff;
}

.coin-badge.usdt {
    background: #26a17b;
    color: #fff;
}

.exchange-data .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.exchange-data .value {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.exchange-data .currency {
    font-size: 12px;
    color: var(--accent-teal);
    font-weight: 500;
}

.exchange-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: 50%;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 4px;
    height: fit-content;
}

.sidebar-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
}

.sidebar-item:hover {
    background: var(--bg-card);
}

.sidebar-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sidebar-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.sidebar-value.mono {
    font-family: 'Space Mono', monospace;
}

.sidebar-value.accent {
    color: var(--accent-teal);
}

.sidebar-value.large {
    font-size: 20px;
    font-weight: 600;
}

.sidebar-value.warning {
    color: var(--warning);
}

/* Amount Box */
.amount-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    /* background: var(--bg-input); */
    border: 1px solid rgba(32, 207, 207, 0.7);
    border-radius: var(--radius-md);
}

.amount-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.amount-value {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-teal);
}

.amount-currency {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 6px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #9b9b9b;
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    background: #d8d8d8;
}

.copy-btn.copied {
    background: var(--success);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Address Field */
.address-field {
    display: flex;
    /* background: var(--bg-input); */
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.address-field:focus-within {
    border-color: var(--border-active);
}

.address-text {
    flex: 1;
    padding: 12px 14px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-all;
}

.address-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.address-copy:hover {
    background: var(--accent-teal-dim);
    color: var(--accent-teal);
}

.address-copy.copied {
    background: var(--accent-teal);
    color: #0d0d0d;
}

.address-copy svg {
    width: 16px;
    height: 16px;
}

/* Info Note */
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.info-note svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--info);
    margin-top: 1px;
}

.info-note strong {
    color: var(--info);
}

/* QR Section */
.qr-frame {
    border-radius: var(--radius-md);
}

/* Placeholder QR - no background */
.qr-placeholder {
    background: transparent;
}

/* Real QR code - white background */
.qr-real {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 10px;
}

.qr-code {
    width: 140px;
    height: 140px;
    display: block;
}

.qr-tabs {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.qr-tab {
    padding: 6px 12px;
    font-size: 11px;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qr-tab.active {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.qr-tab:hover:not(.active) {
    color: var(--text-secondary);
}

/* Progress Section */
.progress-track {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: var(--border-subtle);
}

.progress-step.completed:not(:last-child)::after {
    background: var(--accent-teal);
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.step-circle svg {
    width: 16px;
    height: 16px;
}

.progress-step.active .step-circle {
    background: var(--accent-teal-dim);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.progress-step.completed .step-circle {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: #0d0d0d;
}

.step-text {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    max-width: 85px;
}

.progress-step.active .step-text,
.progress-step.completed .step-text {
    color: var(--text-secondary);
}

/* Info Grid */
.info-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-teal-dim);
    border-radius: var(--radius-sm);
    color: var(--accent-teal);
    flex-shrink: 0;
}

.info-icon svg {
    width: 16px;
    height: 16px;
}

.info-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-text strong {
    color: var(--accent-teal);
}

/* Support Banner */
.support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.support-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.support-text svg {
    width: 18px;
    height: 18px;
    color: var(--accent-teal);
}

.support-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent-teal-dim);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-sm);
    color: var(--accent-teal);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.support-link:hover {
    background: var(--accent-teal);
    color: #0d0d0d;
}

.support-link svg {
    width: 16px;
    height: 16px;
}

/* Card Title Icon */
.card-title-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-teal-dim);
    border-radius: var(--radius-sm);
    color: var(--accent-teal);
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--accent-teal);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr !important;
    }

    .qr-section {
        order: -1;
    }

    .exchange-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .progress-track {
        flex-wrap: wrap;
        gap: 8px;
    }

    .progress-step {
        flex: 0 0 calc(50% - 4px);
    }

    .progress-step::after {
        display: none;
    }
}

/* Order Page Mobile Menu */
.order-burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.order-burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.order-burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.order-burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.order-burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.order-mobile-menu {
    display: none;
    position: fixed;
    top: 43px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.order-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.order-mobile-menu-content {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s ease;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
}

.order-mobile-menu-item:hover {
    background: var(--bg-card);
}

.order-mobile-menu-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.order-mobile-menu-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.order-mobile-lang {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.order-mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.order-mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: left;
}

.order-mobile-lang-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-teal);
}

.order-mobile-lang-btn .flag {
    font-size: 18px;
}

.order-mobile-status {
    justify-content: center;
    padding: 24px 20px;
    border-bottom: none;
}

.order-nav-divider {
    display: block;
}

.order-nav-actions {
    display: flex;
}

.order-mobile-order-ref {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 8px;
}

.order-mobile-order-ref .order-ref-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.order-mobile-order-ref .order-ref-id {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    color: var(--accent-teal);
    font-size: 18px;
}

@media (max-width: 768px) {
    .order-nav-divider {
        display: none;
    }

    .order-ref-desktop {
        display: none !important;
    }

    .order-nav-actions {
        display: none !important;
    }

    .order-status-desktop {
        display: none !important;
    }

    .order-burger-btn {
        display: flex;
    }

    .order-mobile-menu {
        display: block;
    }

    .navbar .container {
        justify-content: space-between;
        position: relative;
    }
}

@media (max-width: 500px) {
    main {
        padding: 20px 16px 32px !important;
    }

    .amount-value {
        font-size: 22px;
    }
}


/* Rate Row -> Exchange Type Row */
.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 12px;
}

.rate-label {
    color: var(--text-muted);
}

.rate-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.rate-type {
    color: var(--accent-teal);
    font-weight: 500;
}

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-trigger {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.tooltip-trigger:hover {
    background: var(--accent-teal-dim);
    color: var(--accent-teal);
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.tooltip-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tooltip-title svg {
    color: var(--accent-teal);
}

.tooltip-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tooltip-fee {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    line-height: 1.5;
}

.tooltip-fee strong {
    color: var(--accent-teal);
    font-weight: 500;
}

.tooltip-example {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

.rate-refresh {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rate-refresh:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.rate-timer {
    font-size: 10px;
    color: var(--text-muted);
    min-width: 28px;
}

.SendValue, .ReceiveValue {
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}


/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 18px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 1px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #20cfcf;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 2px rgba(32, 207, 207, 0.3);
}

/* Скрытие элементов */
.hidden {
    display: none !important;
}

/* Powered by скрытие */
.powered-by.hidden {
    display: none !important;
}

/* Exchange Chips Styles */
.chips-container {
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    color: var(--text-muted, rgba(255, 255, 255, 0.25));
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chip:hover {
    border-color: var(--accent-teal, #20cfcf);
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.chip:active {
    transform: translateY(0);
}

/* Активный chip - только обводка, без заливки */
.chip.active {
    background: transparent;
    border: 1px solid var(--accent-teal, #20cfcf);
    box-shadow: 0 0 0 1px var(--accent-teal, #20cfcf);
}

/* Цветовое кодирование - только для активного chip */
.chip.active .chip-from {
    color: var(--coin-color, var(--accent-teal));
}

.chip.active .chip-to {
    color: var(--coin-color, var(--accent-teal));
}

.chip.active .chip-network {
    color: var(--network-color, var(--accent-teal));
    opacity: 0.7;
}

.chip.active .chip-arrow {
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

/* Неактивный - всё одним цветом */
.chip:not(.active) .chip-from,
.chip:not(.active) .chip-to,
.chip:not(.active) .chip-network,
.chip:not(.active) .chip-arrow {
    color: var(--text-muted, rgba(255, 255, 255, 0.25));
}

/* Powered by стили (если ещё нет) */
.powered-by {
    font-size: 12px;
    color: var(--text-muted);
}

.powered-by a {
    color: var(--accent-teal);
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}
.accordion-header{
    background-color: var(--bg-card) !important;
}
.accordion-button::after {
    flex-shrink: 0;
    width: 0;
    height: 0;
    margin-left: auto;
    content: "";
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.5rem solid var(--accent-teal);
    transition: transform .2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.amount-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.amount-input.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* BUG-08: Индикатор загрузки котировки */
.quote-loading {
    position: relative;
    color: var(--text-secondary) !important;
}

.quote-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: quote-spinner 0.8s linear infinite;
}

@keyframes quote-spinner {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.form-control.is-invalid:focus,
#destinationWalletInput.is-invalid:focus,
#refundWalletInput.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-icon-modal {
    width: 32px;
    height: 32px;
    color: #ef4444;
    flex-shrink: 0;
}

.error-icon-modal svg {
    width: 100%;
    height: 100%;
}

/* ========== WALLET INPUT BASE ========== */
.wallet-input-with-actions {
    padding-right: 88px !important;
    transition: padding-right 0.2s ease;
}

/* VALID */
.wallet-input-with-actions.is-valid {
    padding-right: 116px !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* INVALID */
.wallet-input-with-actions.is-invalid {
    padding-right: 40px !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* ========== DISABLE BOOTSTRAP ICONS ========== */
.form-control.is-valid,
.form-control.is-invalid {
    background-image: none !important;
}

/* ========== BUTTONS (FIXED POSITION, NEVER MOVE) ========== */
.wallet-copy-btn {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.wallet-copy-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.wallet-qr-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.wallet-qr-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Move buttons left when validation icon is shown (is-valid) */
.wallet-input-with-actions.is-valid ~ .wallet-copy-btn {
    right: 65px !important;
    transition: right 0.2s ease;
}

.wallet-input-with-actions.is-valid ~ .wallet-qr-btn {
    right: 40px !important;
    transition: right 0.2s ease;
}

/* Hide buttons when invalid */
.wallet-input-with-actions.is-invalid ~ .wallet-copy-btn,
.wallet-input-with-actions.is-invalid ~ .wallet-qr-btn {
    display: none !important;
}

/* ========== VALIDATION ICONS ========== */
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 11;
    display: none;
}

.validation-icon-success {
    color: #28a745;
}

.validation-icon-error {
    color: #dc3545;
}

/* Show correct icon */
.wallet-input-with-actions.is-valid ~ .validation-icon-success {
    display: block;
}

.wallet-input-with-actions.is-invalid ~ .validation-icon-error {
    display: block;
}

/* Custom loading spinner for button */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Address Error Expanded Styles */
.address-error-expanded {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    margin-top: 12px;
    animation: slideDown 0.3s ease-out;
}

.address-error-expanded.hidden {
    display: none;
}

.address-error-expanded .error-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.address-error-expanded .error-content {
    flex: 1;
}

.address-error-expanded .error-content h4 {
    margin: 0 0 8px 0;
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
}

.address-error-expanded .error-content p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.address-error-expanded .error-hint {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Input warning state */
.form-control.warning,
.wallet-input-with-actions.warning {
    border-color: var(--warning) !important;
    box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR Scanner Modal Styles */
.qr-scanner-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.qr-scanner-modal.active {
    display: flex;
}

.qr-scanner-modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
}

.qr-scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qr-scanner-header span {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.qr-scanner-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.qr-scanner-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#qrScanner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0f0f0f;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-scanner-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.5;
}

/* Floating Rate Notice */
.floating-rate-notice {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: rgb(58, 58, 58);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm, 8px);
    margin-top: 8px;
    z-index: 10;
    animation: fadeInNotice 0.2s ease;
}

.floating-rate-notice.hidden {
    display: none;
}

.floating-rate-notice .notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.floating-rate-notice .notice-text {
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    line-height: 1.5;
}

.floating-rate-notice .notice-text strong {
    display: block;
    color: var(--warning, #eab308);
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
}

.floating-rate-notice .notice-text p {
    margin: 0;
    line-height: 1.4;
}

@keyframes fadeInNotice {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minimum Amount Hint */
.min-amount-hint {
    font-size: 12px;
    margin-top: 4px;
    display: none; /* скрыт по умолчанию */
    padding: 0 4px;
}

.min-amount-hint.hidden {
    display: none !important;
}

.min-amount-hint .hint-info {
    color: #b5a000; 
}

.min-amount-hint .hint-error {
    color: #ef4444; /* красный для ошибок (если понадобится) */
}

.min-amount-value {
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
    transition: opacity 0.2s;
  }
  .min-amount-value:hover {
    opacity: 0.7;
  }
  .min-amount-value:active {
    opacity: 0.5;
  }


      
        /* API Banner */
        .api-banner {
            margin-top: 48px;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(32, 207, 207, 0.05));
            border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: var(--radius-lg);
            padding: 28px 32px;
            position: relative;
            overflow: hidden;
        }
        
        .api-banner::before {
            content: '{ }';
            position: absolute;
            right: -20px;
            top: 50%;
            transform: translateY(-50%);
            font-family: 'Space Mono', monospace;
            font-size: 120px;
            font-weight: 700;
            color: rgba(139, 92, 246, 0.04);
            pointer-events: none;
        }
        
        .api-content {
            display: flex;
            align-items: center;
            gap: 24px;
            position: relative;
            z-index: 1;
        }
        
        .api-icon {
            width: 56px;
            height: 56px;
            flex-shrink: 0;
            background: rgba(139, 92, 246, 0.15);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #8b5cf6;
        }
        
        .api-text {
            flex: 1;
        }
        
        .api-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        
        .api-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }
        
        .api-action {
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex-shrink: 0;
        }
        
        .api-features {
            display: flex;
            gap: 12px;
        }
        
        .api-feature {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: 'Space Mono', monospace;
            font-size: 11px;
            color: #8b5cf6;
            background: rgba(139, 92, 246, 0.1);
            padding: 4px 10px;
            border-radius: 100px;
            border: 1px solid rgba(139, 92, 246, 0.2);
        }
        
        .api-feature svg {
            color: #22c55e;
        }
        
        .api-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #8b5cf6;
            color: #ffffff;
            font-size: 13px;
            font-weight: 600;
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            transition: all 0.2s;
            white-space: nowrap;
            cursor: pointer;
        }
        
        .api-btn:hover {
            background: #7c3aed;
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
            transform: translateY(-2px);
            color: #ffffff;
        }
        
        
        /* Divider */
        .section-divider {
            text-align: center;
            padding: 32px 0;
            color: var(--text-secondary);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
        }
        
        .section-divider::before,
        .section-divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 100px;
            height: 1px;
            background: rgba(255,255,255,0.1);
        }
        
        .section-divider::before { left: 0; }
        .section-divider::after { right: 0; }
        
        /* Responsive */
        @media (max-width: 768px) {
        
            
            .api-content {
                flex-direction: column;
                text-align: center;
            }
            
            .api-action {
                align-items: center;
                width: 100%;
            }
            
            .api-btn {
                width: 100%;
                justify-content: center;
            }
            
            .api-banner::before {
                display: none;
            }
        }
              /* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge-icon {
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

/* Teal - Smart Contracts */
.badge--teal {
    background: linear-gradient(135deg, rgba(32,207,207,0.2), rgba(32,207,207,0.05));
    border: 1px solid rgba(32,207,207,0.3);
    color: #20cfcf;
}
.badge--teal:hover {
    border-color: #20cfcf;
    box-shadow: 0 0 25px rgba(32,207,207,0.4);
}

/* Purple - NO KYC */
.badge--purple {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(168,85,247,0.05));
    border: 1px solid rgba(168,85,247,0.3);
    color: #a855f7;
}
.badge--purple:hover {
    border-color: #a855f7;
    box-shadow: 0 0 25px rgba(168,85,247,0.4);
}

/* Yellow - NO AML */
.badge--yellow {
    background: linear-gradient(135deg, rgba(234,179,8,0.2), rgba(234,179,8,0.05));
    border: 1px solid rgba(234,179,8,0.3);
    color: #eab308;
}
.badge--yellow:hover {
    border-color: #eab308;
    box-shadow: 0 0 25px rgba(234,179,8,0.4);
}

/* Уважать prefers-reduced-motion для отключения анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   Exchange Type Tabs
   Pure CSS, Tor-compatible
   ======================================== */

.exchange-type-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    padding: 0 0 16px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.exchange-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Group container */
.exchange-type-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.exchange-type-group-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted, rgba(255,255,255,0.4));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exchange-type-group-items {
    display: flex;
    gap: 4px;
}

/* Tab button */
.exchange-type-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: 
        background-color 0.15s ease-out,
        border-color 0.15s ease-out,
        color 0.15s ease-out;
}

.exchange-type-tab:hover {
    color: var(--text-primary);
}

/* Active state via checked radio */
.exchange-type-radio:checked + .exchange-type-tab {
    border-bottom-color: var(--accent-teal);
    color: var(--accent-teal);
}

.exchange-type-radio:checked + .exchange-type-tab svg {
    stroke: var(--accent-teal);
}

/* Tab icons */
.exchange-type-tab svg {
    flex-shrink: 0;
    stroke: var(--text-secondary);
    transition: stroke 0.15s ease-out, filter 0.15s ease-out;
}

.exchange-type-tab:hover svg {
    stroke: var(--text-primary);
}

/* SBP logo - grayscale by default */
.exchange-type-tab svg[viewBox="0 0 350 400"] {
    stroke: none;
    filter: grayscale(1) brightness(0.7);
}

.exchange-type-tab:hover svg[viewBox="0 0 350 400"] {
    filter: grayscale(0.5) brightness(0.85);
}

.exchange-type-radio:checked + .exchange-type-tab svg[viewBox="0 0 350 400"] {
    filter: grayscale(0) brightness(1);
}

/* Focus state for keyboard navigation */
.exchange-type-radio:focus-visible + .exchange-type-tab {
    box-shadow: 0 0 0 2px rgba(32, 207, 207, 0.4);
}

/* Divider between groups - hidden on desktop */
.exchange-type-divider {
    display: none;
}

/* Coming soon badge */
.coming-soon-badge {
    padding: 2px 6px;
    background: rgba(255, 140, 66, 0.12);
    border-radius: 100px;
    color: var(--accent-orange);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Disabled tab state */
.exchange-type-tab--disabled {
    opacity: 0.7;
    cursor: pointer; /* Allow click for tooltip */
    position: relative;
}

.exchange-type-tab--disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

.exchange-type-tab--disabled:hover svg {
    stroke: var(--text-secondary);
}

/* Hint - description of active tab */
.exchange-type-hint {
    text-align: center;
    margin: -8px 0 16px 0;
}

.exchange-type-hint-text {
    font-size: 12px;
    color: var(--text-muted, rgba(255,255,255,0.4));
    font-style: italic;
}

/* Click tooltip for disabled tabs */
.tab-tooltip {
    position: fixed;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(32, 207, 207, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    width: max-content;
    max-width: 280px;
    text-align: center;
    z-index: 9999;
    animation: tooltipFadeIn 0.2s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.tab-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(32, 207, 207, 0.3);
}

.tab-tooltip-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.tab-tooltip-badge {
    display: inline-block;
    background: rgba(255, 140, 66, 0.15);
    color: var(--accent-orange);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Mobile: Tablet (≤768px)
   ======================================== */
@media (max-width: 768px) {
    .exchange-type-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 0 0 12px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .exchange-type-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .exchange-type-group {
        flex-shrink: 0;
    }
    
    .exchange-type-group-label {
        font-size: 8px;
    }
    
    .exchange-type-group-items {
        gap: 2px;
    }
    
    /* Show dividers on mobile */
    .exchange-type-divider {
        display: block;
        width: 1px;
        height: 24px;
        background: rgba(255, 255, 255, 0.15);
        align-self: center;
        flex-shrink: 0;
    }
    
    .exchange-type-tab {
        padding: 6px 8px;
        font-size: 10px;
        gap: 4px;
    }
    
    .exchange-type-tab svg {
        width: 14px;
        height: 14px;
    }
    
    .coming-soon-badge {
        padding: 1px 3px;
        font-size: 7px;
    }
}

/* ========================================
   Mobile: Small screens (≤480px)
   ======================================== */
@media (max-width: 480px) {
    .exchange-type-tabs {
        gap: 8px;
    }
    
    .exchange-type-group-label {
        display: none;
    }
    
    /* Hide text for tabs in inactive groups */
    .exchange-type-tab > span[data-i18n] {
        display: none;
    }
    
    /* Show text for ALL tabs in the active group */
    .exchange-type-group:has(.exchange-type-radio:checked) .exchange-type-tab > span[data-i18n] {
        display: inline;
    }
    
    .exchange-type-tab {
        padding: 8px;
        position: relative;
    }
    
    /* All tabs in active group get more padding for text */
    .exchange-type-group:has(.exchange-type-radio:checked) .exchange-type-tab {
        padding: 8px 12px;
    }
    
    /* Active tab highlighted */
    .exchange-type-radio:checked + .exchange-type-tab {
        background: rgba(32, 207, 207, 0.12);
        border-radius: 6px;
    }
    
    .exchange-type-tab svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hide "Soon" badge on small mobile */
    .coming-soon-badge {
        display: none;
    }
}