:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: rgba(15, 23, 42, .62);

    --brand: #2f5bff;
    --brand2: #21c38a;

    --pos: #14b86a;
    --neg: #ff3b30;

    --surface: #ffffff;
    --surface2: #f4f7ff;

    --border: rgba(15, 23, 42, .10);
    --ring: 0 0 0 4px rgba(47, 91, 255, .12);

    --w: 1180px;

    --rBtn: 10px;
    --r1: 12px;
    --r2: 16px;
    --r3: 22px;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-variant-numeric: tabular-nums;
    word-break: keep-all;
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

.ta-c {
    text-align: center
}

.ub-reveal {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .45s ease, transform .45s ease
}

.ub-reveal.is-on {
    opacity: 1;
    transform: none
}

.ub-inner {
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 22px
}

.ub-container-fluid {
    padding: 0
}

.ub-subpage {
    padding: 28px 22px
}

/* Header */
.ub-hd {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.ub-hd__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* ===== Header: full width (cache/override safe) ===== */
.ub-hd .ub-inner {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* ===== Header layout: logo -> nav (right next to logo) -> right area ===== */
.ub-hd__inner {
    justify-content: flex-start;
    /* space-between 제거 */
}

.ub-nav {
    margin-left: 160px;
    /* 로고 옆 간격(원하는 값으로 조절) */
}

.ub-hd__right {
    margin-left: auto;
    /* 오른쪽 버튼들은 끝으로 밀기 */
}


.ub-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ub-logo__img { display: block; height: 32px; width: auto; }
[data-theme="dark"] .ub-logo__light { display: none; }
[data-theme="dark"] .ub-logo__dark  { display: block; }
.ub-logo__dark { display: none; }

.ub-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ub-nav::-webkit-scrollbar { display: none; }

.ub-nav a {
    padding: 8px 6px;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.ub-nav a:hover {
    background: rgba(47, 91, 255, .06);
    color: var(--text)
}

.ub-hd__right {
    display: flex;
    align-items: center;
    gap: 10px
}

/* Buttons */
.ub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--rBtn);
    font-weight: 650;
    line-height: 1;
    height: 34px;
    padding: 0 14px;
    box-shadow: none;
}

.ub-btn--primary {
    background: var(--brand);
    color: #fff
}

.ub-btn--ghost {
    background: transparent;
    border-color: rgba(15, 23, 42, .14);
    color: var(--text)
}

.ub-btn--ghost:hover {
    background: rgba(47, 91, 255, .06);
    border-color: rgba(47, 91, 255, .22)
}

.ub-iconRow {
    display: flex;
    align-items: center;
    gap: 8px
}

.ub-icobtn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: var(--rBtn);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, .62);
    transition: background .15s ease, color .15s ease;
}

.ub-icobtn:hover {
    background: rgba(47, 91, 255, .08);
    color: rgba(15, 23, 42, .92)
}

/* Notification bell */
.ub-noti-wrap {
    position: relative;
}
.ub-noti-btn {
    position: relative;
}
.ub-noti-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #f6465d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.ub-noti-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 440px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
:root[data-theme="dark"] .ub-noti-panel {
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.ub-noti-panel__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.ub-noti-panel__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.ub-noti-panel__readall {
    font-size: 11px;
    color: var(--brand);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}
.ub-noti-panel__readall:hover { text-decoration: underline; }
.ub-noti-panel__body {
    overflow-y: auto;
    flex: 1;
    max-height: 380px;
}
.ub-noti-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
    cursor: default;
}
.ub-noti-item:last-child { border-bottom: 0; }
.ub-noti-item.unread {
    background: rgba(59,130,246,.04);
}
:root[data-theme="dark"] .ub-noti-item.unread {
    background: rgba(59,130,246,.08);
}
.ub-noti-item__ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.ub-noti-item__ico.green { background: rgba(14,203,129,.12); color: #0ecb81; }
.ub-noti-item__ico.red { background: rgba(246,70,93,.12); color: #f6465d; }
.ub-noti-item__ico.blue { background: rgba(59,130,246,.12); color: #3b82f6; }
.ub-noti-item__ico.orange { background: rgba(240,185,11,.12); color: #f0b90b; }
.ub-noti-item__ico.gray { background: rgba(128,128,128,.12); color: #888; }
.ub-noti-item__content { flex: 1; min-width: 0; }
.ub-noti-item__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.ub-noti-item__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}
.ub-noti-item__body {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
    word-break: break-word;
}
.ub-noti-item__date {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    opacity: .7;
}
.ub-noti-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.ub-langwrap {
    position: relative
}

.ub-lang {
    height: 34px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    border-radius: var(--rBtn);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(15, 23, 42, .62);
    font-weight: 650;
    transition: background .15s ease, color .15s ease;
}

.ub-lang:hover {
    background: rgba(47, 91, 255, .08);
    color: rgba(15, 23, 42, .92)
}

.ub-lang__txt {
    font-size: 13px
}

.ub-lang__chev {
    font-size: 12px;
    opacity: .7
}

.ub-langmenu {
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    padding: 8px;
    display: none;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .10);
}

.ub-langmenu.is-open {
    display: block
}

.ub-langmenu__item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 650;
    color: var(--text)
}

.ub-langmenu__item:hover {
    background: rgba(47, 91, 255, .06)
}

.ub-langmenu__item.is-active {
    background: rgba(47, 91, 255, .10);
    color: var(--brand)
}

.ub-burger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: var(--surface);
}

/* Kicker */
.ub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, .55);
}

.ub-kdot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(47, 91, 255, .65);
    box-shadow: 0 0 0 6px rgba(47, 91, 255, .10);
}

.ub-kdot--grad {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 6px rgba(47, 91, 255, .08);
}

.ub-kdot--blue {
    background: rgba(47, 91, 255, .75);
    box-shadow: 0 0 0 6px rgba(47, 91, 255, .08);
}

/* HERO */
.ub-hero2 {
    position: relative;
    padding: 66px 0 54px;
    overflow: hidden;
}

.ub-hero2__bg {
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(1400px 680px at 85% 42%, rgba(33, 195, 138, .18), transparent 70%),
        radial-gradient(1300px 620px at 78% 35%, rgba(47, 91, 255, .22), transparent 72%),
        radial-gradient(900px 520px at 62% 18%, rgba(47, 91, 255, .10), transparent 66%),
        linear-gradient(180deg, var(--bg), var(--bg));
    pointer-events: none;
}

.ub-hero2__bg::after {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        repeating-radial-gradient(circle at 92% 26%,
            rgba(15, 23, 42, .06) 0 1px,
            transparent 1px 18px);
    opacity: .18;
    pointer-events: none;
}

.ub-hero2__grid {
    position: relative;
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 28px;
    align-items: center;
}

.ub-hero2__title {
    margin: 12px 0 0;
    letter-spacing: -.9px;
    line-height: 1.05;
    font-weight: 800;
    font-size: 54px;
}

.ub-hero2__tA {
    display: block
}

.ub-hero2__tB {
    display: block;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ub-hero2__desc {
    margin: 16px 0 0;
    color: rgba(15, 23, 42, .62);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
    max-width: 520px;
}

.ub-hero2__btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap
}

.ub-btnGrad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--rBtn);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    box-shadow: none;
}

.ub-btnSoft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: var(--rBtn);
    font-weight: 650;
    color: rgba(15, 23, 42, .84);
    background: rgba(15, 23, 42, .03);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: none;
}

.ub-hero2__right {
    display: flex;
    justify-content: flex-end;
    min-height: 260px
}

.ub-heroArt {
    position: relative;
    width: min(540px, 100%);
    height: 360px;
}

.ub-heroArt::before {
    display: none
}

.ub-heroWave {
    position: absolute;
    right: 10px;
    top: -10px;
    width: 150px;
    height: auto;
    opacity: .85;
}

.ub-heroPeople {
    position: absolute;
    right: 34px;
    bottom: -12px;
    width: 360px;
    height: auto;
}

.ub-heroCard {
    position: absolute;
    left: 18px;
    bottom: 62px;
    width: 160px;
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(15, 23, 42, .10));
}

/* Notice bar */
.ub-noticebar {
    background: var(--surface2);
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.ub-noticebar__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0
}

.ub-noticebar__label {
    font-weight: 650;
    color: rgba(15, 23, 42, .55);
    min-width: 90px;
    font-size: 12px;
    letter-spacing: .06em;
}

.ub-noticebar__list {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

.ub-noticebar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 550;
    font-size: 13px
}

.ub-noticebar__date {
    color: rgba(15, 23, 42, .55);
    font-weight: 550;
    font-size: 12px
}

.ub-noticebar__title {
    display: inline-block;
    max-width: 640px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom
}

.ub-noticebar__sep {
    color: rgba(15, 23, 42, .28);
    font-weight: 650;
    margin: 0 10px
}

.ub-noticebar__more {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rBtn);
    border: 1px solid rgba(15, 23, 42, .10);
    background: var(--surface);
    font-weight: 700;
    color: var(--brand);
}

.ub-noticebar__empty {
    color: rgba(15, 23, 42, .62);
    font-weight: 550;
    font-size: 13px
}

/* Section heads */
.ub-secHead {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 14px
}

.ub-secHead--left {
    align-items: flex-start;
    text-align: left
}

.ub-secTitle {
    margin: 0;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.4px;
}

/* Trending */
.ub-trending {
    padding: 36px 0 32px
}

.ub-trGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ub-trBox {
    border: 1px solid rgba(15, 23, 42, .06);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    padding: 14px 14px 10px;
    overflow: hidden;
    min-height: 210px;
}

.ub-trTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.ub-trCoin {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.ub-trCoinIco {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
    overflow: hidden;
    flex: 0 0 auto;
    border: 0;
}

.ub-trCoinIco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.ub-trSym {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.ub-trSym b {
    font-weight: 750;
    font-size: 14px;
    line-height: 1.1
}

.ub-trSym span {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(15, 23, 42, .55);
    font-weight: 550
}

/* ✅ 퍼센트/가격 정렬 정확히 */
.ub-trPriceRow {
    display: flex;
    align-items: center;
    /* baseline -> center 로 변경 (정렬 깨짐 해결) */
    gap: 12px;
    margin-top: 12px;
}

.ub-trPrice {
    font-weight: 750;
    font-size: 22px;
    letter-spacing: -.2px;
    line-height: 1;
    /* ✅ 숫자 라인 정리 */
}

.ub-trPct {
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 24px;
    /* ✅ 뱃지 수직 중심 */
    color: #fff;
    background: var(--pos);
}

.ub-trPct.neg {
    background: var(--neg)
}

.ub-trChart {
    height: 110px;
    margin-top: 8px
}

/* Live market table */
.ub-markets {
    padding: 36px 0 32px
}

.ub-tableWrap {
    overflow: auto;
    border-top: 1px solid rgba(15, 23, 42, .08)
}

.ub-mktTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    table-layout: fixed;
}

.ub-mktTable th,
.ub-mktTable td {
    padding: 10px 10px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ub-mktTable th {
    font-size: 12px;
    font-weight: 650;
    color: rgba(15, 23, 42, .50);
    white-space: nowrap
}

/* ✅ 중앙정렬 */
.ub-mktTable th,
.ub-mktTable td {
    text-align: center;
}

/* ✅ 마켓 컬럼만 좌측 정렬 */
.ub-mktTable th.th-market,
.ub-mktTable td:first-child {
    text-align: left;
}

/* ✅ “마켓” 헤더 들여쓰기(아이콘+간격만큼) */
.ub-mktTable th.th-market {
    padding-left: calc(10px + 34px);
}

.ub-mktTable td {
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid rgba(15, 23, 42, .08);
    background: transparent;
    white-space: nowrap;
    transition: background .15s ease
}

.ub-mktTable tbody tr {
    cursor: pointer
}

.ub-mktTable tbody tr:hover td {
    background: rgba(15, 23, 42, .035)
}

.ub-marketCell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

.ub-coinIcon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    overflow: hidden;
    flex: 0 0 auto;
    border: 0;
}

.ub-coinIcon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.ub-coinTxt {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0
}

.ub-coinBase {
    font-weight: 700
}

.ub-coinQuote {
    font-size: 12px;
    color: rgba(15, 23, 42, .55);
    font-weight: 550;
    margin-top: 4px
}

.ub-pos {
    color: var(--pos)
}

.ub-neg {
    color: var(--neg)
}

.ub-act {
    color: #3b82f6;
    font-weight: 700
}

/* ✅ 상승/하락 플래시(복구) */
@keyframes ubFlashUp {
    0% {
        background: rgba(20, 184, 106, .16);
    }

    100% {
        background: transparent;
    }
}

@keyframes ubFlashDown {
    0% {
        background: rgba(255, 59, 48, .16);
    }

    100% {
        background: transparent;
    }
}

.ub-flash-up {
    animation: ubFlashUp .65s ease-out;
}

.ub-flash-down {
    animation: ubFlashDown .65s ease-out;
}

/* Trust */
.ub-trust {
    padding: 44px 0 60px
}

.ub-trust__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.ub-trust__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ub-trCard {
    border: 1px solid rgba(15, 23, 42, .06);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    padding: 20px;
    min-height: 210px;
}

.ub-trIco {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(15, 23, 42, .02);
}

.ub-trIco--g {
    color: var(--pos);
    border-color: rgba(20, 184, 106, .35);
    background: rgba(20, 184, 106, .06)
}

.ub-trIco--o {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .08)
}

.ub-trIco--p {
    color: #a855f7;
    border-color: rgba(168, 85, 247, .35);
    background: rgba(168, 85, 247, .08)
}

.ub-trIco--r {
    color: #ef4444;
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .08)
}

.ub-trTxt {
    margin-top: 14px
}

.ub-trT {
    font-weight: 750;
    font-size: 18px;
    letter-spacing: -.3px
}

.ub-trD {
    margin-top: 10px;
    color: rgba(15, 23, 42, .62);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.7;
}

.ub-trust__promo {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    padding: 44px 40px;
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.ub-promoBg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 380px at 30% 30%, rgba(47, 91, 255, .14), transparent 62%),
        radial-gradient(760px 420px at 70% 70%, rgba(33, 195, 138, .10), transparent 62%),
        repeating-radial-gradient(circle at 90% 20%,
            rgba(15, 23, 42, .06) 0 1px,
            transparent 1px 16px);
    opacity: .50;
    pointer-events: none;
}

.ub-promoTitle {
    position: relative;
    font-size: 44px;
    font-weight: 850;
    letter-spacing: -.9px;
    line-height: 1.08;
}

.ub-promoDesc {
    position: relative;
    max-width: 520px;
    color: rgba(15, 23, 42, .62);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 8px;
}

/* ===== Hero Dark (exchange style) ===== */
.ub-hero-dark {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 0;
    overflow: hidden;
    min-height: 360px;
}

.ub-hero-dark__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(600px 400px at 80% 30%, rgba(59,130,246,0.12), transparent 70%),
        radial-gradient(400px 300px at 20% 70%, rgba(14,203,129,0.06), transparent 70%);
}

.ub-hero-dark__grid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.ub-hero-dark__text {
    flex: 1;
    max-width: 560px;
}

.ub-hero-dark__h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.ub-hero-dark__t1 {
    display: block;
    color: rgba(255,255,255,0.95);
}

.ub-hero-dark__t2 {
    display: block;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ub-hero-dark__desc {
    margin: 14px 0 0;
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    line-height: 1.7;
    max-width: 480px;
}

.ub-hero-dark__btns {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.ub-hero-dark__cta1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 32px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.ub-hero-dark__cta1:hover {
    background: #2563eb;
}

.ub-hero-dark__cta2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 32px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.ub-hero-dark__cta2:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.ub-hero-dark__art {
    flex: 0 0 auto;
    width: 420px;
}

.ub-hero-dark__svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Features Section ===== */
.ub-feat {
    padding: 40px 0 48px;
    background: #fafafa;
}

.ub-feat__grid {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ub-feat__card {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ub-feat__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.ub-feat__ico {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ub-feat__ico--blue {
    color: #3b82f6;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
}

.ub-feat__ico--green {
    color: #0ecb81;
    background: rgba(14,203,129,0.08);
    border: 1px solid rgba(14,203,129,0.15);
}

.ub-feat__ico--purple {
    color: #a855f7;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.15);
}

.ub-feat__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2329;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}

.ub-feat__desc {
    font-size: 14px;
    color: #848e9c;
    font-weight: 450;
    line-height: 1.6;
    word-break: keep-all;
}

/* ===== Footer (Template Style) ===== */
.ub-footer {
    background: #1e2329;
    color: #848e9c;
    padding: 28px 24px;
}

.ub-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Simple footer (no links) — centered layout */
.ub-footer--simple {
    text-align: center;
}

.ub-footer__logo {
    margin-bottom: 12px;
}
.ub-footer__logo img {
    display: inline-block;
    height: 28px;
    width: auto;
}

.ub-footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.ub-footer__warn {
    font-size: 11px;
    color: #4b5563;
    line-height: 1.5;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333a45;
}

/* Responsive */
@media (max-width: 1100px) {
    .ub-trGrid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 980px) {
    .ub-nav {
        display: none
    }

    .ub-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center
    }

    .ub-nav.is-open {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        padding: 12px 22px;
        gap: 10px;
        flex-direction: column;
        background: var(--surface);
        border-bottom: 1px solid rgba(15, 23, 42, .10)
    }

    .ub-hero2__grid {
        grid-template-columns: 1fr
    }

    .ub-hero2__title {
        font-size: 40px
    }

    .ub-heroArt {
        height: 300px
    }

    .ub-trust__grid {
        grid-template-columns: 1fr
    }

    /* Hero dark tablet */
    .ub-hero-dark__art { width: 320px; }
    .ub-hero-dark__h1 { font-size: 32px; }
}

/* ============================================================
   MOBILE LAYOUT (768px 이하) — 메인 페이지 전면 개선
   ============================================================ */
@media (max-width: 768px) {

    /* ── Base spacing ── */
    .ub-inner { padding: 0 14px; }

    /* ── Header compact ── */
    .ub-hd__inner { height: 44px; gap: 6px; padding: 0 10px; }
    .ub-logo__img { height: 22px; }
    .ub-hd__right { gap: 4px; }
    .ub-hd__right .ub-btn { height: 26px; padding: 0 8px; font-size: 11px; border-radius: 4px; }
    .ub-iconRow { gap: 2px; }
    .ub-icobtn { width: 26px; height: 26px; }
    .ub-icobtn svg { width: 14px; height: 14px; }
    .ub-noti-badge { top: 1px; right: 1px; min-width: 14px; height: 14px; font-size: 8px; line-height: 14px; }
    .ub-noti-panel { position: fixed; top: 50px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 100px); }
    .ub-lang { height: 26px; padding: 0 6px; font-size: 11px; }
    .ub-lang__txt { display: none; }
    .ub-lang__chev { display: none; }
    .ub-burger { width: 30px; height: 30px; font-size: 16px; }
    .ub-nav.is-open { top: 44px; padding: 10px 14px; }

    /* ── Old Hero section (fallback) ── */
    .ub-hero2 { padding: 36px 0 28px; }
    .ub-hero2__title { font-size: 28px; letter-spacing: -.5px; }
    .ub-hero2__desc { font-size: 14px; line-height: 1.6; max-width: none; margin-top: 12px; }
    .ub-hero2__btns { margin-top: 16px; gap: 8px; }
    .ub-btnGrad, .ub-btnSoft { width: 100%; height: 44px; font-size: 14px; }
    .ub-hero2__right { min-height: 160px; justify-content: center; }
    .ub-heroArt { height: 200px; width: 100%; }
    .ub-heroPeople { width: 260px; right: 10px; bottom: -8px; }
    .ub-heroWave { width: 100px; right: 4px; top: -6px; }
    .ub-heroCard { width: 110px; left: 8px; bottom: 40px; }

    /* ── New Hero Dark ── */
    .ub-hero-dark {
        padding: 32px 16px;
        min-height: 200px;
        text-align: center;
    }
    .ub-hero-dark__grid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .ub-hero-dark__text { max-width: none; }
    .ub-hero-dark__h1 { font-size: 22px; }
    .ub-hero-dark__desc { font-size: 13px; max-width: none; margin: 10px auto 0; }
    .ub-hero-dark__btns { justify-content: center; margin-top: 20px; }
    .ub-hero-dark__cta1 { width: 100%; height: 44px; font-size: 14px; }
    .ub-hero-dark__cta2 { width: 100%; height: 44px; font-size: 14px; }
    .ub-hero-dark__art {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    .ub-hero-dark__svg {
        max-width: 100%;
        height: auto;
    }

    /* ── Features ── */
    .ub-feat { padding: 20px 12px; background: #fafafa; }
    .ub-feat__grid { flex-direction: column; gap: 12px; padding: 0; }
    .ub-feat__card { padding: 20px 16px; border-radius: 10px; }
    .ub-feat__ico { width: 48px; height: 48px; border-radius: 12px; }
    .ub-feat__title { font-size: 16px; }
    .ub-feat__desc { font-size: 13px; }

    /* ── Kicker ── */
    .ub-kicker { font-size: 11px; gap: 6px; }
    .ub-kdot { width: 6px; height: 6px; }

    /* ── Section headers ── */
    .ub-secTitle { font-size: 20px !important; }

    /* ── Notice bar ── */
    .ub-noticebar__row { gap: 8px; }
    .ub-noticebar__label { min-width: 60px; font-size: 11px; padding: 4px 8px; }
    .ub-noticebar__title { font-size: 13px; }
    .ub-noticebar__more { width: 28px; height: 28px; font-size: 13px; }

    /* ── Trending grid ── */
    .ub-trGrid { grid-template-columns: 1fr; gap: 10px; }
    .ub-trBox { min-height: 170px; padding: 14px; border-radius: 14px; }
    .ub-trChart { height: 90px; }
    .ub-trSym { font-size: 14px; }
    .ub-trPrice { font-size: 16px; }
    .ub-trPct { font-size: 13px; }

    /* ── Live market: compact mobile rows ── */
    .ub-tableWrap { overflow: visible; border-top: none; }
    .ub-mktTable { min-width: 0; }
    .ub-mktTable colgroup { display: none; }
    .ub-mktTable thead { display: none; }
    .ub-mktTable tbody tr {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
    }
    .ub-mktTable tbody tr:last-child { border-bottom: none; }
    .ub-mktTable td {
        display: block;
        border: none;
        padding: 0;
        text-align: left;
        white-space: nowrap;
        background: transparent !important;
    }
    .ub-mktTable td::before { display: none; }
    .ub-mktTable td:first-child { flex: 1; min-width: 0; }
    .ub-mktTable td:nth-child(2) { font-size: 15px; font-weight: 700; }
    .ub-mktTable td:nth-child(3) {
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        min-width: 72px;
        text-align: center;
    }
    .ub-mktTable td:nth-child(3).ub-pos { background: var(--pos); color: #fff; }
    .ub-mktTable td:nth-child(3).ub-neg { background: var(--neg); color: #fff; }
    .ub-mktTable td:nth-child(4),
    .ub-mktTable td:nth-child(5),
    .ub-mktTable td:nth-child(6),
    .ub-mktTable td:nth-child(7) { display: none !important; }

    /* ── Trust/Features section ── */
    .ub-trust { padding: 32px 0 40px; }
    .ub-trust__cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ub-trCard {
        min-height: 0;
        padding: 16px;
        border-radius: 14px;
    }
    .ub-trIco { width: 44px; height: 44px; border-radius: 12px; }
    .ub-trIco svg { width: 22px; height: 22px; }
    .ub-trTxt { margin-top: 10px; }
    .ub-trT { font-size: 16px; }
    .ub-trD { font-size: 13px; margin-top: 6px; }

    /* ── Promo CTA card ── */
    .ub-trust__promo {
        padding: 28px 20px;
        border-radius: 16px;
        gap: 10px;
    }
    .ub-promoTitle { font-size: 24px; letter-spacing: -.4px; }
    .ub-promoDesc { font-size: 13px; max-width: none; }
    .ub-trust__promo .ub-btnGrad { height: 44px; font-size: 14px; width: 100%; }

    /* ── Footer ── */
    .ub-footer { padding: 24px 16px 16px; }
    .ub-footer__bottom { flex-direction: column; gap: 8px; }

    /* ── Sections vertical spacing ── */
    .ub-trending { padding: 24px 0; }
    .ub-markets { padding: 24px 0; }

    /* ── Trending mobile: scrollable ── */
    .ub-trGrid { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* ── Subpage (fallback) ── */
    .ub-subpage { padding: 16px 14px; }
}

/* Dark mode */
:root[data-theme="dark"],
body[data-theme="dark"] {
    --bg: #0b1220;
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .62);
    --surface: #0f1a2f;
    --surface2: #0b1324;
    --border: rgba(255, 255, 255, .12);
    --ring: 0 0 0 4px rgba(88, 168, 255, .14);
}

:root[data-theme="dark"] .ub-hd {
    background: rgba(11, 18, 32, .78);
    border-bottom-color: rgba(255, 255, 255, .08)
}

:root[data-theme="dark"] .ub-btn--ghost {
    border-color: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .90)
}

:root[data-theme="dark"] .ub-icobtn {
    color: rgba(255, 255, 255, .72)
}

:root[data-theme="dark"] .ub-icobtn:hover {
    background: rgba(88, 168, 255, .12);
    color: rgba(255, 255, 255, .92)
}

:root[data-theme="dark"] .ub-lang {
    color: rgba(255, 255, 255, .72)
}

:root[data-theme="dark"] .ub-lang:hover {
    background: rgba(88, 168, 255, .12);
    color: rgba(255, 255, 255, .92)
}

:root[data-theme="dark"] .ub-hero2__desc {
    color: rgba(255, 255, 255, .62)
}

:root[data-theme="dark"] .ub-hero2__bg::after {
    opacity: .10
}

:root[data-theme="dark"] .ub-noticebar {
    border-top-color: rgba(255, 255, 255, .10);
    border-bottom-color: rgba(255, 255, 255, .10)
}

:root[data-theme="dark"] .ub-noticebar__label {
    color: rgba(255, 255, 255, .62)
}

:root[data-theme="dark"] .ub-noticebar__date {
    color: rgba(255, 255, 255, .55)
}

:root[data-theme="dark"] .ub-noticebar__sep {
    color: rgba(255, 255, 255, .25)
}

:root[data-theme="dark"] .ub-noticebar__more {
    background: var(--surface);
    border-color: rgba(255, 255, 255, .14)
}

:root[data-theme="dark"] .ub-trBox,
:root[data-theme="dark"] .ub-trCard,
:root[data-theme="dark"] .ub-trust__promo {
    border-color: rgba(255, 255, 255, .10);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .26);
}

:root[data-theme="dark"] .ub-trD,
:root[data-theme="dark"] .ub-promoDesc {
    color: rgba(255, 255, 255, .62)
}

:root[data-theme="dark"] .ub-mktTable th {
    color: rgba(255, 255, 255, .55)
}

:root[data-theme="dark"] .ub-mktTable td {
    border-top-color: rgba(255, 255, 255, .10)
}

:root[data-theme="dark"] .ub-mktTable tbody tr:hover td {
    background: rgba(255, 255, 255, .05)
}

:root[data-theme="dark"] .ub-footer {
    background: #0b0e11;
}

:root[data-theme="dark"] .ub-footer__top {
    border-bottom-color: #1e2329;
}

:root[data-theme="dark"] .ub-footer__group a {
    color: rgba(255, 255, 255, .45);
}

:root[data-theme="dark"] .ub-footer__group a:hover {
    color: rgba(255, 255, 255, .90);
}

:root[data-theme="dark"] .ub-footer__bottom {
    color: rgba(255, 255, 255, .30);
}

:root[data-theme="dark"] .ub-footer__warn {
    color: rgba(255, 255, 255, .25);
    border-top-color: #1e2329;
}

:root[data-theme="dark"] .ub-feat {
    background: var(--surface2);
}

:root[data-theme="dark"] .ub-feat__card {
    background: var(--surface);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .20);
}

:root[data-theme="dark"] .ub-feat__title {
    color: var(--text);
}

:root[data-theme="dark"] .ub-feat__desc {
    color: var(--muted);
}

/* ===== v92: caret/drag/selection fixes ===== */

/* 1) 빈 곳 클릭시 캐럿( | ) 보이는 문제 방지 */
html,
body {
    caret-color: transparent;
}

/* 2) 기본 드래그/텍스트 선택 방지 */
body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* 3) 입력창/텍스트영역은 선택 가능 + 캐럿 정상 */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    caret-color: auto;
}

/* 4) 공지 “본문”은 복사 가능하게(원하면 제거 가능) */
.ubx-viewBody {
    -webkit-user-select: text;
    user-select: text;
    caret-color: auto;
}

/* 5) 이미지/링크 드래그 방지 */
img,
a {
    -webkit-user-drag: none;
    user-drag: none;
}

/* (old .ub-ft rules removed — using .ub-footer now) */


@media (prefers-reduced-motion: reduce) {
    .ub-reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .ub-flash-up,
    .ub-flash-down {
        animation: none
    }
}