:root[data-theme="dark"] {
    /* Primary */
    --primary: #c084ff;
    --primary-light: #e1c2ff;
    --primary-dark: #8a3fd1;
    --primary-transparent: rgba(192, 132, 255, 0.2);
    /* Secondary */
    --secondary: #20c997;
    --secondary-light: #7ef0d4;
    --secondary-dark: #138d6c;
    /* Background */
    --bg-primary: #0f0f14;
    --bg-secondary: #16161d;
    --bg-tertiary: #1f1f2a;
    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #d1d1d6;
    --text-tertiary: #9a9aa3;
    --text-inverse: #000000;
    /* Status */
    --success: #2ecc71;
    --warning: #f1c40f;
    --error: #ff5c5c;
    --info: #5dade2;
    /* Border */
    --border-primary: rgba(192, 132, 255, 0.25);
    --border-secondary: #2a2a36;
    --border-dark: #3a3a48;
    /* Shadow */
    --shadow-primary: 0 10px 25px rgba(0, 0, 0, 0.6);
    --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Card */
    --card-bg: #181822;
    --card-border: var(--border-primary);
    --card-shadow: var(--shadow-primary);
    /* Button */
    --btn-primary-bg: var(--primary);
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: #242433;
    --btn-secondary-text: var(--text-primary);
    /* Input */
    --input-bg: #1c1c28;
    --input-border: var(--border-primary);
    --input-text: var(--text-primary);
    --input-placeholder: var(--text-tertiary);
    /* Navbar */
    --navbar-bg: #14141c;
    --navbar-text: var(--text-primary);
    --navbar-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    /* Footer */
    --footer-bg: #121218;
    --footer-text: var(--text-secondary);
    --footer-link: var(--text-tertiary);
    /* Mode */
    --mode-toggle-icon: "☀️";
}

:root {
    /* Primary */
    --primary: #b86bff;
    --primary-light: #d2a8ff;
    --primary-dark: #9446d3;
    --primary-transparent: rgba(184, 107, 255, 0.15);

    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #f0f0f0;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --text-inverse: #ffffff;

    /* Status */
    --success: #2ecc71;
    --warning: #f1c40f;
    --error: #e74c3c;
    --info: #3498db;

    /* Border */
    --border-primary: rgba(184, 107, 255, 0.2);
    --border-secondary: #cccccc;
    --border-dark: #999999;

    /* Shadow */
    --shadow-primary: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.15);

    /* Card */
    --card-bg: var(--bg-secondary);
    --card-border: var(--border-primary);
    --card-shadow: var(--shadow-primary);

    /* Button */
    --btn-primary-bg: var(--primary);
    --btn-primary-text: var(--text-inverse);
    --btn-secondary-bg: var(--bg-tertiary);
    --btn-secondary-text: var(--text-primary);

    /* Input */
    --input-bg: var(--bg-tertiary);
    --input-border: var(--border-primary);
    --input-text: var(--text-primary);
    --input-placeholder: var(--text-tertiary);

    /* Navbar */
    --navbar-bg: var(--bg-secondary);
    --navbar-text: var(--text-primary);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    /* Footer */
    --footer-bg: #f0f0f0;
    --footer-text: var(--text-secondary);
    --footer-link: var(--text-tertiary);

    /* Mode */
    --mode-toggle-icon: "🌙";
}
/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.3s, border-color 0.3s;
}

a {
    text-decoration: none;
}

.active {
    text-decoration: none;
    color: var(--primary) !important;
}

.active:hover {
    text-decoration: none;
    color: var(--primary) !important;
}

.social-icon i {
    color: var(--text-primary);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-left: 20px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    visibility: hidden;
    display: none;
}

.theme-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: 0.4s;
    border-radius: 34px;
}

.theme-toggle .slider:before {
    position: absolute;
    content: var(--mode-toggle-icon);
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: 0.4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.theme-toggle input:checked + .slider {
    background-color: var(--primary-light);
}

.theme-toggle input:checked + .slider:before {
    transform: translateX(30px);
}

/* Navigation Styles */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: var(--navbar-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navbar-text);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--navbar-text);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--navbar-text);
    font-weight: 500;
}

.language-btn i {
    margin-right: 5px;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-secondary);
    padding: 10px 0;
    min-width: 150px;
    z-index: 1;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.3s;
}

.language-dropdown a:hover {
    background-color: var(--primary-transparent);
}

.account-btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.account-btn:hover {
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    color: var(--navbar-text);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.header h1 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    position: relative;
}

.input-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.balance {
    color: var(--text-tertiary);
    font-weight: 400;
}

input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
}

.details-value {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.details-input:focus {
    border-bottom-color: var(--primary);
}

.details-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.action-button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-address {
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: 12px;
    font-family: "Roboto Mono", monospace;
    word-break: break-all;
    font-size: 15px;
    text-align: center;
    position: relative;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    margin: 0 auto;
    max-width: 100%;
}

.timer i {
    margin-right: 10px;
    color: var(--warning);
}

.status i {
    margin-right: 8px;
}

.status.error {
    background-color: rgba(214, 48, 49, 0.1);
    color: var(--error);
    display: block;
    border-color: rgba(214, 48, 49, 0.2);
}

.disclaimer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 39, 46, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
    border: 1px solid var(--card-border);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-transparent);
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--text-primary);
    background-color: var(--primary-transparent);
}

.modal-body {
    padding: 20px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--input-border);
    border-radius: 16px;
    font-size: 15px;
    background-color: var(--input-bg);
    color: var(--input-text);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.search-input::placeholder {
    color: var(--input-placeholder);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.currency-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

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

.currency-list::-webkit-scrollbar-track {
    background: rgba(223, 230, 233, 0.5);
    border-radius: 3px;
}

.currency-list::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
    border-radius: 3px;
}

.currency-item {
    display: flex;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 6px;
    border: 1px solid transparent;
    background-color: var(--bg-secondary);
}

.currency-item:hover {
    background-color: var(--primary-transparent);
}

.currency-item.active {
    background-color: var(--primary-transparent);
    border: 1px solid var(--primary);
}

.currency-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 14px;
    object-fit: cover;
}

.currency-item-details {
    flex: 1;
}

.currency-item-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}

.currency-item-symbol {
    font-size: 13px;
    color: var(--text-tertiary);
}

.network-selector {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.network-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
    background-color: var(--bg-primary);
}

.network-option:hover {
    background-color: var(--primary-transparent);
}

.network-option.active {
    background-color: var(--primary-transparent);
    border: 1px solid var(--primary);
}

.network-badge-selector {
    font-size: 11px;
    background-color: rgba(45, 52, 54, 0.1);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

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

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--footer-text);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-description {
    color: var(--footer-link);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--footer-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.partner-logo {
    height: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--footer-link);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--navbar-bg);
    flex-direction: column;
    padding: 20px;
    /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); */
    }
    .nav-links.active {
    display: flex;
    }
    .nav-links li {
    margin: 10px 0;
    }
    .mobile-menu-btn {
    display: block;
    }
    .footer-container {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 20px;
    }

    .header h1 {
        font-size: 24px;
    }
}

.link-switch {
    display: inline-flex;
    gap: 16px;
    position: relative;
    padding-bottom: 4px;
    margin-bottom: 20px;
}

.link-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.link-switch a {
    padding: 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.link-switch a:hover {
    color: var(--primary);
}

#link-exchange a[for="link-exchange"],
#link-buy-sell a[for="link-buy-sell"] {
    color: var(--primary);
    font-weight: 600;
}

#link-exchange .link-switch::after {
    transform: translateX(0);
}

#link-buy-sell .link-switch::after {
    transform: translateX(100%);
}

.link-active {
    color: var(--primary) !important;
}

/* Payment method styles */
.payment-methods {
    margin-top: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
    background-color: var(--bg-secondary);
}

.payment-method:hover {
    background-color: var(--primary-transparent);
}

.payment-method.active {
    background-color: var(--primary-transparent);
    border-color: var(--primary);
}

.payment-method-icon {
    width: 36px;
    height: 36px;
    margin-right: 14px;
    object-fit: contain;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}

.payment-method-info {
    font-size: 13px;
    color: var(--text-tertiary);
}

.payment-method-fee {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.segments_container__T63Bq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    cursor: pointer;
    border-radius: 24px;
    margin-bottom: 20px;
}

.segments_active___Q307:first-child {
    border-right: 0;
}

.segments_segment__P3lEG:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.segments_active___Q307 {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.segments_segment__P3lEG {
    user-select: none;
    display: grid;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 17px;
    padding: 12px 20px;
    border: 2px solid var(--primary-dark);
    white-space: nowrap;
    transition: background-color 0.3s, color 0.5s;
    overflow: hidden;
}

.segments_segment__P3lEG:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Country selector styles */
.country-selector {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background-color: var(--primary-transparent);
    border-left: 1px solid var(--card-border);
    cursor: pointer;
    min-width: 120px;
    height: 100%;
    transition: all 0.2s;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.country-selector:hover {
    background-color: rgba(108, 92, 231, 0.1);
}

.country-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.country-name {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

/* Country modal styles */
.country-item {
    display: flex;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 6px;
    border: 1px solid transparent;
    background-color: var(--bg-secondary);
}

.country-item:hover {
    background-color: var(--primary-transparent);
}

.country-item.active {
    background-color: var(--primary-transparent);
    border: 1px solid var(--primary);
}

.country-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 14px;
    object-fit: cover;
}

.country-item-details {
    flex: 1;
}

.country-item-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}

.country-item-code {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Add this to your style section */
.completed-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.completed-animation.active {
    opacity: 1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    opacity: 0;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confetti-explosion {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(720deg);
        opacity: 0;
    }
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--success);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 0 0 20px rgba(46, 204, 113, 0.2);
}

.checkmark {
    width: 50px;
    height: 50px;
    /* transform: rotate(45deg); */
}

.checkmark-stem {
    position: absolute;
    width: 5px;
    height: 25px;
    background-color: white;
    left: 29px;
    top: 15px;
    animation: drawStem 0.5s ease-out;
}

.checkmark-kick {
    position: absolute;
    width: 10px;
    height: 5px;
    background-color: white;
    left: 20px;
    top: 30px;
    animation: drawKick 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes drawStem {
    0% {
        height: 0;
        top: 40px;
    }
    100% {
        height: 25px;
        top: 15px;
    }
}

@keyframes drawKick {
    0% {
        width: 0;
        left: 29px;
    }
    100% {
        width: 10px;
        left: 20px;
    }
}

/* Payment Address - Large */
.payment-address-large-container {
    margin: 20px 0;
}

/* Transaction Details - Compact */
.transaction-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-right: 10px;
    padding: 8px;
}

.search-btn i {
    color: var(--navbar-text);
}

.language-selector {
    margin-right: 9px;
    position: relative;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    display: block;
}

/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    backdrop-filter: blur(5px);
}

.search-modal-content {
    width: 100%;
    max-width: 800px;
    background-color: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.search-modal-header {
    padding: 20px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

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

.search-modal-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 18px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-tertiary);
    font-size: 18px;
}

.close-search-modal {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-search-modal:hover {
    color: var(--primary);
}

.search-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.search-empty-state i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.search-empty-state p {
    font-size: 16px;
    margin: 0;
}

.search-results-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--bg-secondary);
    transition: all 0.2s;
    cursor: pointer;
}

.search-results-item:hover {
    background-color: var(--primary-transparent);
}

.search-results-item h4 {
    margin: 0 0 5px 0;
    color: var(--primary);
}

.search-results-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.language-btn:hover {
    background: var(--primary-transparent);
}

.language-btn i.fa-caret-down {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-primary);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.language-option:hover {
    background: var(--bg-tertiary);
}

.language-option i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-actions {
        margin-left: auto;
    }

    .language-btn {
        padding: 6px 10px;
    }

    .language-dropdown {
        min-width: 160px;
    }
}

/* Account Dropdown Styles */
.account-dropdown {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.account-btn i {
    font-size: 20px;
}

.account-btn:hover {
    background: var(--primary-transparent);
}

.account-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-primary);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.account-dropdown:hover .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.account-item:hover {
    background: var(--bg-tertiary);
}

.account-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .account-menu {
        min-width: 180px;
    }
}

.auth-nav-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-navd-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}


/* exchange */


        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
            transition: background-color 0.3s, border-color 0.3s;
        }

        body {
            background: var(--bg-secondary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            color: var(--text-primary);
        }

        .security-icon {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-radius: 50%;
            background-color: transparent;
            border: 1px solid var(--border-primary);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex: 0 0 auto;
            margin-top: 2px;
            transition: all 0.2s ease;
        }

        .security-row:hover .security-icon {
            background-color: var(--primary-transparent);
            border-color: var(--primary);
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }

        .container2 {
            background-color: var(--card-bg);
            border-radius: 24px;
            box-shadow: var(--card-shadow);
            width: 100%;
            max-width: 480px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid var(--card-border);
            backdrop-filter: blur(5px);
            background-color: var(--card-bg);
        }

        .header {
            background: var(--gradient);
            color: var(--text-inverse);
            padding: 28px 24px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle,
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0) 70%);
            transform: rotate(30deg);
        }

        .header h2 {
            font-weight: 700;
            font-size: 28px;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
            position: relative;
        }

        .header p {
            font-size: 14px;
            opacity: 0.9;
            font-weight: 400;
            position: relative;
        }

        .swap-container {
            padding: 24px;
        }

        .swap-card {
            border-radius: 16px;
            border: 1px solid var(--card-border);
            margin: 0 !important;
            overflow: hidden;
            background-color: var(--card-bg);
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }

        .swap-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        }


        .card-header {
            padding: 14px 20px;
            background-color: var(--card-bg) !important;
            border-bottom: none !important;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0 !important;
        }

        .card-body {
            padding: 0 20px !important;
        }

        .input-group {
            margin-bottom: 16px;
        }

        .input-wrapper {
            display: flex;
            border: none;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.2s;
            background-color: var(--card-bg);
            align-items: center;
        }

        .input-wrapper:focus-within {
            border-color: var(--primary);
            box-shadow: none !important;
        }

        input {
            flex: 1;
            padding: 16px 20px;
            border: none;
            outline: none;
            font-size: 18px;
            font-weight: 600;
            background: transparent;
            color: var(--input-text);
            width: 176px;
        }

        input::placeholder {
            color: var(--input-placeholder);
            font-weight: 400;
        }

        .currency-selector {
            display: flex;
            align-items: center;
            padding: 0 11px;
            background-color: var(--primary-transparent);
            border-left: 1px solid var(--card-border);
            cursor: pointer;
            min-width: 120px;
            height: 100%;
            transition: all 0.2s;
            height: 50px;
            border-radius: 50px
        }

        .currency-selector:hover {
            background-color: rgba(108, 92, 231, 0.1);
        }

        .currency-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            margin-right: 10px;
            object-fit: cover;
        }

        .currency-name {
            font-weight: 600;
            font-size: 16px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--text-primary);
        }

        .network-badge {
            font-size: 10px;
            background-color: rgba(45, 52, 54, 0.1);
            color: var(--text-secondary);
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 500;
            text-transform: uppercase;
        }

        .swap-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
            height: 14px;
        }

        .swap-button {
            background-color: var(--bg-primary);
            border: 1px solid var(--card-border);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--primary);
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            z-index: 2;
        }

        .swap-button:hover {
            background-color: var(--primary);
            transform: rotate(180deg) scale(1.1);
            color: var(--text-inverse);
            border-color: var(--primary);
            box-shadow: 0 6px 16px rgba(108, 92, 231, 0.3);
        }

        .rate-info {
            background-color: var(--card-bg);
            padding: 14px;
            border-radius: 12px;
            font-size: 15px;
            text-align: left;
            border: none !important;
            color: var(--text-primary);
        }

        .rate-value {
            font-weight: 700;
            color: var(--primary);
        }

        .fee-info {
            font-size: 14px;
            color: var(--text-tertiary);
            text-align: center;
            margin-top: 8px;
        }

        /* Rate fetch failure was completely unstyled before, making a failed
           rate lookup look like a silent "0" instead of a visible error */
        .rate-error {
            font-size: 13px;
            color: var(--error);
            background: rgba(231, 76, 60, 0.1);
            border: 1px solid rgba(231, 76, 60, 0.2);
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 16px;
            text-align: center;
        }

        /* Two-step swap flow: amounts on step 1, recipient/email on step 2 */
        .swap-step {
            animation: fadeIn 0.25s ease;
        }

        .swap-step#swapStep1 #errorInput.error {
            border-color: var(--error);
        }

        .step-back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-tertiary);
            padding: 0;
            margin-bottom: 16px;
            transition: color 0.2s;
        }

        .step-back-button:hover {
            color: var(--primary);
        }

        .step-summary {
            background-color: var(--primary-transparent);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 12px 14px;
            font-size: 14px;
            color: var(--text-primary);
            text-align: center;
            margin-bottom: 20px;
        }

        .step-summary span {
            font-weight: 700;
            color: var(--primary);
        }

        .details-section {
            margin-top: 24px;
            background-color: var(--primary-transparent);
            padding: 20px;
            border-radius: 16px;
            border: 1px solid var(--card-border);
        }

        .details-row {
            display: flex;
            flex-direction: column;
            margin-bottom: 16px;
        }

        .details-label {
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .details-input {
            outline: none;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            padding: 12px;
            /* border-radius: 8px; */
            transition: all 0.2s;
            width: 100%;
        }

        .address-error {
            color: var(--error);
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .action-button {
            width: 100%;
            padding: 18px;
            border: none;
            border-radius: 16px;
            background: var(--gradient);
            color: var(--text-inverse);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
            position: relative;
            overflow: hidden;
        }

        .action-button::after {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(to bottom right,
                    rgba(255, 255, 255, 0.3) 0%,
                    rgba(255, 255, 255, 0) 60%);
            transform: rotate(30deg);
            transition: all 0.3s;
        }

        .action-button:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
        }

        .action-button:hover::after {
            transform: rotate(30deg) translate(10%, 10%);
        }

        .action-button i {
            margin-right: 10px;
        }

        .payment-section {
            display: none;
            margin-top: 24px;
            animation: fadeIn 0.3s ease;
        }

        .payment-info {
            background-color: var(--primary-transparent);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--card-border);
        }

        .payment-amount {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 16px;
            text-align: center;
            color: var(--text-primary);
        }

        .payment-address-large-container {
            margin: 20px 0;
        }

        .payment-address-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            background-color: var(--bg-primary);
            padding: 16px;
            border-radius: 12px;
            border: 1px solid var(--card-border);
            margin-top: 8px;
        }

        .payment-address-large {
            font-family: "Roboto Mono", monospace;
            font-size: 14px;
            word-break: break-all;
            text-align: center;
            color: var(--text-primary);
        }

        .copy-button {
            background-color: var(--primary);
            color: var(--text-inverse);
            border: none;
            border-radius: 8px;
            padding: 10px 16px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .copy-button:hover {
            background-color: var(--primary-dark);
        }

        .qr-code {
            text-align: center;
            margin: 20px 0;
        }

        .qr-code img {
            max-width: 200px;
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 12px;
            background: var(--bg-primary);
        }

        .qr-code-info {
            font-size: 12px;
            color: var(--text-tertiary);
            margin-top: 10px;
        }

        .transaction-details-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin: 20px 0;
        }

        .transaction-detail {
            display: flex;
            flex-direction: column;
        }

        .detail-label {
            font-size: 12px;
            color: var(--text-tertiary);
            margin-bottom: 4px;
        }

        .detail-value {
            font-size: 14px;
            word-break: break-all;
            font-weight: 500;
            color: var(--text-primary);
        }

        .timer {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 16px;
            color: var(--text-secondary);
            margin: 16px 0;
        }

        .progress-container {
            width: 100%;
            background: var(--bg-tertiary);
            border-radius: 4px;
            margin: 16px 0;
            height: 6px;
        }

        .progress-bar {
            width: 100%;
            height: 100%;
        }

        .progress {
            height: 100%;
            background: var(--gradient);
            border-radius: 4px;
            width: 30%;
            transition: width 0.5s;
        }

        .status-container {
            text-align: center;
            margin: 20px 0;
        }

        .status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 20px;
            font-size: 14px;
        }

        .status.pending {
            background: rgba(255, 171, 0, 0.1);
            color: var(--warning);
            border: 1px solid rgba(255, 171, 0, 0.2);
        }

        .status.completed {
            background: rgba(46, 204, 113, 0.1);
            color: var(--success);
            border: 1px solid rgba(46, 204, 113, 0.2);
        }

        .status.failed {
            background: rgba(231, 76, 60, 0.1);
            color: var(--error);
            border: 1px solid rgba(231, 76, 60, 0.2);
        }

        .disclaimer {
            font-size: 12px;
            color: var(--text-tertiary);
            text-align: center;
            line-height: 1.5;
            padding: 16px 0;
        }

        .disclaimer a {
            color: var(--primary);
            text-decoration: none;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===================== NEW SECTIONS ===================== */

        /* Hero split: write-up on the left, swap widget on the right */
        .hero-layout {
            display: grid;
            grid-template-columns: minmax(280px, 1fr) 480px;
            gap: 56px;
            align-items: center;
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
        }

        .hero-copy {
            max-width: 480px;
        }

        .hero-heading {
            font-size: 38px;
            font-weight: 700;
            letter-spacing: -1px;
            line-height: 1.15;
            color: var(--text-primary);
            margin: 16px 0;
        }

        .hero-sub {
            font-size: 16px;
            color: var(--text-tertiary);
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .hero-points {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 32px;
        }

        .hero-points li {
            font-size: 14px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .hero-points i {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background-color: var(--primary-transparent);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            flex: 0 0 auto;
        }

        .hero-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 28px;
            padding-top: 24px;
            border-top: 1px solid var(--card-border);
        }

        .hero-stat {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .hero-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
        }

        .hero-stat-label {
            font-size: 12px;
            color: var(--text-tertiary);
        }

        .hero-footnote {
            font-size: 13px;
            color: var(--text-tertiary);
            line-height: 1.6;
            margin-top: 20px;
        }

        /* Supported currencies grid */
        .currency-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .currency-chip {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 12px 14px;
            transition: all 0.2s ease;
        }

        .currency-chip:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        }

        .currency-chip img {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            flex: 0 0 auto;
        }

        .currency-chip div {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .currency-chip-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .currency-chip-ticker {
            font-size: 11px;
            color: var(--text-tertiary);
            text-transform: uppercase;
        }

        /* Security section */
        .security-inner {
            max-width: 720px;
            margin: 0 auto;
        }

        .security-heading {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: var(--text-primary);
            margin: 14px 0 12px;
        }

        .security-sub {
            margin: 0 0 32px;
            text-align: left;
        }

        .security-list {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .security-row {
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .security-row h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .security-row p {
            font-size: 14px;
            color: var(--text-tertiary);
            line-height: 1.55;
        }

        /* Closing CTA */
        .cta-card {
            background: var(--gradient);
            border-radius: 24px;
            padding: 48px 32px;
            text-align: center;
            color: var(--text-inverse);
        }

        .cta-heading {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 10px;
        }

        .cta-sub {
            font-size: 15px;
            opacity: 0.9;
            max-width: 440px;
            margin: 0 auto 28px;
            line-height: 1.6;
        }

        .cta-button {
            display: inline-flex;
            width: auto;
            padding: 14px 28px;
            margin-top: 0;
            background: var(--bg-primary);
            color: var(--primary-dark);
            text-decoration: none;
            box-shadow: none;
        }

        .cta-button:hover {
            background: var(--bg-primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        /* Currency modal: coin list and network list are two separate views
           that never show together .hidden is a utility class already
           defined in exchange.js's injected stylesheet (display:none !important) */
        .network-selector-header {
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            padding: 0 0 16px 0 !important;
            margin: 0 0 12px 0 !important;
            border: none !important;
            border-bottom: 1px solid var(--card-border) !important;
        }

        .network-back-button {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 36px !important;
            height: 36px !important;
            min-width: 36px !important;
            flex: 0 0 36px !important;
            border-radius: 10px !important;
            border: 1px solid var(--card-border) !important;
            background: var(--card-bg) !important;
            color: var(--text-primary) !important;
            cursor: pointer !important;
            font-size: 14px !important;
            padding: 0 !important;
            margin: 0 !important;
            transition: all 0.2s !important;
        }

        .network-back-button:hover {
            background: var(--primary-transparent) !important;
            color: var(--primary) !important;
            border-color: var(--primary) !important;
        }

        .network-back-button i {
            margin: 0 !important;
            font-size: 14px !important;
            color: inherit !important;
        }

        .network-selector-icon {
            width: 36px !important;
            height: 36px !important;
            min-width: 36px !important;
            border-radius: 50% !important;
            flex: 0 0 36px !important;
            object-fit: cover !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
        }

        .network-selector-title-group {
            display: flex !important;
            flex-direction: column !important;
            min-width: 0 !important;
            gap: 2px !important;
        }

        .network-selector-title {
            font-size: 12px !important;
            font-weight: 600 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            color: var(--text-tertiary) !important;
            line-height: 1.3 !important;
        }

        .network-selector-subtitle {
            font-size: 15px !important;
            font-weight: 600 !important;
            color: var(--text-primary) !important;
            line-height: 1.3 !important;
        }

        /* Ticker strip: signature element, echoes a live rates tape */
        .ticker-strip {
            width: 100%;
            max-width: 900px;
            margin: 28px auto 0;
            overflow: hidden;
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            padding: 14px 0;
            -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
            mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
        }

        .ticker-track {
            display: flex;
            width: max-content;
            animation: tickerScroll 28s linear infinite;
        }

        .ticker-group {
            display: flex;
            align-items: center;
        }

        .ticker-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0 22px;
            border-right: 1px solid var(--card-border);
            white-space: nowrap;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .ticker-item img {
            width: 20px;
            height: 20px;
            border-radius: 50%;
        }

        .ticker-item b {
            color: var(--text-primary);
            font-weight: 700;
        }

        .ticker-item em {
            font-style: normal;
            color: var(--text-tertiary);
        }

        @keyframes tickerScroll {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-50%);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .ticker-track {
                animation: none;
            }
        }

        /* Shared section scaffolding */
        .section {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 64px 20px;
        }

        .section-inner {
            width: 100%;
        }

        .section-inner-narrow {
            max-width: 640px;
            margin: 0 auto;
        }

        .section-heading {
            text-align: center;
            margin-bottom: 40px;
        }

        .eyebrow {
            display: inline-block;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--primary);
            background: var(--primary-transparent);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 6px 14px;
            margin-bottom: 14px;
        }

        .section-heading h2 {
            font-size: 30px;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .section-sub {
            font-size: 15px;
            color: var(--text-tertiary);
            max-width: 100%;
            margin-bottom: 50px;
            line-height: 1.6;
        }

        /* How it works: a real sequence, so numbering earns its place */
        .steps-flow {
            display: flex;
            align-items: stretch;
            gap: 8px;
        }

        .step-card {
            flex: 1;
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 24px 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            transition: all 0.2s ease;
        }

        .step-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        }

        .step-marker {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: var(--gradient);
            color: var(--text-inverse);
            font-weight: 700;
            font-size: 14px;
            margin-bottom: 14px;
        }

        .step-card h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .step-card p {
            font-size: 14px;
            color: var(--text-tertiary);
            line-height: 1.55;
        }

        .step-connector {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 14px;
            flex: 0 0 auto;
        }

        /* Feature grid */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .feature-card {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 24px 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            transition: all 0.2s ease;
            display: grid;
            justify-items: center;
        }

        .feature-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        }

        .feature-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background-color: var(--primary-transparent);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            margin-bottom: 14px;
        }

        .feature-card h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .feature-card p {
            font-size: 14px;
            color: var(--text-tertiary);
            line-height: 1.55;
        }

        /* FAQ accordion */
        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .faq-item {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 14px;
            overflow: hidden;
        }

        .faq-question {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 20px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            text-align: left;
        }

        .faq-toggle-icon {
            color: var(--primary);
            font-size: 13px;
            flex: 0 0 auto;
            transition: transform 0.25s ease;
        }

        .faq-item.open .faq-toggle-icon {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.25s ease;
        }

        .faq-answer p {
            padding: 0 20px 18px;
            font-size: 14px;
            color: var(--text-tertiary);
            line-height: 1.6;
        }

        /* Responsive styles for small screens */
        @media (max-width: 768px) {
            .main-content {
                padding: 15px;
            }

            .hero-layout {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .container2 {
                border-radius: 20px;
                max-width: 100%;
                order: -1;
            }

            .hero-copy {
                max-width: 100%;
                order: 2;
                text-align: center;
            }

            .hero-heading {
                font-size: 26px;
            }

            .hero-points {
                align-items: center;
            }

            .hero-points li {
                justify-content: center;
            }

            .hero-stats {
                justify-content: center;
            }

            .hero-footnote {
                text-align: center;
            }

            .header {
                padding: 24px 20px;
            }

            .header h2 {
                font-size: 24px;
            }

            .header p {
                font-size: 13px;
            }

            .swap-container {
                padding: 20px;
            }

            .swap-card {
                /* padding: 16px; */
                margin: 0 !important;
            }

            .card-header {
                padding: 12px 16px;
                font-size: 13px;
            }

            .card-body {
                padding: 16px;
            }

            .input-wrapper {
                flex-direction: row !important;
                align-items: flex-start;
                /* gap: 12px; */
            }

            input {
                width: 100%;
                font-size: 22px;
                /* padding: 0 0 8px 0; */
                /* margin-bottom: 8px; */
                /* border-bottom: 1px solid var(--border-secondary); */
                border-radius: 0;
                background: transparent;
            }

            .currency-selector {
                /* width: 100%; */
                justify-content: flex-start;
                padding: 12px;
                border-left: none;
                border-top: 1px solid var(--card-border);
                min-width: auto;
                height: auto;
            }

            .currency-icon {
                width: 24px;
                height: 24px;
            }

            .currency-name {
                font-size: 15px;
            }

            .network-badge {
                font-size: 10px;
                padding: 3px 6px;
            }

            .swap-icon {
                margin: 8px 0;
            }

            .swap-button {
                width: 50px;
                height: 50px;
            }

            .swap-button i {
                font-size: 16px;
            }

            .rate-info {
                font-size: 14px;
                padding: 12px;
            }

            .fee-info {
                font-size: 13px;
            }

            .details-section {
                padding: 16px;
                margin-top: 20px;
            }

            .details-row {
                margin-bottom: 16px;
            }

            .details-label {
                font-size: 13px;
            }

            .details-input {
                padding: 14px;
                font-size: 15px;
            }

            .action-button {
                padding: 16px;
                font-size: 15px;
            }

            .payment-info {
                padding: 16px;
            }

            .payment-amount {
                font-size: 18px;
            }

            .payment-address-large {
                font-size: 12px;
            }

            .copy-button {
                padding: 10px 14px;
                font-size: 13px;
            }

            .qr-code img {
                max-width: 180px;
            }

            .transaction-details-grid {
                gap: 10px;
            }

            .detail-value {
                font-size: 13px;
            }

            .timer {
                font-size: 14px;
            }

            .status {
                font-size: 13px;
                padding: 8px 14px;
            }

            .disclaimer {
                font-size: 11px;
            }

            .section {
                padding: 44px 16px;
            }

            .section-heading h2 {
                font-size: 24px;
            }

            .steps-flow {
                flex-direction: column;
            }

            .step-connector {
                transform: rotate(90deg);
                margin: -4px 0;
            }

            .feature-grid {
                grid-template-columns: 1fr;
            }

            .currency-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .security-heading {
                font-size: 22px;
            }

            .security-sub {
                text-align: center;
            }

            .security-inner .eyebrow {
                display: block;
                width: fit-content;
                margin-left: auto;
                margin-right: auto;
            }

            .security-inner > .security-copy {
                text-align: center;
            }

            .security-row {
                text-align: left;
            }

            .cta-card {
                padding: 36px 20px;
            }

            .cta-heading {
                font-size: 22px;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 20px 16px;
            }

            .header h2 {
                font-size: 22px;
            }

            .swap-container {
                padding: 16px;
            }

            /* .swap-card {
                                                                        padding: 14px;
                                                                    } */

            input {
                font-size: 20px;
            }

            .currency-selector {
                padding: 10px;
            }

            .currency-icon {
                width: 22px;
                height: 22px;
            }

            .currency-name {
                font-size: 14px;
            }

            .rate-info {
                font-size: 13px;
            }

            .details-input {
                padding: 12px;
                font-size: 14px;
            }

            .action-button {
                padding: 15px;
                font-size: 14px;
            }

            .payment-amount {
                font-size: 16px;
            }

            .payment-address-large {
                font-size: 11px;
            }

            .qr-code img {
                max-width: 160px;
            }

            .timer {
                font-size: 13px;
            }
        }

        @media (max-width: 360px) {
            .header h2 {
                font-size: 20px;
            }

            input {
                font-size: 18px;
            }

            .currency-name {
                font-size: 13px;
            }

            .action-button {
                padding: 14px;
                font-size: 13px;
            }

            .payment-amount {
                font-size: 15px;
            }
        }