:root {
    --bg-one: #13192e;
    --bg-lesser: #202c52;
    --first-text: #e2e8f2;
    --secondary-text: #8098bf;
    --third-text: #7f8fc8;
    --highlight: #266ef1;
    --cyan: #00c1a5;
    --danger: #ff365f;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-one); }
body {
    min-height: 100%;
    margin: 0;
    color: var(--first-text);
    font-family: sans-serif;
    background: var(--bg-one);
    letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.site-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(35, 76, 156, .95) 0%, rgba(29, 50, 101, .88) 34%, rgba(17, 24, 48, .98) 58%, #0f1328 100%),
        #13192e;
}
.bg-logo {
    --size: clamp(200px, 40vw, 700px);
    width: var(--size);
    height: var(--size);
    position: fixed;
    left: calc(var(--size) * -1 / 5);
    top: calc(var(--size) * -1 / 14);
    z-index: 0;
    pointer-events: none;
}
.bg-logo img {
    width: inherit;
    height: inherit;
    display: block;
    opacity: .15;
    position: relative;
    z-index: 1;
}
.bg-logo::before {
    width: 250%;
    height: 250%;
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: .5;
    background: radial-gradient(closest-side, #2b6fec, transparent);
}

.site-header {
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(34, 58, 116, .92), rgba(23, 36, 75, .84));
    box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
}
.header-inner {
    width: calc(100% - 30px);
    max-width: 1440px;
    height: 64px;
    display: grid;
    grid-template-columns: 220px 1fr 390px;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 130px;
}
.brand-link img {
    width: 32px;
    height: 32px;
    display: block;
    margin-right: 10px;
}
.brand-link h1 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 32px;
    font-weight: 500;
}
.main-nav {
    width: fit-content;
    height: 40px;
    display: flex;
    align-items: center;
    justify-self: center;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(32, 44, 82, .5);
    border-radius: 20px;
    background: rgba(38, 110, 241, .05);
    box-shadow: inset 0 -1px 4px rgba(38, 110, 241, .25), inset 0 1px 4px rgba(38, 110, 241, .25);
    backdrop-filter: blur(10px);
}
.nav-item {
    height: 41px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 40px;
    padding: 0 10px;
    color: var(--secondary-text);
    font-size: 18px;
    font-weight: 500;
    position: relative;
}
.nav-item:first-child { margin-left: 0; }
.nav-item.active {
    color: #fff;
    border: 1px solid #266ef1;
    border-radius: 20px;
    background:
        url("data:image/svg+xml;utf8,<svg viewBox='0 0 87 41' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-1.9014e-14 0.5 -2.5036 -4.1527e-13 43.5 35)'><stop stop-color='rgba(38,110,241,1)' offset='0'/><stop stop-color='rgba(38,110,241,0)' offset='1'/></radialGradient></defs></svg>"),
        linear-gradient(90deg, rgba(38, 110, 241, .05), rgba(38, 110, 241, .05));
    border-bottom: 2px solid #4088ff;
    box-shadow: inset 0 -1px 4px rgba(255, 255, 255, .15), inset 0 1px 4px rgba(255, 255, 255, .15);
}
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.user-pill {
    height: 30px;
    min-width: 158px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    color: var(--first-text);
    font-size: 14px;
    line-height: 26px;
    background:
        linear-gradient(#161d36, #161d36) padding-box,
        linear-gradient(270deg, #00c1a5, #2a47ab) border-box;
}
.user-pill img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}
.round-pill {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(128, 152, 191, .55);
    border-radius: 50%;
    color: var(--secondary-text);
    background: rgba(22, 29, 54, .75);
}
.round-pill img { width: 18px; height: 18px; }
.lang-pill {
    width: 30px;
    padding: 0;
    color: #dfe7f7;
    font-size: 14px;
    font-weight: 700;
}
.mobile-menu-button { display: none; }

.toast {
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(82, 224, 163, .28);
    border-radius: 8px;
    color: #bfffe0;
    background: rgba(13, 40, 50, .82);
    position: relative;
    z-index: 5;
}
main { position: relative; z-index: 1; }

.swap-page {
    width: 100%;
    position: relative;
    background-repeat: repeat;
    background-size: cover;
}
.swap-container {
    width: calc(100% - 30px);
    max-width: 1440px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 80px 0;
}
.about {
    width: 600px;
    height: auto;
}
.about-container {
    margin-top: 60px;
    padding: 0;
}
.about-container h1 {
    width: 600px;
    margin: 0 0 22px;
    color: transparent;
    font-size: 90px;
    font-weight: 800;
    line-height: 7.3rem;
    background: linear-gradient(90deg, #2680eb, #00c1a5 30%);
    background-clip: text;
    -webkit-background-clip: text;
}
.about-container h2 {
    width: 600px;
    margin: 10px 0 0;
    color: var(--first-text);
    font-size: 48px;
    font-weight: 600;
    line-height: 48px;
}
.about-container ul {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    color: var(--secondary-text);
    line-height: 2em;
    list-style: none;
}
.about-container .introduce {
    margin: 30px 0;
    position: relative;
}
.about-container li {
    min-height: 30px;
    display: flex;
    align-items: flex-start;
    font-size: 20px;
    word-break: break-word;
}
.about-container li::before {
    width: 20px;
    height: 20px;
    content: "";
    flex: 0 0 20px;
    margin: 6px 10px 0 0;
    background: url("/assets/source/logo-1.svg") center / contain no-repeat;
}
.convert-info {
    position: relative;
    padding-top: 26px !important;
}
.convert-info::before {
    width: 340px;
    height: 1px;
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    background: linear-gradient(90deg, #2a47ab, #2a47ab, transparent 50%) repeat-x;
    background-size: 8px 1px;
}
.function-area { width: 603px; }
.function-area-container {
    width: 603px;
    min-height: 834.5px;
    margin: 0;
    padding: 30px;
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 25px;
    background:
        linear-gradient(#24305a, #1a2342 60px) padding-box,
        linear-gradient(240deg, #00c1a5, #2680eb) border-box;
    box-shadow: rgba(0, 0, 0, .4) 0 0 100px 0;
}
.function-head {
    height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.function-head h1 {
    width: 120px;
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 30px;
    font-weight: 700;
}
.swap-tabs {
    height: 34px;
    display: flex;
    overflow: hidden;
    border-radius: 8px;
}
.swap-tab {
    width: 96px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #8098bf;
    border-right: 0;
    color: var(--secondary-text);
    background: #1f2a4f;
    font-size: 16px;
    line-height: 22px;
}
.swap-tab:first-child { border-radius: 8px 0 0 8px; }
.swap-tab:last-child {
    border-right: 1px solid #8098bf;
    border-radius: 0 8px 8px 0;
}
.swap-tab input { display: none; }
.swap-tab.is-active,
.swap-tab:has(input:checked) {
    color: #13192e;
    background: #8098bf;
}
.transfer-pay { margin-top: 20px; }
.currency-card {
    min-height: 137px;
    padding: 5px;
    border-radius: 6px;
    background: #13192e;
}
.currency-card .balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    color: var(--secondary-text);
    font-size: 16px;
    line-height: 22px;
}
.currency-input-row {
    min-height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 5px 5px;
}
.currency-input-row input {
    width: 100%;
    height: 48px;
    min-width: 0;
    padding: 0 11px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 22px;
    font-weight: 500;
}
.currency-input-row input::placeholder {
    color: #bfbfbf;
    font-size: 16px;
}
.select-currency {
    width: 104px;
    height: 40px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 9px;
    border-radius: 6px;
    color: var(--first-text);
    background: var(--bg-lesser);
}
.select-currency img {
    width: 20px;
    height: 20px;
    display: block;
    margin-right: 5px;
}
.select-currency select {
    width: 70px;
    height: 40px;
    border: 0;
    outline: 0;
    color: var(--first-text);
    background: transparent;
    font-size: 14px;
    appearance: auto;
}
.shortcut-select {
    display: flex;
    justify-content: flex-start;
    padding-top: 10px;
}
.shortcut-select button {
    min-width: 86px;
    margin-right: 8px;
    padding: 7px 30px;
    border: 1.5px solid rgba(128, 152, 191, .5);
    border-radius: 8px;
    color: var(--secondary-text);
    background: transparent;
    font-size: 13px;
    line-height: 1rem;
}
.shortcut-select button:hover {
    border-color: var(--highlight);
    color: var(--highlight);
}
.switch-currency-button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 10px;
    padding: 0;
    border: 0;
    color: var(--highlight);
    background: transparent;
}
.switch-currency-button img {
    width: 30px;
    height: 30px;
    filter: saturate(1.5) brightness(1.15);
}
.teaching-link {
    margin: 15px 0 0;
    color: var(--secondary-text);
    font-size: 16px;
    line-height: 22px;
}
.teaching-link a {
    margin-left: 6px;
    color: var(--highlight);
}
.receive-address { display: none; }
.pay-info {
    margin-top: 20px;
    border-width: 1px;
    border-radius: 6px;
}
.pay-info .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1.5px dashed #273564;
}
.content-text { width: 70%; }
.address-label {
    color: var(--secondary-text);
    font-size: 16px;
    line-height: 24px;
}
.address {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: var(--third-text);
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
}
.address span { width: 100%; }
.copy-icon {
    width: 16px;
    height: 16px;
    box-sizing: content-box;
    margin-left: 6px;
    padding-left: 5px;
    flex: 0 0 auto;
}
.warn {
    margin: 2px 0 0;
    color: var(--danger);
    font-size: 13px;
    line-height: 20px;
}
.amount {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 0;
    padding: 15px;
    border-radius: 10px;
    color: var(--third-text);
    background: var(--bg-one);
}
.amount .label {
    margin-right: 10px;
    color: var(--third-text);
    font-size: 16px;
}
.amount .value {
    color: #566897;
    white-space: nowrap;
}
.amount strong {
    color: var(--highlight);
    font-size: 22px;
    font-weight: 700;
}
.amount em {
    color: var(--first-text);
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
}
.content-qr-code {
    width: 103px;
    height: 103px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    background: #fff;
}
.primary-button {
    width: 100%;
    height: 50px;
    display: inline-block;
    margin: 30px 0 0;
    padding: 3px 15px;
    border: 2px solid #0d0f1c;
    border-radius: 10px;
    color: var(--first-text);
    background: linear-gradient(80deg, #2a47ab, #266ef1);
    box-shadow: rgba(0, 0, 0, .02) 0 2px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.hero {
    width: calc(100% - 30px);
    max-width: 1440px;
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 603px);
    align-items: center;
    gap: 72px;
    margin: 0 auto;
    padding: 80px 0;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
    width: max-content;
    margin-bottom: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(61, 221, 216, .35);
    border-radius: 999px;
    color: #9ce7ff;
    background: rgba(20, 61, 111, .35);
}
.hero h1 {
    margin: 0 0 22px;
    color: transparent;
    font-size: clamp(56px, 6vw, 90px);
    line-height: 1.15;
    font-weight: 800;
    background: linear-gradient(90deg, #2680eb, #00c1a5 30%);
    background-clip: text;
    -webkit-background-clip: text;
}
.hero h2 {
    margin: 10px 0 18px;
    color: var(--first-text);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 600;
}
.hero p {
    width: min(620px, 100%);
    margin: 0;
    color: var(--secondary-text);
    font-size: 18px;
    line-height: 1.8;
}
.feature-list {
    display: grid;
    gap: 8px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    color: var(--secondary-text);
    font-size: 20px;
    line-height: 2em;
}
.feature-list li { display: flex; align-items: flex-start; }
.feature-list span,
.feature-card span {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 6px 10px 0 0;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    background: url("/assets/source/logo-1.svg") center / contain no-repeat;
}
.metric-list, .home-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    max-width: 640px;
}
.metric-list div, .home-stat-grid div {
    padding: 14px 16px;
    border: 1px solid rgba(104, 145, 214, .23);
    border-radius: 8px;
    background: rgba(15, 28, 60, .58);
}
.metric-list span, .home-stat-grid span { display: block; color: var(--secondary-text); font-size: 13px; }
.metric-list strong, .home-stat-grid strong { display: block; margin-top: 6px; color: #dce8ff; font-size: 20px; }
.hero-panel { position: relative; z-index: 1; }
.exchange-card, .home-panel {
    width: 100%;
    padding: 30px;
    border: 1.5px solid transparent;
    border-radius: 25px;
    color: #fff;
    background:
        linear-gradient(#24305a, #1a2342 60px) padding-box,
        linear-gradient(240deg, #00c1a5, #2680eb) border-box;
    box-shadow: rgba(0, 0, 0, .4) 0 0 100px 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.panel-head h3 { margin: 0; font-size: 28px; }
.segmented { display: inline-flex; overflow: hidden; border: 1px solid #8098bf; border-radius: 8px; }
.segmented label { min-width: 92px; padding: 9px 12px; color: var(--secondary-text); text-align: center; cursor: pointer; }
.segmented input { display: none; }
.segmented label:has(input:checked) { color: #13192e; background: #8098bf; }
.input-block {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    margin-bottom: 14px;
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(9, 17, 38, .82);
}
.input-block span { grid-column: 1 / -1; color: #9eaccb; font-weight: 700; }
.input-block input, .input-block select, textarea {
    width: 100%;
    min-height: 42px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}
.input-block select {
    width: 110px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #243663;
}
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.quick-row button {
    min-height: 36px;
    border: 1px solid rgba(141, 164, 215, .45);
    border-radius: 7px;
    color: #b7c4dd;
    background: rgba(28, 45, 90, .6);
}
.hint { margin: 12px 0; color: #9fadca; font-size: 14px; }
textarea { min-height: 110px; padding: 16px; resize: vertical; }
.link-button { margin-top: 22px; }
.soft-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #a9f3ed;
    background: rgba(30, 196, 186, .12);
}

.section-band, .blog-page, .article-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 80px;
    padding: 36px 0;
}
.section-title span { color: #84e4ff; font-weight: 800; }
.section-title h2 { margin: 8px 0 24px; font-size: 32px; }
.cards-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.feature-card, .blog-card {
    min-height: 180px;
    padding: 22px;
    border: 1px solid rgba(104, 145, 214, .23);
    border-radius: 8px;
    background: rgba(14, 27, 59, .64);
}
.feature-card h3, .blog-card h2 { margin: 16px 0 10px; }
.feature-card p, .blog-card p { color: var(--secondary-text); line-height: 1.7; }
.blog-header { padding: 58px 0 32px; }
.blog-header h1, .article-page h1 { margin: 0 0 12px; font-size: 48px; }
.blog-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.blog-tabs a, .blog-tabs span, .back-link {
    padding: 8px 14px;
    border: 1px solid rgba(104, 145, 214, .23);
    border-radius: 999px;
    color: #c8d8f7;
    background: rgba(13, 26, 59, .64);
}
.blog-tabs .active { color: #fff; background: var(--highlight); }
.blog-cover {
    height: 150px;
    display: grid;
    place-items: center;
    margin: -22px -22px 18px;
    border-radius: 8px 8px 0 0;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(47, 127, 255, .85), rgba(40, 211, 190, .55));
}
.blog-card span, .article-page > span { color: #84e4ff; font-weight: 800; }
.blog-card time, .article-meta { color: #8395b9; }
.article-page { max-width: 860px; padding-top: 80px; }
.article-body {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(104, 145, 214, .23);
    border-radius: 8px;
    color: #d4e0f7;
    line-height: 2;
    background: rgba(14, 27, 59, .64);
}
.blog-mini-list { display: grid; gap: 12px; }
.blog-mini-list a {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(9, 17, 38, .56);
}
.blog-mini-list span { color: #84e4ff; font-size: 13px; }

.site-footer {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, #28335b, transparent) 1 stretch;
    background-color: var(--bg-one);
}
.site-footer::before {
    width: 18%;
    height: 210%;
    content: "";
    position: absolute;
    right: 26%;
    top: -50%;
    z-index: 0;
    transform: rotate(45deg);
    transform-origin: center;
    pointer-events: none;
    filter: blur(45px);
    background: radial-gradient(ellipse 35% 70% at 50% 25%, #1a3774 0, rgba(38, 110, 241, .38) 20%, rgba(38, 110, 241, .25), rgba(38, 110, 241, .15), rgba(38, 110, 241, .08) 65%, rgba(19, 25, 46, 0) 85%);
}
.footer-main {
    width: calc(100% - 30px);
    max-width: 1440px;
    display: grid;
    grid-template:
        "business-div support-div user-div contact-div other-div" auto
        "copyright-div copyright-div copyright-div copyright-div copyright-div" auto / auto auto auto auto 1fr;
    gap: 40px 80px;
    align-items: flex-start;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
    color: #989fae;
    font-size: 16px;
}
.footer-main ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-main .title {
    margin: 0 0 20px;
    color: var(--first-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
}
.footer-main li {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: var(--secondary-text);
}
.footer-main li a {
    color: inherit;
    line-height: 1.4em;
}
.footer-main li a:hover { color: var(--highlight); }
.footer-main li img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.business-div { grid-area: business-div; }
.support-div { grid-area: support-div; }
.user-div { grid-area: user-div; }
.contact-div { grid-area: contact-div; }
.other-div {
    grid-area: other-div;
    display: flex;
    flex-direction: column;
    place-self: flex-start flex-end;
}
.footer-brand-mark {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.footer-brand-mark img {
    width: 45px;
    height: 45px;
    margin-right: 12px;
}
.footer-brand-mark span {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 45px;
}
.footer-lang {
    width: 160px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 25px;
    color: #989fae;
    background:
        linear-gradient(#161d36, #161d36) padding-box,
        linear-gradient(270deg, #00c1a5, #2a47ab) border-box;
}
.flag-dot {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: 50%;
    color: #ffda44;
    background: #d80027;
    font-size: 12px;
    line-height: 1;
}
.footer-dot {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    border-radius: 50%;
    color: #fff;
    background: #266ef1;
    font-size: 10px;
}
.copyright-div {
    grid-area: copyright-div;
    color: #989fae;
    text-align: center;
}
.copyright-div a { color: var(--highlight); }

@media (max-width: 1439.9px) {
    .header-inner { grid-template-columns: 170px 1fr 330px; }
    .nav-item { margin-left: 24px; font-size: 16px; }
}
@media (max-width: 1279.9px) {
    .header-inner { grid-template-columns: auto auto 1fr; }
    .brand-link { transform: scale(.9); }
    .mobile-menu-button {
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid rgba(128, 152, 191, .45);
        border-radius: 8px;
        color: var(--first-text);
        background: rgba(22, 29, 54, .85);
    }
    .main-nav {
        width: auto;
        display: none;
        position: absolute;
        left: 15px;
        right: 15px;
        top: 64px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 12px;
        background: #0b1d54;
    }
    .main-nav.is-open { display: flex; }
    .nav-item {
        height: 40px;
        justify-content: flex-start;
        margin-left: 0;
        padding: 0 12px;
    }
    .nav-item.active { border-radius: 10px; }
    .header-actions { justify-self: end; }
    .swap-container {
        flex-direction: column;
        justify-content: center;
        padding: 30px;
    }
    .about, .function-area, .function-area-container { width: 100%; }
    .about { margin-bottom: 30px; }
    .footer-main {
        grid-template-areas:
            "business-div contact-div"
            "user-div support-div"
            "copyright-div copyright-div";
        grid-template-columns: auto auto;
        padding: 30px 20px;
    }
    .other-div { display: none; }
}
@media (max-width: 767.9px) {
    .site-header { height: 56px; }
    .header-inner { height: 56px; width: calc(100% - 20px); }
    .brand-link h1 { font-size: 24px; }
    .header-actions .user-pill { display: none; }
    .round-pill { display: none; }
    .main-nav { top: 56px; }
    .swap-container { width: 100%; padding: 0 0 20px; }
    .about-container { display: none; }
    .function-area-container {
        min-height: auto;
        padding: 20px;
        border-radius: 16px;
    }
    .function-head {
        height: auto;
        flex-direction: column;
        margin-bottom: 20px;
    }
    .swap-tabs, .swap-tab { width: 100%; }
    .swap-tab { flex: 1 1 0; padding: 0 8px; font-size: 14px; }
    .currency-card { min-height: 110px; padding: 15px; }
    .currency-card .balance, .currency-input-row { padding: 0; }
    .currency-card .balance { padding-bottom: 15px; font-size: 14px; }
    .currency-input-row input { padding-left: 0; font-size: 20px; }
    .shortcut-select button { padding: 7px 17px; }
    .pay-info .content { display: block; }
    .content-text { width: 100%; }
    .content-qr-code { display: none; }
    .footer-main {
        grid-template-areas:
            "business-div support-div"
            "copyright-div copyright-div";
        grid-template-columns: auto auto;
        gap: 40px;
        padding: 22px 0;
    }
    .contact-div, .user-div { display: none; }
}
@media (max-width: 479.9px) {
    .footer-main { width: calc(100% - 30px); }
    .footer-main .title { font-size: 16px; }
    .hero { width: calc(100% - 30px); grid-template-columns: 1fr; padding: 40px 0; }
    .hero h1 { font-size: 60px; }
    .hero h2 { font-size: 32px; }
}

/* ---------------------------------------------------------------------------
   Wallet connect button + selection modal
--------------------------------------------------------------------------- */
.user-pill { cursor: pointer; gap: 0; }
.user-pill[data-wallet-connect] span { font-weight: 600; }
.user-pill.is-connected {
    background:
        linear-gradient(#10231f, #10231f) padding-box,
        linear-gradient(270deg, #00c1a5, #00c1a5) border-box;
}

.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wallet-modal[hidden] { display: none; }
.wallet-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 22, .72);
    backdrop-filter: blur(4px);
}
.wallet-modal__panel {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(128, 152, 191, .28);
    border-radius: 16px;
    background: linear-gradient(180deg, #161d36, #131829);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.wallet-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.wallet-modal__head h3 { font-size: 18px; font-weight: 700; color: var(--first-text); }
.wallet-modal__close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    color: var(--secondary-text);
    background: rgba(128, 152, 191, .12);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.wallet-modal__close:hover { color: var(--first-text); }
.wallet-modal__hint {
    margin: 0 0 16px;
    color: var(--secondary-text);
    font-size: 13px;
    line-height: 1.6;
}
.wallet-modal__foot {
    margin: 16px 0 0;
    color: var(--third-text);
    font-size: 12px;
    text-align: center;
}
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wallet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(128, 152, 191, .22);
    border-radius: 12px;
    background: rgba(22, 29, 54, .6);
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.wallet-item:hover { border-color: var(--cyan); transform: translateY(-1px); }
.wallet-item__badge {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.wallet-item__meta { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.wallet-item__meta strong { color: var(--first-text); font-size: 15px; }
.wallet-item__meta em { color: var(--secondary-text); font-size: 12px; font-style: normal; }
.wallet-item__action {
    flex: 0 0 auto;
    padding: 5px 14px;
    border-radius: 999px;
    color: var(--first-text);
    font-size: 13px;
    background: linear-gradient(80deg, #2a47ab, #266ef1);
}
body.wallet-modal-open { overflow: hidden; }

/* ---------------------------------------------------------------------------
   DAPP approval block inside swap form
--------------------------------------------------------------------------- */
.dapp-pay {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 193, 165, .28);
    border-radius: 12px;
    background: rgba(13, 40, 50, .35);
}
.dapp-pay[hidden] { display: none; }
.dapp-pay__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.dapp-pay__label { color: var(--secondary-text); font-size: 13px; }
.dapp-pay__status { color: var(--first-text); font-size: 13px; font-weight: 600; }
.dapp-pay__status[data-state="ok"] { color: var(--cyan); }
.dapp-pay__status[data-state="err"] { color: var(--danger); }
.dapp-pay__status[data-state="pending"] { color: #f0b34a; }
.dapp-pay__hint { margin: 0; color: var(--third-text); font-size: 12px; line-height: 1.6; }
.dapp-pay .primary-button { margin-top: 14px; height: 46px; }
.dapp-pay .primary-button:disabled { opacity: .6; cursor: progress; }

@media (max-width: 768px) {
    .header-actions .user-pill { display: inline-flex !important; min-width: 120px; padding: 0 12px; }
}
