:root {
    --mint: #55b59d;
    --mint-strong: #00b8ad;
    --mint-soft: #e8f7f3;
    --dark: #17181d;
    --text: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --bg: #f8faf9;
    --danger: #ef4444;
    --warning: #f6b800;
    --pink: #f239a8;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(17, 24, 39, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(229,231,235,.85);
    backdrop-filter: blur(14px);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark, .footer-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mint);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.logo-text { display: grid; line-height: 1.1; }
.logo-text small { font-size: 12px; font-weight: 700; }
.logo-text strong { font-size: 23px; letter-spacing: -1px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4155; box-shadow: 0 0 0 5px rgba(255,65,85,.08); }
.logo em { font-style: normal; font-weight: 800; font-size: 14px; }
.gnb { flex: 1; display: flex; justify-content: center; gap: 42px; font-size: 15px; font-weight: 800; }
.gnb a { padding: 26px 0; white-space: nowrap; }
.gnb a.active { color: var(--mint); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.mobile-menu-btn { display: none; border: 0; background: var(--dark); color: #fff; border-radius: 10px; padding: 8px 12px; }
.site-main { min-height: 56vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 9px 16px; }
.btn-lg { min-height: 54px; padding: 14px 26px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--mint); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-line { background: #fff; color: var(--dark); border: 1px solid var(--line); }
.btn-yellow { background: #ffc400; color: #3c2a00; }
.btn-pink { background: linear-gradient(90deg, #f033a0, #ae42f5); color: #fff; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }
.flash {
    max-width: 900px;
    margin: 18px auto 0;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
}
.flash-success { border-color: rgba(85,181,157,.35); color: #0f766e; background: var(--mint-soft); }
.flash-error { border-color: rgba(239,68,68,.25); color: #b91c1c; background: #fff1f2; }
.flash-info { border-color: rgba(85,181,157,.25); color: #245a51; background: #f0fdfa; }
.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background: radial-gradient(circle at 20% 20%, rgba(85,181,157,.12), transparent 28%), linear-gradient(#fbfbfb, #f2f4f3);
    border-bottom: 1px solid var(--line);
}
.hero:after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -110px;
    height: 340px;
    background-image: linear-gradient(rgba(17,24,39,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,39,.08) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(500px) rotateX(58deg);
    opacity: .45;
}
.hero-card {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 48px));
    margin: 110px auto 0;
    padding: 38px 34px 32px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.hero-label, .page-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--mint);
    font-weight: 900;
    font-size: 13px;
}
.hero h1, .page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: -2.4px;
}
.hero h1 span, .page-hero h1 span { color: var(--mint-strong); }
.hero p { color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.hero-stat { background: #fff; border-radius: 14px; padding: 15px 10px; font-weight: 900; color: var(--mint); }
.hero-stat small { display: block; color: var(--muted); font-weight: 700; }
.coin { position: absolute; z-index: 1; border-radius: 50%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); }
.coin-left { width: 160px; height: 160px; background: radial-gradient(circle at 35% 30%, #ffe58a, #b98500); left: 10%; top: 300px; }
.coin-right { width: 170px; height: 170px; background: radial-gradient(circle at 35% 30%, #25d8cf, #006f72); right: 15%; bottom: 80px; }
.coin-top { width: 120px; height: 120px; background: radial-gradient(circle at 35% 30%, #fff2a8, #deb400); left: 28%; top: 100px; }
.section { padding: 90px 0; }
.section-title { margin: 0 0 34px; font-size: 24px; letter-spacing: -.8px; }
.market-card, .security-card, .form-card, .side-card, .notice-table-wrap, .orders-card, .admin-card, .contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.market-card { max-width: 880px; margin: 0 auto; padding: 28px; }
.market-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.market-head h3, .side-card h3, .form-card h3, .admin-card h3 { margin: 0; font-size: 19px; }
.market-sub { color: var(--muted); font-size: 13px; }
.market-list { display: grid; }
.market-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1fr; gap: 15px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.market-row:last-child { border-bottom: 0; }
.coin-name { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.coin-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; }
.coin-icon.usdt { background: var(--mint); }
.coin-icon.btc { background: #f59e0b; }
.coin-icon.eth { background: #657eea; }
.coin-icon.xrp { background: #111; }
.coin-icon.trx { background: #ef4444; }
.price-value { font-weight: 900; }
.change.up { color: #f43f5e; background: #ffe8ef; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.change.down { color: #0284c7; background: #e0f2fe; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.security-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 42px; background: linear-gradient(90deg, #eefaf7, #fff); }
.security-card h2 { margin: 10px 0 12px; font-size: 30px; letter-spacing: -1.5px; }
.security-visual { min-height: 240px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--mint-strong); font-size: 48px; font-weight: 900; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-weight: 900; }
.feature small { display: block; color: var(--muted); font-weight: 600; }
.page-hero { text-align: center; padding: 58px 0 38px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 8px; }
.page-hero p { color: var(--muted); margin: 0; }
.page-hero .icon-circle, .auth-icon { width: 82px; height: 82px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: inline-flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 14px; }
.layout-two { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.side-stack { display: grid; gap: 24px; }
.side-card { padding: 28px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; }
.live-price { font-size: 38px; font-weight: 900; letter-spacing: -1px; margin: 22px 0 0; }
.live-price small { font-size: 18px; font-weight: 700; color: var(--muted); }
.notice-list { margin: 22px 0 0; padding-left: 18px; color: #344054; }
.notice-list li { margin: 11px 0; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.fee-table td { padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.fee-table td:last-child { text-align: right; color: var(--mint); font-weight: 900; }
.form-card { padding: 32px; }
.form-card > h3 { display: flex; align-items: center; gap: 8px; }
.form-desc { color: var(--muted); margin: 4px 0 28px; }
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 900; }
.required { color: var(--danger); }
.input, .textarea, .select {
    width: 100%;
    border: 1px solid #d8dde5;
    background: #fff;
    border-radius: 10px;
    min-height: 48px;
    padding: 0 15px;
    outline: none;
    transition: border .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 130px; padding: 13px 15px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(85,181,157,.13); }
.input[readonly] { background: #f8fafc; color: #475467; }
.help { color: var(--muted); font-size: 13px; }
.help.danger { color: var(--danger); font-weight: 800; }
.input-button-row { display: grid; grid-template-columns: 1fr 115px; gap: 10px; }
.agreement-box { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.check-row label { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--mint); }
.calc-box { border: 1px solid var(--line); border-radius: 14px; background: #fbfdfc; padding: 18px; display: grid; gap: 10px; }
.calc-line { display: flex; justify-content: space-between; gap: 18px; }
.calc-line strong { font-weight: 900; }
.calc-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.auth-page { min-height: 100vh; background: #f6f7f8; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { text-align: center; font-size: 36px; margin: 0 0 8px; letter-spacing: -1.5px; }
.auth-card .auth-sub { text-align: center; margin: 0 0 30px; color: var(--muted); font-weight: 700; }
.auth-icon { margin: 0 auto 16px; background: #e5e7eb; color: var(--dark); }
.auth-links { display: flex; justify-content: space-between; margin: 20px 0 0; color: #475467; }
.auth-bottom { margin-top: 28px; text-align: center; color: #475467; }
.auth-bottom a { font-weight: 900; color: var(--dark); }
.notice-table-wrap { overflow: hidden; }
.notice-table, .admin-table { width: 100%; border-collapse: collapse; }
.notice-table th, .notice-table td, .admin-table th, .admin-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; }
.notice-table th, .admin-table th { background: #fafafa; color: #475467; font-weight: 800; }
.notice-table tr:last-child td, .admin-table tr:last-child td { border-bottom: 0; }
.notice-title { font-weight: 900; }
.notice-view { padding: 38px; }
.notice-view h2 { margin: 0 0 12px; font-size: 28px; }
.notice-content { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 30px; white-space: pre-wrap; }
.orders-card { padding: 30px; min-height: 420px; }
.filter-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 24px 0; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.filter-tabs a { padding: 8px 14px; border-radius: 9px; font-weight: 800; }
.filter-tabs a.active { background: var(--mint); color: #fff; }
.empty { min-height: 220px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.contact-grid.contact-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.contact-card { padding: 36px 28px; text-align: center; }
.contact-card .contact-icon { width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; }
.contact-card.kakao { border-color: #ffe08a; background: linear-gradient(135deg, #fffdf4, #fff); }
.contact-card.kakao .contact-icon { background: #fff0b8; color: #d19000; }
.contact-card.insta { border-color: #ffc8e8; background: linear-gradient(135deg, #fff3fb, #fff); }
.contact-card.insta .contact-icon { background: #f8c7e9; color: var(--pink); }
.guide-box { max-width: 760px; margin: 34px auto 0; padding: 34px 42px; border: 1px solid #cdeae4; border-radius: var(--radius); background: #fbfffd; box-shadow: var(--shadow); }
.guide-box h3 { text-align: center; color: var(--mint); margin: 0 0 28px; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.admin-sidebar { background: var(--dark); border-radius: 18px; padding: 18px; position: sticky; top: 96px; }
.admin-sidebar a { display: block; color: #fff; opacity: .75; padding: 12px 14px; border-radius: 10px; font-weight: 800; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.12); opacity: 1; }
.admin-card { padding: 26px; margin-bottom: 22px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.admin-stat strong { display: block; font-size: 30px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; }
.badge-mint { background: var(--mint-soft); color: var(--mint); }
.badge-red { background: #ffe6ea; color: #f43f5e; }
.badge-gray { background: #f2f4f7; color: #475467; }
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 80px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 54px 24px 38px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: grid; line-height: 1.2; }
.footer-brand small { color: var(--mint); }
.footer-inner p { color: #344054; }
.footer-badges { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0 32px; }
.mini-contact { border-radius: 10px; padding: 8px 14px; font-weight: 900; font-size: 13px; border: 1px solid; }
.mini-contact.kakao { border-color: #f6c400; color: #765500; }
.mini-contact.instagram { border-color: #ff8bd1; color: #df1684; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; color: #475467; font-size: 13px; }
.floating-links { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; gap: 10px; }
.float-link { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; border: 0; font-weight: 900; box-shadow: var(--shadow); cursor: pointer; }
.float-insta { background: linear-gradient(135deg,#ffcb52,#f525a5,#7c3aed); color: #fff; }
.float-talk { background: #ffe100; color: #271f00; font-size: 12px; }
.float-top { background: var(--mint); color: #fff; font-size: 22px; }
.popup-layer { position: fixed; left: 24px; top: 96px; z-index: 80; width: min(360px, calc(100% - 48px)); background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.popup-layer img { width: 100%; display: block; }
.popup-body { padding: 18px; }
.popup-close { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
@media (max-width: 1080px) {
    .header-inner { gap: 14px; }
    .gnb { gap: 20px; font-size: 14px; }
    .layout-two { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; display: flex; overflow-x: auto; }
    .admin-sidebar a { white-space: nowrap; }
}
@media (max-width: 860px) {
    .header-inner { height: auto; min-height: 68px; flex-wrap: wrap; padding: 14px 18px; }
    .mobile-menu-btn { display: inline-flex; margin-left: auto; }
    .gnb { display: none; order: 4; width: 100%; flex-direction: column; gap: 0; padding: 10px 0; }
    .gnb.open { display: flex; }
    .gnb a { padding: 12px 4px; border-bottom: 1px solid #f1f1f1; }
    .header-actions { width: 100%; justify-content: flex-end; }
    .logo-text strong { font-size: 20px; }
    .hero { min-height: 600px; }
    .hero-card { margin-top: 64px; }
    .hero-stats { grid-template-columns: 1fr; }
    .security-card { grid-template-columns: 1fr; padding: 28px; }
    .market-row { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; }
    .auth-card { padding: 30px 22px; }
    .form-card { padding: 24px; }
    .notice-table th:nth-child(1), .notice-table td:nth-child(1) { display: none; }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .container { padding: 0 18px; }
    .section { padding: 58px 0; }
    .page-hero { padding: 42px 0 30px; }
    .market-head { align-items: flex-start; flex-direction: column; }
    .coin-left, .coin-right, .coin-top { opacity: .25; }
    .input-button-row { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr; }
    .notice-table th, .notice-table td, .admin-table th, .admin-table td { padding: 14px 12px; }
    .check-row { align-items: flex-start; flex-direction: column; }
    .floating-links { right: 12px; bottom: 12px; }
}

/* 82테더 v1.1: 참고 사이트와 구분되는 블루/골드 톤 및 메인 레이아웃 */
:root {
    --mint: #2f5cff;
    --mint-strong: #1238d8;
    --mint-soft: #eef3ff;
    --dark: #101525;
    --warning: #f5a400;
    --bg: #f7f8fc;
    --shadow: 0 18px 46px rgba(16, 21, 37, .09);
}
.logo-mark, .footer-mark { background: linear-gradient(135deg, #2f5cff, #0f1f7a); }
.gnb a.active, .footer-brand small { color: var(--mint); }
.btn-primary { background: linear-gradient(135deg, #2f5cff, #1238d8); }
.btn-line:hover { border-color: var(--mint); color: var(--mint); }
.flash-success { border-color: rgba(47,92,255,.24); color: #1238d8; background: var(--mint-soft); }
.flash-info { border-color: rgba(47,92,255,.18); color: #1d3ccf; background: #f4f7ff; }
.page-label, .hero-label { background: var(--mint-soft); color: var(--mint); }
.page-hero h1 span, .hero h1 span { color: var(--mint-strong); }
.page-hero .icon-circle, .auth-icon { background: var(--mint-soft); color: var(--mint); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(47,92,255,.11); }
.check-row input[type="checkbox"] { accent-color: var(--mint); }
.fee-table td:last-child, .guide-box h3 { color: var(--mint); }
.filter-tabs a.active, .float-top { background: var(--mint); color: #fff; }
.badge-mint { background: var(--mint-soft); color: var(--mint); }

.hero-v2 {
    position: relative;
    overflow: hidden;
    padding: 86px 0 74px;
    background:
        radial-gradient(circle at 78% 18%, rgba(245,164,0,.20), transparent 24%),
        radial-gradient(circle at 16% 22%, rgba(47,92,255,.16), transparent 28%),
        linear-gradient(135deg, #f9fbff 0%, #f3f6ff 55%, #fff8ed 100%);
    border-bottom: 1px solid var(--line);
}
.hero-v2:before {
    content: "";
    position: absolute;
    inset: auto -12% -170px -12%;
    height: 330px;
    background-image: linear-gradient(rgba(16,21,37,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16,21,37,.08) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(520px) rotateX(62deg);
    opacity: .38;
}
.hero-v2-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 420px;
    align-items: center;
    gap: 52px;
}
.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -3px;
}
.hero-copy h1 span { color: var(--mint-strong); }
.hero-copy p {
    width: min(610px, 100%);
    color: #344054;
    font-size: 17px;
    margin: 0 0 28px;
}
.hero-actions-left { justify-content: flex-start; }
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(47,92,255,.12);
    color: #344054;
    font-weight: 800;
    font-size: 13px;
}
.hero-price-panel {
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 26px 65px rgba(16,21,37,.12);
    backdrop-filter: blur(14px);
}
.panel-top, .panel-links, .quick-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.panel-top { color: var(--muted); font-size: 13px; }
.panel-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff6e3;
    color: #a16207;
    font-weight: 900;
}
.ticker-main {
    margin: 28px 0 22px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.ticker-main small { display: block; color: var(--muted); font-weight: 800; }
.ticker-main strong {
    display: block;
    margin-top: 4px;
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: -2px;
}
.quick-calc {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #f8faff;
    border: 1px solid #e4e9ff;
    border-radius: 18px;
}
.quick-calc label { font-weight: 900; }
.quick-input-row {
    position: relative;
    display: flex;
    align-items: center;
}
.quick-input-row .input { padding-right: 60px; }
.quick-input-row span {
    position: absolute;
    right: 14px;
    color: var(--muted);
    font-weight: 900;
}
.quick-result {
    padding-top: 8px;
    color: var(--muted);
}
.quick-result strong { color: var(--mint-strong); font-size: 21px; }
.panel-links { margin-top: 18px; }
.panel-links a {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}
.coin-section { background: #fff; }
.section-head-row {
    max-width: 1180px;
    margin: 0 auto 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}
.section-head-row .section-title { margin: 10px 0 0; }
.live-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: #475467;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(16,21,37,.05);
}
.market-card-wide { max-width: none; padding: 28px; }
.market-table-head, .market-row-live {
    display: grid;
    grid-template-columns: 1.25fr 1fr .9fr 1.05fr;
    gap: 15px;
    align-items: center;
}
.market-table-head {
    padding: 14px 12px;
    background: #f4f6fb;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
    border-radius: 14px 14px 0 0;
}
.market-row-live {
    padding: 20px 12px;
    border-bottom: 1px solid var(--line);
}
.market-row-live:last-child { border-bottom: 0; }
.coin-icon.btc { background: #f59e0b; }
.coin-icon.eth { background: #627eea; }
.coin-icon.usdt { background: #26a17b; }
.coin-icon.xrp { background: #111827; }
.coin-icon.trx { background: #ef4444; }
.change.up { color: #e11d48; background: #ffe8ef; }
.change.down { color: #0284c7; background: #e0f2fe; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.process-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.process-card b {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--mint-soft);
    color: var(--mint);
    font-size: 18px;
}
.process-card h3 { margin: 18px 0 8px; font-size: 22px; }
.process-card p { margin: 0; color: var(--muted); }
.security-card-v2 { background: linear-gradient(135deg, #f4f7ff, #fffaf0); }
.security-visual-v2 {
    color: var(--mint-strong);
    background: linear-gradient(135deg, #fff, #f3f6ff);
}
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field .input { padding-right: 72px; }
.password-toggle {
    position: absolute;
    right: 8px;
    min-width: 52px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #eef3ff;
    color: var(--mint-strong);
    font-weight: 900;
    cursor: pointer;
}
.password-toggle.is-active { background: var(--dark); color: #fff; }
.contact-form-box { max-width: 760px; }
.auth-page { background: linear-gradient(135deg,#f7f8fc,#eef3ff); }
.float-top { background: var(--mint); }

@media (max-width: 1080px) {
    .hero-v2-inner { grid-template-columns: 1fr; }
    .hero-price-panel { max-width: 560px; }
}
@media (max-width: 860px) {
    .hero-v2 { padding: 48px 0 50px; }
    .hero-copy h1 { letter-spacing: -2px; }
    .section-head-row { align-items: flex-start; flex-direction: column; }
    .market-table-head { display: none; }
    .market-row-live { grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
    .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero-actions-left { flex-direction: column; align-items: stretch; }
    .ticker-main strong { font-size: 38px; }
    .panel-links { flex-direction: column; }
    .panel-links a { width: 100%; }
    .trust-strip { flex-direction: column; }
}

/* 82테더 v1.3 수정사항 */
body {
    font-family: "Noto Sans KR", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.logo {
    gap: 9px;
}
.header-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff4f5;
    color: #111827;
    border: 1px solid #ffe0e5;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.header-status .status-dot {
    display: inline-block;
    flex: 0 0 auto;
}
.hero-v2 {
    /* 메인 배경 이미지 경로: /assets/images/main-visual-bg.jpg */
    background-image:
        linear-gradient(135deg, rgba(249,251,255,.90) 0%, rgba(243,246,255,.86) 55%, rgba(255,248,237,.88) 100%),
        url('/assets/images/main-visual-bg.jpg'),
        radial-gradient(circle at 78% 18%, rgba(245,164,0,.20), transparent 24%),
        radial-gradient(circle at 16% 22%, rgba(47,92,255,.16), transparent 28%),
        linear-gradient(135deg, #f9fbff 0%, #f3f6ff 55%, #fff8ed 100%);
    background-size: cover, cover, auto, auto, cover;
    background-position: center, center, center, center, center;
    background-repeat: no-repeat;
}
.hero-copy h1 {
    font-size: clamp(25px, 3.3vw, 43px);
    line-height: 1.16;
    letter-spacing: -1.8px;
}
.hero-copy p {
    font-size: 16px;
}
@media (max-width: 860px) {
    .header-actions {
        align-items: center;
        gap: 8px;
    }
    .header-status {
        margin-right: auto;
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
    .hero-copy h1 {
        font-size: clamp(25px, 8vw, 36px);
        letter-spacing: -1.3px;
    }
}

/* 82테더 v1.4: Lenis 스무스 스크롤 + 메인/메뉴/시세보드 재디자인 */
:root {
    --mint: #0f766e;
    --mint-strong: #0b4f4a;
    --mint-soft: #e7f7f5;
    --dark: #0e1628;
    --text: #101828;
    --muted: #667085;
    --line: #e6ebf1;
    --bg: #f5f7fb;
    --warning: #ffb020;
    --shadow: 0 22px 60px rgba(14, 22, 40, .10);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--bg); font-family: "Noto Sans KR", "Noto Sans", system-ui, sans-serif; }
.site-main { background: linear-gradient(180deg, #f7f9fc 0%, #fff 42%, #f8fafc 100%); }
.site-header {
    background: linear-gradient(135deg, #0e1628 0%, #17233d 58%, #1d2b4a 100%);
    border-bottom: 0;
    box-shadow: 0 12px 35px rgba(14, 22, 40, .13);
    backdrop-filter: none;
}
.header-inner { height: 82px; gap: 22px; }
.logo { color: #fff; }
.logo-mark, .footer-mark { background: linear-gradient(135deg, var(--warning), #ff7a1a); color: #111827; box-shadow: 0 8px 20px rgba(255, 176, 32, .22); }
.logo-text small { color: rgba(255,255,255,.72); }
.logo-text strong { color: #fff; }
.gnb {
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}
.gnb a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    transition: background .2s ease, color .2s ease;
}
.gnb a:hover { background: rgba(255,255,255,.09); color: #fff; }
.gnb a.active { background: #fff; color: #0e1628; box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.header-actions .btn-dark { background: #fff; color: #0e1628; }
.header-actions .btn-line { background: var(--warning); color: #111827; border-color: transparent; }
.header-actions .btn-line:hover { color: #111827; border-color: transparent; box-shadow: 0 12px 28px rgba(255, 176, 32, .22); }
.header-status {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.16);
}
.status-dot { background: #ff365a; box-shadow: 0 0 0 5px rgba(255,54,90,.17); }
.mobile-menu-btn { background: var(--warning); color: #101828; font-weight: 900; }
.btn { border-radius: 999px; }
.btn-primary { background: linear-gradient(135deg, var(--warning), #ff7a1a); color: #111827; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-line { border-color: #d9e1ea; }
.page-label, .hero-label { background: rgba(15,118,110,.10); color: var(--mint-strong); }
.hero-v4 {
    position: relative;
    padding: 104px 0 92px;
    border-bottom: 0;
    background-image:
        linear-gradient(135deg, rgba(14,22,40,.86), rgba(15,118,110,.72)),
        url('/assets/images/main-visual-bg.jpg'),
        radial-gradient(circle at 15% 15%, rgba(255,176,32,.34), transparent 28%),
        linear-gradient(135deg, #0e1628 0%, #0f766e 100%);
    background-size: cover, cover, auto, cover;
    background-position: center, center, center, center;
    color: #fff;
}
.hero-v4:before {
    inset: auto -10% -190px -10%;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    opacity: .28;
}
.hero-v4:after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -130px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,176,32,.42), transparent 62%);
    filter: blur(2px);
}
.hero-v4-inner { grid-template-columns: minmax(0, .98fr) 450px; gap: 56px; }
.hero-copy h1 {
    color: #fff;
    font-size: clamp(28px, 3.35vw, 44px);
    line-height: 1.18;
    letter-spacing: -2px;
}
.hero-copy h1 span { color: #ffe0a3; }
.hero-copy p { color: rgba(255,255,255,.78); font-size: 16px; }
.hero-actions-left .btn-line { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}
.hero-mini-grid div {
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}
.hero-mini-grid b { display: block; color: #fff; font-size: 15px; }
.hero-mini-grid span { display: block; margin-top: 6px; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.45; }
.hero-terminal {
    position: relative;
    z-index: 2;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.hero-terminal:before {
    content: "";
    position: absolute;
    inset: -14px -14px auto auto;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--warning), #ff7a1a);
    opacity: .25;
    transform: rotate(10deg);
}
.terminal-top, .terminal-stack a, .market-tile-top, .market-tile-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.terminal-top span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff4d6;
    color: #9a5b00;
    font-weight: 900;
    font-size: 12px;
}
.terminal-top em { font-style: normal; color: var(--muted); font-weight: 800; font-size: 13px; }
.terminal-price {
    margin: 26px 0;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0e1628, #182846);
    color: #fff;
}
.terminal-price small { display: block; color: rgba(255,255,255,.66); font-weight: 800; }
.terminal-price strong { display: block; margin-top: 4px; font-size: 44px; letter-spacing: -2px; line-height: 1.05; }
.terminal-calc {
    background: #f7faf9;
    border-color: #deebe8;
}
.terminal-stack { display: grid; gap: 9px; margin-top: 16px; }
.terminal-stack a {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 15px;
    background: #f5f7fb;
    border: 1px solid #e7ebf2;
    font-weight: 900;
}
.terminal-stack a span { color: var(--mint); }
.service-section-v4 { padding: 78px 0 42px; background: #fff; }
.v4-head-row { max-width: none; }
.service-cards-v4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service-card-v4 {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease;
}
.service-card-v4:hover { transform: translateY(-4px); border-color: rgba(15,118,110,.35); }
.service-card-v4:after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -64px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(15,118,110,.10);
}
.service-card-v4 span { color: var(--warning); font-weight: 900; letter-spacing: .8px; }
.service-card-v4 h3 { margin: 18px 0 10px; font-size: 25px; letter-spacing: -1px; }
.service-card-v4 p { margin: 0; color: var(--muted); }
.coin-section-v4 { padding: 78px 0; background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
.v4-live-pill {
    background: #0e1628;
    color: #fff;
    border-color: #0e1628;
    box-shadow: 0 12px 28px rgba(14,22,40,.16);
}
.v4-live-pill:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 5px rgba(34,197,94,.14); }
.market-board-v4 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.market-tile-v4 {
    position: relative;
    overflow: hidden;
    min-height: 238px;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e5ebf1;
    box-shadow: 0 16px 42px rgba(14,22,40,.07);
}
.market-tile-v4:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--mint), var(--warning));
}
.market-tile-top { align-items: flex-start; }
.market-tile-price {
    margin-top: 32px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -1.4px;
    font-weight: 900;
}
.market-tile-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px dashed #d8e0e8;
    color: var(--muted);
    font-size: 13px;
}
.market-tile-bottom strong { color: var(--text); font-size: 14px; }
.coin-icon { box-shadow: 0 10px 22px rgba(14,22,40,.16); }
.coin-icon.usdt { background: #26a17b; }
.coin-icon.btc { background: linear-gradient(135deg, #ffb020, #ff7a1a); }
.coin-icon.eth { background: linear-gradient(135deg, #8da2fb, #5167d6); }
.coin-icon.xrp { background: #0e1628; }
.coin-icon.trx { background: linear-gradient(135deg, #ff4d5f, #c41230); }
.change.up, .change.down {
    min-width: 78px;
    display: inline-flex;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.change.up { color: #dc2626; background: #fee2e2; }
.change.down { color: #0369a1; background: #e0f2fe; }
.fee-section-v4 { padding: 76px 0; background: #f6f8fb; }
.fee-panel-v4 {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: center;
    padding: 42px;
    border-radius: 32px;
    background: linear-gradient(135deg, #0e1628, #16313b);
    color: #fff;
    box-shadow: var(--shadow);
}
.fee-copy-v4 h2 { margin: 14px 0 12px; font-size: 32px; line-height: 1.22; letter-spacing: -1.3px; }
.fee-copy-v4 p { color: rgba(255,255,255,.68); margin: 0; }
.fee-band-list-v4 { display: grid; gap: 10px; }
.fee-band-list-v4 div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    padding: 0 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}
.fee-band-list-v4 span { color: rgba(255,255,255,.75); font-weight: 800; }
.fee-band-list-v4 strong { color: #ffe0a3; font-size: 20px; }
.route-section-v4 { padding: 82px 0; background: #fff; }
.route-line-v4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.route-item-v4 {
    position: relative;
    padding: 28px 24px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.route-item-v4 b {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--dark);
    color: #fff;
}
.route-item-v4 h3 { margin: 20px 0 8px; font-size: 20px; }
.route-item-v4 p { margin: 0; color: var(--muted); }
.safety-section-v4 { padding: 52px 0 96px; background: linear-gradient(180deg, #fff, #f8fafc); }
.safety-card-v4 {
    background: #fff;
    border-radius: 32px;
    border: 1px solid var(--line);
}
.safety-card-v4 h2 { color: var(--text); }
.safety-visual-v4 { background: linear-gradient(135deg, #fff7df, #eefaf8); color: var(--mint-strong); }
.float-top { background: var(--warning); color: #111827; }
.float-talk { background: #ffdf37; color: #261b00; }
.float-insta { background: linear-gradient(135deg,#ff5f6d,#ffc371); color: #fff; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-brand small { color: var(--mint); }
@media (max-width: 1180px) {
    .market-board-v4 { grid-template-columns: repeat(3, 1fr); }
    .hero-v4-inner { grid-template-columns: 1fr; }
    .hero-terminal { max-width: 560px; }
}
@media (max-width: 1080px) {
    .gnb { gap: 4px; }
    .gnb a { padding: 0 12px; font-size: 13px; }
    .header-inner { gap: 12px; }
}
@media (max-width: 860px) {
    .site-header { background: #0e1628; }
    .header-inner { min-height: 72px; }
    .gnb {
        order: 4;
        width: 100%;
        border-radius: 18px;
        background: rgba(255,255,255,.07);
        padding: 8px;
    }
    .gnb a { justify-content: flex-start; border-bottom: 0; color: #fff; padding: 10px 14px; }
    .gnb a.active { color: #0e1628; }
    .header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .header-status { margin-right: 0; }
    .hero-v4 { padding: 58px 0 62px; }
    .hero-mini-grid, .service-cards-v4, .fee-panel-v4, .route-line-v4 { grid-template-columns: 1fr; }
    .market-board-v4 { grid-template-columns: repeat(2, 1fr); }
    .fee-panel-v4 { padding: 28px; }
    .terminal-price strong { font-size: 38px; }
}
@media (max-width: 560px) {
    .hero-copy h1 { font-size: clamp(27px, 8vw, 34px); }
    .hero-terminal { padding: 20px; border-radius: 24px; }
    .hero-mini-grid { gap: 9px; }
    .market-board-v4 { grid-template-columns: 1fr; }
    .market-tile-v4 { min-height: 205px; }
    .market-tile-price { margin-top: 24px; }
    .service-card-v4 { min-height: auto; }
}

/* 82테더 v1.5: 메인 컬러 #519fed 적용 */
:root {
    --mint: #519fed;
    --mint-strong: #2f78d6;
    --mint-soft: #eaf4ff;
    --dark: #12243d;
    --text: #101828;
    --muted: #667085;
    --line: #dfeafa;
    --bg: #f5f9ff;
    --warning: #9fd0ff;
    --shadow: 0 22px 60px rgba(81, 159, 237, .13);
}
body { background: var(--bg); }
.site-main { background: linear-gradient(180deg, #f5f9ff 0%, #fff 42%, #f7fbff 100%); }
.site-header {
    background: linear-gradient(135deg, #174a84 0%, #2f78d6 54%, #519fed 100%);
    box-shadow: 0 12px 35px rgba(81, 159, 237, .22);
}
.logo-mark, .footer-mark {
    background: linear-gradient(135deg, #519fed, #2f78d6);
    color: #fff;
    box-shadow: 0 8px 20px rgba(81, 159, 237, .28);
}
.gnb {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.12);
}
.gnb a:hover { background: rgba(255,255,255,.14); color: #fff; }
.gnb a.active { color: #174a84; }
.header-actions .btn-dark { background: #fff; color: #174a84; }
.header-actions .btn-line {
    background: #eaf4ff;
    color: #174a84;
    border-color: rgba(255,255,255,.55);
}
.header-actions .btn-line:hover {
    color: #174a84;
    box-shadow: 0 12px 28px rgba(234, 244, 255, .25);
}
.header-status { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.mobile-menu-btn { background: #eaf4ff; color: #174a84; }
.btn-primary {
    background: linear-gradient(135deg, #519fed, #2f78d6);
    color: #fff;
    box-shadow: 0 12px 28px rgba(81,159,237,.22);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(81,159,237,.28); }
.btn-line:hover { border-color: #519fed; color: #2f78d6; }
.page-label, .hero-label { background: rgba(81,159,237,.13); color: #2f78d6; }
.hero-copy h1 span { color: #d9ecff; }
.hero-v4 {
    background-image:
        linear-gradient(135deg, rgba(18,36,61,.88), rgba(81,159,237,.76)),
        url('/assets/images/main-visual-bg.jpg'),
        radial-gradient(circle at 15% 15%, rgba(159,208,255,.28), transparent 28%),
        linear-gradient(135deg, #12243d 0%, #519fed 100%);
}
.hero-v4:after {
    background: radial-gradient(circle, rgba(159,208,255,.42), transparent 62%);
}
.hero-terminal:before {
    background: linear-gradient(135deg, #519fed, #9fd0ff);
}
.terminal-top span { background: #eaf4ff; color: #2f78d6; }
.terminal-price { background: linear-gradient(135deg, #12243d, #255f9e); }
.quick-result strong, .terminal-stack a span { color: #2f78d6; }
.terminal-calc { background: #f4f9ff; border-color: #d8eaff; }
.service-card-v4:hover { border-color: rgba(81,159,237,.38); }
.service-card-v4:after { background: rgba(81,159,237,.10); }
.service-card-v4 span { color: #2f78d6; }
.coin-section-v4 { background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%); }
.v4-live-pill {
    background: #174a84;
    border-color: #174a84;
    box-shadow: 0 12px 28px rgba(81,159,237,.18);
}
.market-tile-v4:before { background: linear-gradient(90deg, #519fed, #9fd0ff); }
.market-tile-v4 { box-shadow: 0 16px 42px rgba(81,159,237,.10); }
.coin-icon.usdt { background: linear-gradient(135deg, #519fed, #2f78d6); }
.fee-section-v4 { background: #f5f9ff; }
.fee-panel-v4 { background: linear-gradient(135deg, #12243d, #255f9e); }
.fee-band-list-v4 strong { color: #d9ecff; }
.route-item-v4 { background: #f8fbff; }
.route-item-v4 b { background: linear-gradient(135deg, #519fed, #2f78d6); }
.safety-section-v4 { background: linear-gradient(180deg, #fff, #f5f9ff); }
.safety-visual-v4 { background: linear-gradient(135deg, #eaf4ff, #f8fbff); color: #2f78d6; }
.safety-visual-v4 img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
}

.feature { border-color: #dfeafa; }
.float-top { background: #519fed; color: #fff; }
.float-talk { background: #d9ecff; color: #174a84; }
.float-insta { background: linear-gradient(135deg,#519fed,#8bc7ff); color: #fff; }
.input:focus, .textarea:focus, .select:focus {
    border-color: #519fed;
    box-shadow: 0 0 0 4px rgba(81,159,237,.13);
}
.check-row input[type="checkbox"] { accent-color: #519fed; }
.filter-tabs a.active { background: #519fed; color: #fff; }
.badge-mint { background: #eaf4ff; color: #2f78d6; }
.flash-success, .flash-info { border-color: rgba(81,159,237,.25); background: #eaf4ff; color: #2f78d6; }
.footer-brand small { color: #519fed; }
.mini-contact.kakao { border-color: #9fd0ff; color: #174a84; background: #f4f9ff; }
.mini-contact.instagram { border-color: #9fd0ff; color: #2f78d6; background: #f4f9ff; }
.auth-page { background: linear-gradient(135deg, #f7fbff, #eaf4ff); }
.password-toggle { background: #eaf4ff; color: #2f78d6; }
.password-toggle.is-active { background: #519fed; color: #fff; }
@media (max-width: 860px) {
    .site-header { background: linear-gradient(135deg, #174a84, #2f78d6); }
    .gnb a.active { color: #174a84; }
}


/* 82테더 v1.6: SNS 이미지 버튼, 코인보드 재구성, 모바일 상시 메뉴 */
.hero-terminal:before {
    content: none !important;
    display: none !important;
}

.footer-badges {
    align-items: center;
}
.sns-img-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dceafe;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(81, 159, 237, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.sns-img-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(81, 159, 237, .18);
}
.sns-img-link img,
.float-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.float-image {
    padding: 0;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid rgba(81, 159, 237, .16);
}
.float-image img {
    object-fit: cover;
}

.safety-section-v4 .container {
    max-width: 1240px;
}
.safety-card-v4 {
    width: 100%;
    min-height: 330px;
}

.market-board-v4 {
    align-items: stretch;
}
.market-tile-v4 {
    min-height: 282px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 26px 20px 22px;
}
.market-tile-v4:before {
    background: linear-gradient(90deg, #519fed, #8fc4f7);
}
.market-coin-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.market-coin-stack .coin-icon {
    width: 58px;
    height: 58px;
    font-size: 20px;
    margin-bottom: 4px;
}
.market-coin-name {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -.4px;
    color: var(--text);
}
.market-coin-symbol {
    display: block;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: .08em;
}
.market-coin-stack .change {
    margin-top: 4px;
    min-width: auto;
}
.market-tile-price {
    margin-top: 22px;
    font-size: 25px;
}
.market-tile-bottom {
    margin-top: auto;
    display: grid;
    justify-items: center;
    gap: 6px;
}

@media (max-width: 860px) {
    .site-header {
        background: linear-gradient(135deg, #174a84, #519fed) !important;
    }
    .header-inner {
        height: auto;
        min-height: 72px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px 10px;
        padding: 12px 16px 14px;
    }
    .logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
    .logo-mark {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
    .logo-text small {
        font-size: 10px;
    }
    .logo-text strong {
        font-size: 18px;
    }
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 0;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 5px;
    }
    .header-status {
        min-height: 32px;
        padding: 0 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    .status-dot {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 4px rgba(255,54,90,.14);
    }
    .header-actions .btn {
        min-height: 32px;
        padding: 0 8px;
        font-size: 11px;
        letter-spacing: -.2px;
        white-space: nowrap;
    }
    .mobile-menu-btn {
        display: none !important;
    }
    .gnb,
    .gnb.open {
        grid-column: 1 / -1;
        grid-row: 2;
        order: initial;
        width: 100%;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 7px;
        border-radius: 18px;
        background: rgba(255,255,255,.13);
        border: 1px solid rgba(255,255,255,.18);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gnb::-webkit-scrollbar {
        display: none;
    }
    .gnb a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 12px;
        border: 0;
        border-radius: 999px;
        color: rgba(255,255,255,.86);
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }
    .gnb a.active {
        background: #fff;
        color: #174a84;
    }
    .gnb a.nav-home {
        display: none;
    }
    .market-tile-v4 {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .header-actions .btn-line {
        display: none;
    }
    .header-actions .btn-dark {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-status {
        max-width: 72px;
    }
    .market-coin-stack .coin-icon {
        width: 54px;
        height: 54px;
    }
    .floating-links {
        right: 10px;
        bottom: 10px;
    }
    .float-link {
        width: 44px;
        height: 44px;
    }
}

/* v1.9 updates: centered text popup, fee/status controls, comma inputs */
.market-tile-v4 .market-tile-bottom,
.market-tile-bottom {
    margin-top: 35px;
}

.popup-layer {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 36px));
    max-height: calc(100vh - 52px);
    overflow: auto;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(17, 24, 39, .28);
}
.popup-close {
    position: sticky;
    top: 10px;
    float: right;
    z-index: 3;
    width: 34px;
    height: 34px;
    margin: 12px 12px 0 0;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.popup-content-body {
    padding: 30px;
}
.popup-title {
    display: block;
    margin: 0 44px 18px 0;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -1px;
    color: var(--text);
}
.popup-editor-content {
    color: #344054;
    line-height: 1.75;
    word-break: keep-all;
}
.popup-editor-content img {
    max-width: 100%;
    height: auto;
}
.popup-editor-content p:first-child { margin-top: 0; }
.popup-editor-content p:last-child { margin-bottom: 0; }
.popup-link-btn { margin-top: 22px; }
.smart-editor-textarea {
    min-height: 360px;
}
.status-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #2f78d6;
    font-weight: 900;
}
.header-status.status-open .status-dot,
.status-preview.status-open .status-dot { background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.16); }
.header-status.status-busy .status-dot,
.status-preview.status-busy .status-dot { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.16); }
.header-status.status-closed .status-dot,
.header-status.status-holiday .status-dot,
.status-preview.status-closed .status-dot,
.status-preview.status-holiday .status-dot { background: #94a3b8; box-shadow: 0 0 0 5px rgba(148,163,184,.16); }
.header-status.status-custom .status-dot,
.status-preview.status-custom .status-dot { background: #519fed; box-shadow: 0 0 0 5px rgba(81,159,237,.16); }
.delete-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 800;
    color: #ef4444;
}
.fee-admin-table .input,
.fee-admin-table .select {
    min-width: 120px;
}
@media (max-width: 560px) {
    .popup-content-body { padding: 24px 20px; }
    .popup-title { font-size: 20px; }
}

/* v1.11 안전 거래 이미지 박스 전체 채움 */
.safety-visual-v4 {
    padding: 0 !important;
    overflow: hidden;
    align-self: stretch;
    min-height: 100%;
}
.safety-visual-v4 img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100%;
    display: block;
    object-fit: cover !important;
    border-radius: inherit;
}
@media (max-width: 768px) {
    .safety-visual-v4 {
        min-height: 240px;
    }
}


/* v1.12 SEO/copy polish and market board spacing */
.market-tile-v4 .market-tile-bottom,
.market-tile-bottom {
    margin-top: 40px;
    padding-top: 23px;
}
.fee-copy-v4 .page-label,
.route-section-v4 .page-label {
    letter-spacing: -.2px;
}

/* v1.13 label visibility improvement */
.hero-v4 .hero-label {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 10px 26px rgba(18,36,61,.16);
    text-shadow: 0 1px 10px rgba(0,0,0,.18);
}
.fee-copy-v4 .page-label {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
    text-shadow: 0 1px 10px rgba(0,0,0,.18);
}

/* 82테더 v1.14: 회원 탈퇴 관리 및 푸터 링크 */
.footer-utility {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -14px 0 24px;
    font-size: 13px;
}
.footer-utility a {
    color: #667085;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.footer-utility a:hover { color: #2f78d6; }

.withdrawal-wrap { max-width: 760px; }
.withdrawal-card { margin: 0 auto; }
.withdrawal-card h2 { margin: 12px 0 10px; font-size: 28px; }
.withdrawal-notice {
    margin: 18px 0 26px;
    padding: 18px 20px;
    border: 1px solid #dfeafa;
    border-radius: 16px;
    background: #f7fbff;
    color: #475467;
}
.withdrawal-notice p { margin: 5px 0; }
.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}
.admin-card-head h3 { margin: 0 0 5px; }
.admin-stat-link { color: inherit; transition: transform .18s ease, border-color .18s ease; }
.admin-stat-link:hover { transform: translateY(-2px); border-color: #9fd0ff; }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.withdrawal-action-form { min-width: 260px; }
.withdrawal-action-form .input { margin-bottom: 8px; }
.withdrawal-action-buttons { display: flex; gap: 7px; flex-wrap: wrap; }
.withdrawal-reason-cell { min-width: 220px; max-width: 360px; line-height: 1.65; }
.admin-memo-text { margin: 7px 0 0; color: #667085; font-size: 12px; }
.muted { color: #98a2b3; }

@media (max-width: 700px) {
    .admin-card-head { flex-direction: column; }
    .withdrawal-card h2 { font-size: 24px; }
}

/* v1.17 이용약관·개인정보 처리방침 중앙 모달 */
html.policy-modal-open,
body.policy-modal-open {
    overflow: hidden !important;
}
.policy-modal[hidden] {
    display: none !important;
}
.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.policy-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.policy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 23, 43, .66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.policy-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(82vh, 820px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(81, 159, 237, .24);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(12, 35, 66, .30);
    transform: translateY(18px) scale(.985);
    transition: transform .22s ease;
}
.policy-modal.is-open .policy-modal-dialog {
    transform: translateY(0) scale(1);
}
.policy-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #e6eef8;
    background: linear-gradient(135deg, #f7fbff 0%, #edf6ff 100%);
}
.policy-modal-label {
    display: block;
    margin-bottom: 6px;
    color: #2f78d6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.policy-modal-head h2 {
    margin: 0;
    color: #12243d;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -.7px;
}
.policy-modal-close {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e7f7;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.policy-modal-close:hover {
    background: #519fed;
    color: #fff;
    transform: rotate(4deg);
}
.policy-modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 30px;
    color: #475467;
    font-size: 14px;
    line-height: 1.8;
}
.policy-modal-body section + section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px dashed #dbe8f7;
}
.policy-modal-body h3 {
    margin: 0 0 9px;
    color: #182230;
    font-size: 16px;
    line-height: 1.45;
}
.policy-modal-body p,
.policy-modal-body ul,
.policy-modal-body ol {
    margin: 0;
}
.policy-modal-body ul,
.policy-modal-body ol {
    padding-left: 20px;
}
.policy-modal-body li + li {
    margin-top: 5px;
}
.policy-modal-foot {
    display: flex;
    justify-content: flex-end;
    padding: 16px 26px 20px;
    border-top: 1px solid #e6eef8;
    background: #fff;
}
.policy-modal-foot .btn {
    min-width: 110px;
}
.check-row button.btn {
    flex: 0 0 auto;
    cursor: pointer;
}
@media (max-width: 560px) {
    .policy-modal {
        padding: 14px;
    }
    .policy-modal-dialog {
        max-height: 88vh;
        border-radius: 20px;
    }
    .policy-modal-head {
        padding: 20px 20px 16px;
    }
    .policy-modal-head h2 {
        font-size: 22px;
    }
    .policy-modal-body {
        padding: 20px;
        font-size: 13px;
    }
    .policy-modal-foot {
        padding: 14px 20px 18px;
    }
    .policy-modal-foot .btn {
        width: 100%;
    }
}
