.cc-hero .cv-today .cv-today-big { font-size: 1.05rem; font-weight: 800; color: var(--cc-teal); letter-spacing: -.01em; }
html:not(.cf-light) .cc-hero .cv-today .cv-today-big { color: var(--cc-bright); }
.cc-hero .cv-today { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 7px; width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 6px 14px 6px 13px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); font-size: .76rem; line-height: 1.4; color: var(--cc-ink-3); }
.cv-page .cc-hero .cc-share { margin-top: 20px; }
.cv-today .cv-live-dot { width: 7px; height: 7px; margin-right: 3px; }
.cv-today b { color: var(--cc-ink); font-weight: 700; }
.cv-sep { color: var(--cc-ink-3); }
.cv-live-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #10B981; }
.cv-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, .45); animation: cvPulse 1.8s ease-out infinite; }
@keyframes cvPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.cv-main { padding: 4px 0 32px; }
.cv-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.cv-app { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); overflow: hidden; border: 1px solid var(--cc-line); border-radius: 24px; background: var(--cc-card); box-shadow: var(--cc-shadow); }
.cv-form { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; min-width: 0; padding: 24px; }
.cv-label { display: block; margin-bottom: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-ink-3); }
.cv-amount-in { position: relative; display: flex; align-items: center; height: 64px; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-soft); transition: border-color .2s, box-shadow .2s; }
.cv-amount-in:focus-within { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.cv-sym { flex-shrink: 0; padding: 0 2px 0 18px; font: 700 1.3rem 'Poppins', sans-serif; color: var(--cc-teal); white-space: nowrap; }
html:not(.cf-light) .cv-sym { color: var(--cc-bright); }
.cv-amount-in input { flex: 1; min-width: 0; height: 100%; padding: 0 16px 0 8px; border: 0; outline: 0; background: transparent; color: var(--cc-ink); font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }

.cv-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.cv-side { min-width: 0; }
.cv-pick { display: flex; align-items: center; gap: 10px; width: 100%; height: 62px; padding: 0 14px 0 12px; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-card); color: var(--cc-ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cv-pick:hover, .cv-pick[aria-expanded="true"] { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .12); }
.cv-pick > i { margin-left: auto; font-size: 11px; color: var(--cc-ink-3); }
.cv-pick-t { display: grid; min-width: 0; line-height: 1.25; }
.cv-pick-t b { font-size: 1rem; font-weight: 700; }
.cv-pick-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: var(--cc-ink-3); }
.cv-flag { position: relative; width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--cc-soft); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); color: var(--cc-ink-3); font-size: 14px; }
.cv-flag img { width: 100%; height: 100%; object-fit: cover; }
.cv-swap { width: 46px; height: 46px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cc-line); border-radius: 50%; background: var(--cc-card); color: var(--cc-teal); font-size: 15px; cursor: pointer; transition: transform .35s ease, background .2s, color .2s, border-color .2s; }
.cv-swap:hover { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }
.cv-swap.is-spin { transform: rotate(180deg); }
html:not(.cf-light) .cv-swap { color: var(--cc-bright); }
html:not(.cf-light) .cv-swap:hover { color: #fff; }

.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chips button { height: 34px; padding: 0 13px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); color: var(--cc-ink-2); font: 600 .76rem 'Poppins', sans-serif; cursor: pointer; transition: border-color .2s, color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.cv-chips button:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
.cv-chips button.is-on { border-color: var(--cc-teal); background: var(--cc-teal-soft); color: var(--cc-teal); }
html:not(.cf-light) .cv-chips button.is-on, html:not(.cf-light) .cv-chips button:hover { color: var(--cc-bright); }

.cv-result { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 10px; min-width: 0; padding: 28px; border-left: 1px solid var(--cc-line); background: var(--cc-soft); }
.cv-res-from { display: block; min-width: 0; overflow: hidden; font-size: 1.2rem; font-weight: 600; line-height: 1.35; color: var(--cc-ink-2); white-space: nowrap; }
.cv-res-to { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 10px; min-width: 0; color: var(--cc-ink); }
.cv-res-to b { flex: 0 1 auto; min-width: 0; overflow: hidden; font-size: 2.9rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.cv-res-to span { flex-shrink: 0; font-size: 1.1rem; font-weight: 700; color: var(--cc-teal); }
html:not(.cf-light) .cv-res-to span { color: var(--cc-bright); }
.cv-res-to.is-flash b { animation: cvFlash .5s ease; }
@keyframes cvFlash { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.cv-rates { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-card); font-size: .8rem; font-weight: 600; color: var(--cc-ink-2); }
.cv-rates span:empty { display: none; }
.cv-res-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 4px; }
.cv-refresh { width: 52px; padding: 0; }
.cv-refresh.is-spin i { animation: cvSpin .7s linear infinite; }
@keyframes cvSpin { to { transform: rotate(360deg); } }
.cv-updated { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: .72rem; line-height: 1.45; color: var(--cc-ink-3); }
.cv-updated.is-old .cv-live-dot { background: #F59E0B; }
.cv-updated.is-old .cv-live-dot::after { display: none; }

.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.cv-card { min-width: 0; border: 1px solid var(--cc-line); border-radius: 22px; background: var(--cc-card); box-shadow: var(--cc-shadow); overflow: hidden; }
.cv-card-head { padding: 16px 20px; border-bottom: 1px solid var(--cc-line); }
.cv-card-head h2 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--cc-ink); }
.cv-cmp { list-style: none; margin: 0; padding: 6px 0; }
.cv-cmp li { display: grid; grid-template-columns: auto minmax(60px, 1fr) minmax(0, auto); align-items: center; gap: 12px; padding: 9px 20px; cursor: pointer; transition: background .2s; }
.cv-cmp li:hover { background: var(--cc-soft); }
.cv-cmp .cv-flag { width: 30px; height: 30px; }
.cv-cmp-n { display: grid; min-width: 0; line-height: 1.3; }
.cv-cmp-n b { font-size: .86rem; font-weight: 700; color: var(--cc-ink); }
.cv-cmp-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; color: var(--cc-ink-3); }
.cv-cmp-v { min-width: 0; max-width: 62vw; overflow: hidden; font-size: .9rem; font-weight: 700; color: var(--cc-ink); text-align: right; white-space: nowrap; }
.cv-tables { display: grid; grid-template-columns: 1fr 1fr; }
.cv-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.cv-tbl + .cv-tbl { border-left: 1px solid var(--cc-line); }
.cv-tbl th { padding: 10px 14px; background: var(--cc-soft); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cc-ink-3); text-align: left; }
.cv-tbl td { padding: 8px 14px; border-top: 1px solid var(--cc-line); color: var(--cc-ink-2); white-space: nowrap; }
.cv-tbl td:last-child { font-weight: 700; color: var(--cc-ink); }
.cv-credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 16px 0 0; font-size: .72rem; color: var(--cc-ink-3); text-align: center; }
.cv-credit a { color: var(--cc-ink-3); text-decoration: underline; text-underline-offset: 2px; }

.cv-sheet { position: fixed; inset: 0; z-index: 1000; }
.cv-sheet[hidden] { display: none; }
.cv-sheet-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); animation: cvFade .2s ease; }
@keyframes cvFade { from { opacity: 0; } to { opacity: 1; } }
.cv-sheet-box { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; width: min(440px, calc(100% - 32px)); max-height: min(620px, calc(100% - 64px)); transform: translate(-50%, -50%); border: 1px solid var(--cc-line); border-radius: 22px; background: var(--cc-card); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); animation: cvPop .22s ease; }
@keyframes cvPop { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.cv-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px 20px; }
.cv-sheet-head b { font-size: 1rem; color: var(--cc-ink); }
.cv-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--cc-soft); color: var(--cc-ink-2); font-size: 14px; cursor: pointer; }
.cv-search { position: relative; display: block; margin: 0 16px 10px; }
.cv-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--cc-ink-3); }
.cv-search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border: 1px solid var(--cc-line); border-radius: 12px; outline: 0; background: var(--cc-soft); color: var(--cc-ink); font: 500 16px 'Poppins', sans-serif; -webkit-appearance: none; appearance: none; }
.cv-search input:focus { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.cv-search input::placeholder { font-size: .86rem; color: var(--cc-ink-3); }
.cv-list { list-style: none; flex: 1; margin: 0; padding: 0 8px 10px; overflow-y: auto; overscroll-behavior: contain; }
.cv-list .cv-grp { padding: 10px 12px 6px; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-ink-3); }
.cv-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--cc-ink); text-align: left; cursor: pointer; }
.cv-list button:hover, .cv-list button.is-active { background: var(--cc-soft); }
.cv-list button.is-on { background: var(--cc-teal-soft); }
.cv-list .cv-flag { width: 30px; height: 30px; }
.cv-list b { font-size: .86rem; font-weight: 700; }
.cv-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; color: var(--cc-ink-3); }
.cv-list .cv-li-t { display: grid; min-width: 0; line-height: 1.3; }
.cv-list .cv-check { margin-left: auto; font-size: 12px; color: var(--cc-teal); }
.cv-empty { padding: 24px 12px; font-size: .82rem; color: var(--cc-ink-3); text-align: center; }

.cv-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none; align-items: center; gap: 12px; width: 100%; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--cc-line); border-radius: 0; background: var(--cc-card); box-shadow: none; color: var(--cc-ink); text-align: left; cursor: pointer; transform: translateY(110%); transition: transform .3s ease; }
.cv-dock:not([hidden]) { display: flex; }
.cv-dock.is-on { transform: none; }

.cv-dock-flags { position: relative; flex-shrink: 0; width: 52px; height: 34px; }
.cv-dock-flags .cv-flag { position: absolute; top: 0; width: 34px; height: 34px; border: 2px solid var(--cc-card); box-sizing: border-box; }
.cv-dock-flags .cv-flag:first-child { left: 0; }
.cv-dock-flags .cv-flag:last-child { left: 18px; }
.cv-dock-t { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; flex: 1; line-height: 1.25; }
.cv-dock-t small { overflow: hidden; white-space: nowrap; font-size: .72rem; font-weight: 500; color: var(--cc-ink-3); }
.cv-dock-t b { overflow: hidden; white-space: nowrap; font-size: 1.05rem; font-weight: 800; }
.cv-dock-go { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cc-teal); color: #fff; font-size: 13px; }

@media (max-width: 900px) {
    .cv-app { grid-template-columns: minmax(0, 1fr); }
    .cv-result { border-left: 0; border-top: 1px solid var(--cc-line); }
    .cv-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .cv-wrap { padding: 0 16px; }
    .cv-dock { min-height: calc(68px + env(safe-area-inset-bottom)); gap: 14px; }
    .cv-dock-flags { width: 62px; height: 40px; }
    .cv-dock-flags .cv-flag { width: 40px; height: 40px; }
    .cv-dock-flags .cv-flag:last-child { left: 22px; }
    .cv-dock-t small { font-size: .82rem; }
    .cv-dock-t b { font-size: 1.25rem; }
    .cv-dock-go { width: 44px; height: 44px; font-size: 14px; }
    .cc-hero .cv-today { margin-top: 16px; font-size: .72rem; padding: 5px 12px 5px 11px; }
    .cv-page .cc-hero .cc-share { margin-top: 16px; }
    .cv-form { padding: 18px 16px; gap: 16px; }
    .cv-result { padding: 20px 16px; }
    .cv-res-from { font-size: 1.08rem; }
    .cv-amount-in { height: 58px; }
    .cv-pair { position: relative; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cv-swap { position: absolute; right: 16px; top: 50%; z-index: 2; margin: 0; transform: translateY(-50%) rotate(90deg); box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); }
    .cv-swap.is-spin { transform: translateY(-50%) rotate(270deg); }
    .cv-pick { padding-right: 70px; }
    .cv-pick > i { display: none; }
    .cv-pick { height: 58px; }
    .cv-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
    .cv-chips::-webkit-scrollbar { display: none; }
    .cv-chips button { flex-shrink: 0; }
    .cv-cmp li { padding: 9px 16px; }
    .cv-tables { grid-template-columns: 1fr; }
    .cv-tbl + .cv-tbl { border-left: 0; border-top: 1px solid var(--cc-line); }
    .cv-sheet-box { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 85vh; transform: none; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); animation: cvUp .25s ease; }
    @keyframes cvUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (min-width: 601px) {
    .cv-dock { min-height: 72px; gap: 14px; padding: 10px max(24px, calc((100% - 1052px) / 2)); }
    .cv-dock .cv-dock-flags { width: 62px; height: 40px; }
    .cv-dock .cv-dock-flags .cv-flag { width: 40px; height: 40px; }
    .cv-dock .cv-dock-flags .cv-flag:last-child { left: 22px; }
    .cv-dock .cv-dock-t { gap: 0; align-content: center; line-height: 1.2; }
    .cv-dock .cv-dock-t small { font-size: .84rem; line-height: 1.3; }
    .cv-dock .cv-dock-t b { font-size: 1.35rem; line-height: 1.2; }
    .cv-dock .cv-dock-go { width: auto; height: 42px; padding: 0 18px; gap: 8px; border-radius: 12px; font: 600 .86rem/1 'Poppins', sans-serif; white-space: nowrap; }
    .cv-dock .cv-dock-go i { font-size: 12px; }
    .cv-dock .cv-dock-go::after { content: 'Edit amount'; }
}