/* -------- 공통 기본 설정 -------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #080a0f; /* 딥 다크 네이비/블랙 느낌 */
    color: #aab0c6; /* 연한 그레이/블루 톤 텍스트 */
}
button { cursor: pointer; }

/* -------- 인증(로그인, 회원가입) 화면 스타일 -------- */
.auth-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #080a0f; 
}

/* 상단 로고 이미지 스타일 */
.main-big-logo {
    max-width: 400px;
    margin-bottom: 20px;
    display: block;
}

.auth-container {
    background: #13151b; /* 박스 배경 (다크 톤) */
    width: 600px; 
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid #23252f; /* 첨부된 이미지의 얇은 다크 라인 */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-form-horizontal {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.auth-form-horizontal .input-group {
    flex: 1;
    margin-bottom: 0;
}

.auth-btn-group {
    display: flex;
    gap: 10px;
}

.auth-btn-group button {
    flex: 1;
    height: 48px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-new {
    background-color: #2c2f3f; /* 어두운 회색 버튼 느낌 */
    border: none;
    color: #fff;
}
.btn-primary-new:hover { background-color: #3b3f54; }

.btn-secondary-new {
    background-color: transparent;
    border: 1px solid #2c2f3f;
    color: #aab0c6;
}
.btn-secondary-new:hover { background-color: rgba(44, 47, 63, 0.3); }

.logo-container {
    margin-bottom: 25px;
}
.logo { max-width: 150px; }

.auth-container h2 {
    color: #e5e5e5;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #23252f;
    border-radius: 5px;
    background-color: #0d0f14;
    color: #fff;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #4a4d65;
}

/* 회원가입 IP나 특정 인풋 */
.auth-container input[disabled] {
    background-color: #0b0d11;
    color: #555;
    cursor: not-allowed;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #2c2f3f;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 10px;
    transition: 0.3s;
}
.btn-primary:hover { background-color: #3b3f54; }

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid #2c2f3f;
    border-radius: 5px;
    color: #aab0c6;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}
.btn-secondary:hover { background-color: rgba(44,47,63,0.3); }

.admin-link-wrapper {
    margin-top: 20px;
    text-align: right;
}

.btn-text {
    background: none;
    border: none;
    color: #aab0c6;
    text-decoration: underline;
    font-size: 13px;
}
.btn-text.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    font-size: 15px;
}

.radio-group label {
    font-size: 14px;
}

/* -------- 관리자 페이지 -------- */
.admin-body {
    padding: 30px;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}
.table-container {
    overflow-x: auto;
}
.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #13151b;
    text-align: left;
}
.styled-table thead tr {
    background-color: #0b0d11;
    color: #aab0c6;
    text-align: left;
}
.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #333;
}
.styled-table tbody tr:nth-of-type(even) {
    background-color: #0b0d11;
}
.styled-table tbody tr:hover {
    background-color: #161821;
}

/* 승인 토글(스위치) 버튼 */
.toggle-switch {
    position: relative;
    width: 40px; height: 20px;
}
.toggle-switch input { display: none; }
.toggle-switch label {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #444; border-radius: 20px;
    transition: .4s;
}
.toggle-switch label:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background-color: white; border-radius: 50%;
    transition: .4s;
}
.toggle-switch input:checked + label { background-color: #b8860b; }
.toggle-switch input:checked + label:before { transform: translateX(20px); }

/* 저장 버튼 */
.btn-save {
    padding: 6px 12px;
    background: #007bff;
    border: none; border-radius: 4px;
    color: white; font-weight: bold;
}
.btn-save:hover { background: #0056b3; }

/* -------- 메인 대시보드 (index.html) -------- */
.dashboard-container {
    padding: 10px;
    opacity: 0; 
    transition: opacity 0.5s ease;
}

/* 상단 헤더 */
/* 대시보드 페이지 배경 (로그인/관리자 페이지엔 영향 없음) */
.dashboard-body { background-color: #07131f; }

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #07131f;
    padding: 12px 15px;
    border: none;
    margin-bottom: 15px;
}
.dashboard-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.header-row1-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header-row1-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard-header-row2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
}
.header-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #0b1827;
    border: 1px solid #26344a;
    border-radius: 8px;
    min-width: 0;
}
.header-section .hs-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}
.header-section .hs-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}
.header-section .coin-name {
    font-size: 12px;
    color: #a1a7bb;
    white-space: nowrap;
}
.header-section .hs-priceline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}
.header-section .price {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}
.header-section .change {
    font-size: 12px;
}
.header-setting-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #0b1827;
    border: 1px solid #26344a;
    color: #cfd3e0;
    border-radius: 14px;        /* 🟢실시간 배지와 동일 크기/모양 */
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
    align-self: center;          /* 그리드 stretch 안 받고 배지처럼 콤팩트 높이 */
}
.header-setting-btn:hover { background: #122236; }

/* ── 모바일/태블릿: 티커 줄(2행)이 겹치지 않도록 가로 스크롤 (한 줄 유지, 스와이프).
   1행(계정/상태/조작)은 컨트롤 개수가 적어 그냥 줄바꿈만 허용. ── */
@media (max-width: 1024px) {
    .dashboard-header-row2 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }
    .dashboard-header-row2 > .header-section { flex: 0 0 auto; min-width: 158px; }
    .dashboard-header-row2::-webkit-scrollbar { height: 5px; }
    .dashboard-header-row2::-webkit-scrollbar-thumb { background: #2a3a52; border-radius: 4px; }
    .dashboard-header-row2::-webkit-scrollbar-track { background: transparent; }
    .header-row1-right > .header-setting-btn { flex: 0 0 auto; min-width: auto; padding: 6px 12px; }
}
.market-index-box {
    text-align: center;
}

/* 메인 바디 구조 */
.main-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 중앙 데이터 영역 */
.content-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}
.net-buy-section { display: flex; gap: 10px; }

/* 순매수 테이블 스크롤 컨테이너 */
.table-scroll-container {
    margin-top: 10px;
    padding-right: 5px; /* 스크롤바와 내용 여백 */
    overflow-x: auto;
}

/* 얇은 다크테마 스크롤바 적용 */
.table-scroll-container::-webkit-scrollbar { width: 6px; }
.table-scroll-container::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.table-scroll-container::-webkit-scrollbar-track { background: transparent; }

.net-buy-table th {
    font-size: 16px;
    color: #ffffff;
    font-weight: 800;
    border-bottom: 1px solid #1e2d42;
    padding-bottom: 8px;
    /* 스크롤 시 헤더 고정 */
    position: sticky;
    top: 0;
    background-color: #0e1a2b;
    z-index: 1;
}
.net-buy-table td {
    font-size: 16px;
    color: #ffffff;
    border-bottom: 1px solid #182434;
    padding: 10px 8px;
}
/* 차익표 글자 두께는 각 셀 인라인 style 로 제어(Base/From/To/Amount=400, PER=bold). 2026-06-17
   (예전 .net-buy-table td 800 !important 강제 제거 → 인라인 두께가 살아남) */
.half-box {
    flex: 1;
    background: #13151b;
    padding: 15px;
    border: 1px solid #23252f;
}
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid #333; }

.arbitrage-section { display: flex; gap: 10px; }
.arb-box {
    background: #0e1a2b;
    padding: 15px;
    border: none;
    border-top: 2px solid #1e2d42;
    border-radius: 6px;
    min-height: 100px;
    width: 100%;
}
.full-width { flex: 1; }

.strategy-section { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.strat-box {
    background: #13151b; padding: 15px; border: 1px solid #23252f; min-height: 150px; border-radius: 6px;
}
.strat-box h4 {
    margin: 0 0 10px 0;
    color: #e0e3ef;
    font-size: 14px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #23252f;
}
.strat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #ccc;
    text-align: left;
}
.strat-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #2a2a2a;
    display: flex;
    justify-content: space-between;
}

/* 주요 코인 가격 변동 색상 및 스타일 */
/* 가격 숫자는 항상 흰색, 등락(▲▼%)만 초록/빨강 */
.price-up .change { color: #00d665 !important; font-weight: bold; }
.price-down .change { color: #f6465d !important; font-weight: bold; }
.price-even .change { color: #aab0c6 !important; font-weight: bold; }

.state-weak { color: #0051c7; font-weight: bold; }    /* 파란색 (약세) */
.state-neutral { color: #f1f1f1; font-weight: bold; } /* 흰/회색 (보합) */
.state-strong { color: #d60000; font-weight: bold; }  /* 빨간색 (강세) */

.major-coins-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 14px;
}

/* 테이블의 테두리 없애기 (기존 table { border-bottom... } 스타일과의 충돌 방지) */
.major-coins-table th, .major-coins-table td {
    padding: 6px 0;
    border: none;
    vertical-align: middle;
}

.major-coins-table .coin-name {
    text-align: left;
    width: 30%;
    font-weight: bold;
}

.major-coins-table .price {
    text-align: right;
    width: 45%;
    font-weight: bold;
}

.major-coins-table .change {
    text-align: right;
    width: 25%;
    font-size: 13px;
}

.symbol {
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 5px;
    font-weight: normal;
    font-size: 16px;
}

/* 가격 등락 다크 전용 색상 */
.color-up { color: #00d665 !important; }
.color-down { color: #f6465d !important; }

/* 코인별 심볼 전용 색상 (어두운 배경에 맞게 조정) */
.btc-color { color: #f7931a; }
.eth-color { color: #627eea; }
.xrp-color { color: #ffffff; }

/* ===== 연결 상태 배지 (대시보드 데이터 신선도) ===== */
.conn-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 14px;
    white-space: nowrap; border: 1px solid transparent;
    align-self: center;          /* 헤더 그리드에서 stretch 안 받고 콤팩트 높이 */
}
.conn-init  { background:#2a2f3a; color:#aab; border-color:#3a4150; }
.conn-green { background:rgba(34,197,94,0.15);  color:#22c55e; border-color:rgba(34,197,94,0.4); }
.conn-yellow{ background:rgba(234,179,8,0.15);  color:#eab308; border-color:rgba(234,179,8,0.45); }
.conn-red   { background:rgba(239,68,68,0.18);  color:#ef4444; border-color:rgba(239,68,68,0.5);
              animation: connBlink 1.2s ease-in-out infinite; }
@keyframes connBlink { 0%,100%{opacity:1;} 50%{opacity:0.55;} }

.conn-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    background:#16331f; color:#22c55e; border:1px solid rgba(34,197,94,0.5);
    padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 700;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.conn-toast.show { opacity: 1; }

.header-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    align-self: center;
}
.header-controls-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hotwallet-btn-full {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}
@media (max-width: 1024px) {
    .dashboard-header > .header-controls { flex: 0 0 auto; }
}

/* ===== 관리자 페이지 카드형 리디자인 (2026-08) ===== */
.admin-body { background: #0a0c10; }

.admin-topbar-new {
    display: flex; justify-content: space-between; align-items: center;
    background: #12151c; border: 1px solid #232735; border-radius: 14px;
    padding: 16px 22px; margin: 0 auto 20px; width: 90%; max-width: 1200px;
}
.admin-topbar-new .tb-left { display: flex; align-items: center; gap: 14px; }
.admin-topbar-new .tb-icon {
    width: 42px; height: 42px; border-radius: 12px; background: #1c212e;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.admin-topbar-new h2 { margin: 0; font-size: 18px; color: #fff; }
.admin-topbar-new .tb-sub { font-size: 12px; color: #8a92a6; margin-top: 2px; }
.admin-topbar-new .tb-right { display: flex; gap: 10px; }

.btn-pill {
    padding: 9px 18px; border-radius: 9px; border: none;
    font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-pill-green { background: #22c55e; color: #08240f; }
.btn-pill-gold  { background: #b8860b; color: #1a1200; }
.btn-pill-dark  { background: #1c212e; color: #cfd3e0; border: 1px solid #2a3040; }

.admin-card {
    background: #12151c; border: 1px solid #232735; border-radius: 14px;
    padding: 20px 22px; margin: 20px auto; width: 90%; max-width: 1200px;
}
.admin-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.admin-card-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.icon-gear   { background: rgba(184,134,11,0.15); color: #ffda75; }
.icon-refresh{ background: rgba(75,108,183,0.18); color: #82aaff; }
.icon-block  { background: rgba(255,68,68,0.15); color: #ff8080; }
.icon-users  { background: rgba(58,110,165,0.18); color: #7fb3ff; }
.admin-card-title-wrap h3 { margin: 0; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 8px; }
.admin-card-title-wrap p { margin: 3px 0 0; font-size: 12.5px; color: #8a92a6; }
.admin-badge-pill {
    font-size: 11px; background: #1f2430; color: #9aa4b8;
    padding: 3px 10px; border-radius: 20px; font-weight: 700;
}
.admin-count-badge {
    font-size: 12px; background: #1f2430; color: #ffda75;
    padding: 3px 10px; border-radius: 20px; font-weight: 700; margin-left: 8px;
}

.admin-card .table-container { margin-top: 14px; }
.admin-card .styled-table {
    border-radius: 10px; overflow: hidden; background: #0e1016;
}
.admin-card .styled-table th, .admin-card .styled-table td { border: 1px solid #1e222c; }
.admin-card .styled-table thead tr { background: #0a0c11; }

.exchange-grid label {
    background: #171b25; border: 1px solid #2a3040; border-radius: 8px;
    padding: 7px 12px !important; margin: 0;
}

.usage-actions-row { display: flex; gap: 4px; justify-content: center; }
.usage-actions-row button, .usage-actions-row input {
    border-radius: 6px !important;
}

/* ===== 리디자인 미세조정 (2026-08 v2) ===== */
.admin-card .styled-table th,
.admin-card .styled-table td {
    white-space: nowrap;
}
.admin-card .styled-table td:last-child {
    white-space: normal; /* 메모 칸은 줄바꿈 허용 */
}
.admin-card-title-wrap h3 { white-space: nowrap; }
.usage-actions-row input[type="number"] { width: 55px; min-width: 55px; }
.usage-actions-row button { white-space: nowrap; padding: 4px 8px !important; }

/* 표 컴팩트화 (스크롤 없이 한 화면에 들어오도록) */
.admin-card .styled-table th,
.admin-card .styled-table td {
    padding: 8px 10px;
    font-size: 13px;
}


/* ==========================================================
   ARBIGO LOGIN UI
   ========================================================== */

.arbigo-login-page {
    min-height: 100vh;
    height: auto;
    display: block;
    overflow-x: hidden;
    position: relative;
    /* 이 요소는 height:auto라 콘텐츠 높이 기준으로 배경을 cover 계산하면 과도하게
       확대되므로, 실제 이미지는 뷰포트 크기에 고정된 별도 레이어(::after)로 분리
       했다. 이 요소 자체는 이미지 아래로 스크롤되는 부분을 위한 단색 폴백만 가진다. */
    background: #05070d;
    color: #eef3ff;
}

.arbigo-login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    /* 이번 이미지는 원본 자체가 이미 어두워서 이전(0.55)보다 옅은 오버레이(0.35)만 */
    background:
        linear-gradient(rgba(5,8,15,.35), rgba(5,8,15,.35)),
        url("../img/brand/login-bg.png?v=2") center top / cover no-repeat;
}

.arbigo-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .17;
    background-image:
        linear-gradient(rgba(78,118,205,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78,118,205,.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent);
}

.arbigo-bg-grid {
    position: fixed;
    left: 0;
    right: 0;
    top: 180px;
    height: 360px;
    pointer-events: none;
    opacity: .15;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 46px,
            rgba(86,130,255,.10) 47px,
            transparent 48px
        );
}

.arbigo-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: .12;
}

.arbigo-glow-left {
    left: -240px;
    top: 220px;
    background: #1266ff;
}

.arbigo-glow-right {
    right: -250px;
    top: 300px;
    background: #6a3cff;
}


/* 메인 */

.arbigo-login-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 36px;
    position: relative;
    z-index: 2;
}


/* 브랜드 */

.arbigo-brand {
    text-align: center;
    margin-bottom: 20px;
}

/* 업로드된 ABION 로고 이미지(마크+워드마크 통합) — 배경을 투명 처리해서 페이지 배경과
   자연스럽게 섞이게 만들었다(원본 스크린샷의 진한 남색 배경은 실제 로그인 페이지
   배경색과 달라서 그대로 쓰면 사각형 경계가 보였음). */
.arbigo-brand-logo {
    display: block;
    width: 240px;
    height: auto;
    margin: 0 auto 8px;
}

.arbigo-logo-mark {
    width: 62px;
    height: 52px;
    margin: 0 auto 8px;
    position: relative;
}

.arbigo-logo-mark::before,
.arbigo-logo-mark::after {
    content: "";
    position: absolute;
    top: 0;
    width: 17px;
    height: 50px;
    border-radius: 4px;
    background: linear-gradient(
        180deg,
        #73a2ff 0%,
        #3f72ff 48%,
        #6853f4 100%
    );
    box-shadow: 0 0 22px rgba(65,112,255,.28);
}

.arbigo-logo-mark::before {
    left: 14px;
    transform: skewX(-22deg);
}

.arbigo-logo-mark::after {
    right: 14px;
    transform: skewX(22deg);
}

.arbigo-logo-mark span {
    position: absolute;
    left: 24px;
    bottom: 0;
    width: 14px;
    height: 20px;
    background: #080c15;
    z-index: 3;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.arbigo-brand-name {
    font-size: 38px;
    letter-spacing: 8px;
    font-weight: 600;
    color: #f5f7ff;
    line-height: 1.1;
}

.arbigo-brand-subtitle {
    margin-top: 7px;
    font-size: 13px;
    letter-spacing: 1.2px;
    color: #7181a8;
}


/* 로그인 카드 */

.arbigo-login-card {
    width: 460px;
    max-width: 100%;
    margin: 0 auto;
    padding: 26px 32px 28px;
    border-radius: 12px;
    border: 1px solid rgba(107,126,166,.25);
    background:
        linear-gradient(
            145deg,
            rgba(19,27,43,.94),
            rgba(12,18,30,.94)
        );
    box-shadow:
        0 22px 70px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.025);
    backdrop-filter: blur(16px);
}

.arbigo-card-header {
    text-align: center;
    margin-bottom: 23px;
}

.arbigo-card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 7px;
}

.arbigo-card-header p {
    font-size: 13px;
    color: #7e8ba9;
}


/* 입력창 */

.arbigo-input-wrap {
    position: relative;
    height: 52px;
    margin-bottom: 12px;
}

.arbigo-input-wrap input {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    border: 1px solid #2a3449;
    background: rgba(11,17,28,.82);
    color: #fff;
    padding: 0 48px;
    font-size: 14px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.arbigo-input-wrap input::placeholder {
    color: #68758f;
}

.arbigo-input-wrap input:hover {
    border-color: #394761;
}

.arbigo-input-wrap input:focus {
    outline: none;
    border-color: #4e7cff;
    background: rgba(13,20,34,.95);
    box-shadow: 0 0 0 3px rgba(72,115,255,.10);
}

.arbigo-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: #8b98b4;
    z-index: 2;
}

.arbigo-input-icon svg,
.arbigo-password-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arbigo-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #8592ad;
}

.arbigo-password-toggle:hover,
.arbigo-password-toggle.active {
    color: #6e91ff;
}


/* 버튼 */

.arbigo-login-btn {
    width: 100%;
    height: 52px;
    margin-top: 7px;
    border: 0;
    border-radius: 7px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    background:
        linear-gradient(
            100deg,
            #3475ff 0%,
            #5269ff 45%,
            #8057f5 100%
        );
    box-shadow: 0 8px 22px rgba(62,91,230,.20);
    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}

.arbigo-login-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(62,91,230,.30);
    transform: translateY(-1px);
}

.arbigo-login-btn:active {
    transform: translateY(0);
}

.arbigo-login-btn:disabled {
    opacity: .58;
    cursor: wait;
    transform: none;
}

.arbigo-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.arbigo-divider span {
    flex: 1;
    height: 1px;
    background: #273146;
}

.arbigo-divider em {
    font-style: normal;
    font-size: 12px;
    color: #64718b;
}

.arbigo-signup-btn {
    width: 100%;
    height: 46px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid #35589d;
    color: #6e98ff;
    font-size: 14px;
    font-weight: 600;
    transition: .18s ease;
}

.arbigo-signup-btn:hover {
    background: rgba(53,88,157,.12);
    border-color: #4d77c9;
    color: #8dadff;
}


/* 기능 4개 */

.arbigo-features {
    margin-top: 32px;
    padding: 24px 0 25px;
    border-top: 1px solid rgba(73,91,129,.18);
    border-bottom: 1px solid rgba(73,91,129,.18);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.arbigo-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.arbigo-feature-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6687ff;
    font-size: 26px;
    font-weight: 500;
    background: rgba(55,76,130,.16);
    border: 1px solid rgba(86,113,182,.12);
}

.arbigo-feature strong {
    display: block;
    color: #ebf0fa;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.arbigo-feature span {
    display: block;
    color: #65718b;
    font-size: 11px;
    line-height: 1.45;
}


/* 거래소 */

.arbigo-exchange-section {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 24px 0 0;
}

.arbigo-exchange-title {
    text-align: center;
    margin-bottom: 18px;
}

.arbigo-exchange-title small {
    display: block;
    color: #2f9bff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 7px;
}

.arbigo-exchange-title small::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 2px;
    border-radius: 10px;
    margin-right: 6px;
    background: #2b9eff;
}

.arbigo-exchange-title h2 {
    color: #f4f7ff;
    font-size: 25px;
    margin-bottom: 8px;
}

.arbigo-exchange-title p {
    color: #727e98;
    font-size: 12px;
    line-height: 1.55;
}


/* 한줄 무한스크롤 */

.arbigo-ticker-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 5px 0;
}

.arbigo-ticker-mask::before,
.arbigo-ticker-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.arbigo-ticker-mask::before {
    left: 0;
    background: linear-gradient(90deg, #080b13, transparent);
}

.arbigo-ticker-mask::after {
    right: 0;
    background: linear-gradient(-90deg, #080b13, transparent);
}

.arbigo-ticker-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding: 8px 6px;
    animation: arbigoTicker 42s linear infinite;
    will-change: transform;
}

.arbigo-ticker-track:hover {
    animation-play-state: paused;
}

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

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

.arbigo-exchange-card {
    width: 128px;
    height: 54px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 9px;
    border: 1px solid rgba(99,113,148,.20);
    background:
        linear-gradient(
            145deg,
            rgba(20,26,39,.88),
            rgba(12,17,27,.88)
        );
    color: #aeb7ca;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.018);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.arbigo-exchange-card:hover {
    transform: translateY(-2px);
    border-color: rgba(85,123,220,.45);
    background:
        linear-gradient(
            145deg,
            rgba(26,35,53,.96),
            rgba(14,20,33,.96)
        );
}

.arbigo-exchange-card b {
    font-size: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.ex-logo {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.ex-logo.upbit {
    background: #1769d4;
}

.ex-logo.bithumb {
    background: #f47721;
}

.ex-logo.coinone {
    background: #1972e8;
}

.ex-logo.korbit {
    background: #171717;
}

.ex-logo.binance {
    background: #f2ba16;
    color: #161616;
}

.ex-logo.bybit {
    background: #282a30;
    color: #f4c34c;
}

.ex-logo.bitget {
    background: #03a9a9;
}

.ex-logo.okx {
    border-radius: 6px;
    background: #f6f6f6;
    color: #090909;
}

.ex-logo.gate {
    background: #0b94d4;
}

.ex-logo.htx {
    background: #243f98;
}

.ex-logo.kucoin {
    background: #10a88b;
}

.ex-logo.mexc {
    background: #3765da;
}

.ex-logo.coinbase {
    background: #1652f0;
}

.ex-logo.crypto {
    background: #172a63;
}


/* 푸터 */

.arbigo-footer {
    position: relative;
    z-index: 2;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(70,85,117,.12);
    margin-top: 26px;
    color: #6d7891;
    font-size: 11px;
}

.arbigo-secure {
    color: #46a76b;
}


/* 반응형 */

@media (max-width: 900px) {

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

}

@media (max-width: 600px) {

    .arbigo-login-main {
        width: calc(100% - 28px);
        padding-top: 24px;
    }

    .arbigo-brand-name {
        font-size: 30px;
        letter-spacing: 6px;
    }

    .arbigo-login-card {
        padding: 24px 20px;
    }

    .arbigo-features {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .arbigo-exchange-title {
        padding: 0 22px;
    }

    .arbigo-footer {
        flex-direction: column;
        gap: 5px;
        padding: 18px 0;
    }

}

@media (prefers-reduced-motion: reduce) {

    .arbigo-ticker-track {
        animation: none;
    }

}

/* ==========================================================
   ARBIGO LOGIN PROPORTION FIX
   ========================================================== */

.arbigo-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.arbigo-login-main {
    width: min(1380px, calc(100% - 64px));
    padding-top: 48px;
}

.arbigo-brand {
    margin-bottom: 26px;
}

.arbigo-logo-mark {
    width: 72px;
    height: 60px;
    margin-bottom: 10px;
}

.arbigo-logo-mark::before,
.arbigo-logo-mark::after {
    width: 19px;
    height: 58px;
}

.arbigo-logo-mark::before {
    left: 17px;
}

.arbigo-logo-mark::after {
    right: 17px;
}

.arbigo-brand-name {
    font-size: 44px;
    letter-spacing: 9px;
}

.arbigo-brand-subtitle {
    font-size: 14px;
    margin-top: 8px;
}

.arbigo-login-card {
    width: 520px;
    padding: 32px 38px 32px;
    border-radius: 14px;
}

.arbigo-card-header {
    margin-bottom: 28px;
}

.arbigo-card-header h1 {
    font-size: 28px;
}

.arbigo-card-header p {
    font-size: 14px;
}

.arbigo-input-wrap {
    height: 58px;
    margin-bottom: 14px;
}

.arbigo-input-wrap input {
    font-size: 15px;
}

.arbigo-login-btn {
    height: 58px;
    font-size: 16px;
}

.arbigo-signup-btn {
    height: 50px;
    font-size: 15px;
}


/* 기능 영역 크기/간격 */

.arbigo-features {
    margin-top: 42px;
    padding: 30px 0;
    gap: 44px;
}

.arbigo-feature {
    justify-content: center;
}

.arbigo-feature-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    font-size: 29px;
}

.arbigo-feature strong {
    font-size: 14px;
}

.arbigo-feature span {
    font-size: 12px;
}


/* 거래소 영역 */

.arbigo-exchange-section {
    padding-top: 34px;
}

.arbigo-exchange-title {
    margin-bottom: 24px;
}

.arbigo-exchange-title small {
    font-size: 10px;
}

.arbigo-exchange-title h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.arbigo-exchange-title p {
    font-size: 13px;
}

.arbigo-ticker-track {
    gap: 14px;
    padding: 12px 8px;
}

.arbigo-exchange-card {
    width: 148px;
    height: 64px;
    flex: 0 0 148px;
    border-radius: 10px;
}

.arbigo-exchange-card b {
    font-size: 13px;
}

.ex-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}


/* 푸터 */

.arbigo-footer {
    margin-top: 34px;
    min-height: 86px;
}


/* 큰 모니터에서 세로 밸런스 조정 */

@media (min-width: 1200px) and (min-height: 900px) {

    .arbigo-login-main {
        padding-top: 58px;
    }

    .arbigo-features {
        margin-top: 48px;
    }

    .arbigo-exchange-section {
        padding-top: 40px;
    }

}


/* 1080p 이하에서는 과하게 커지지 않게 */

@media (max-height: 850px) and (min-width: 800px) {

    .arbigo-login-main {
        padding-top: 22px;
    }

    .arbigo-brand {
        margin-bottom: 14px;
    }

    .arbigo-logo-mark {
        transform: scale(.86);
        margin-bottom: 2px;
    }

    .arbigo-brand-name {
        font-size: 34px;
    }

    .arbigo-login-card {
        width: 480px;
        padding: 24px 32px;
    }

    .arbigo-input-wrap {
        height: 50px;
    }

    .arbigo-login-btn {
        height: 50px;
    }

    .arbigo-features {
        margin-top: 24px;
        padding: 20px 0;
    }

    .arbigo-exchange-section {
        padding-top: 20px;
    }

    .arbigo-exchange-title {
        margin-bottom: 12px;
    }

    .arbigo-footer {
        min-height: 58px;
        margin-top: 18px;
    }

}


/* === Exchange strip image === */

.exchange-image-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.exchange-image-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: exchangeImageScroll 28s linear infinite;
    will-change: transform;
}

.exchange-image-track img {
    display: block;
    height: 76px;
    width: auto;
    flex-shrink: 0;
}

.exchange-image-track:hover {
    animation-play-state: paused;
}

@keyframes exchangeImageScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* ===== ARBIGO EXCHANGE MARQUEE FIX ===== */

.exchange-image-mask,
.exchange-image-track {
    display: none !important;
}

.arbigo-ticker-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 14px;
}

.arbigo-ticker-mask::before,
.arbigo-ticker-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 10;
    pointer-events: none;
}

.arbigo-ticker-mask::before {
    left: 0;
    background: linear-gradient(
        90deg,
        #080b13 0%,
        rgba(8,11,19,.95) 20%,
        rgba(8,11,19,0) 100%
    );
}

.arbigo-ticker-mask::after {
    right: 0;
    background: linear-gradient(
        270deg,
        #080b13 0%,
        rgba(8,11,19,.95) 20%,
        rgba(8,11,19,0) 100%
    );
}

.arbigo-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 14px;
    padding: 6px 0;
    animation: arbigoExchangeFlow 48s linear infinite;
    will-change: transform;
}

.arbigo-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes arbigoExchangeFlow {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-50% - 7px), 0, 0);
    }
}

.arbigo-exchange-card {
    width: 142px;
    height: 60px;
    flex: 0 0 142px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 10px;
    border: 1px solid rgba(95,115,158,.22);

    background:
        linear-gradient(
            145deg,
            rgba(20,27,42,.94),
            rgba(12,18,29,.94)
        );

    color: #d8dfed;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.arbigo-exchange-card:hover {
    transform: translateY(-2px);
    border-color: rgba(82,122,225,.42);
    background:
        linear-gradient(
            145deg,
            rgba(25,34,52,.98),
            rgba(14,21,34,.98)
        );
}

.arbigo-exchange-card b {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}


/* 로고 공통 */

.ex-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    border-radius: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;
    font-weight: 800;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* 현재는 임시 심볼 */
.ex-logo.upbit {
    background: #1769d4;
}
.ex-logo.upbit::after {
    content: "UP";
    color: white;
}

.ex-logo.bithumb {
    background: #f47b20;
}
.ex-logo.bithumb::after {
    content: "b";
    color: white;
    font-size: 17px;
}

.ex-logo.coinone {
    background: #2476ee;
}
.ex-logo.coinone::after {
    content: "C";
    color: white;
}

.ex-logo.korbit {
    background: #090909;
}
.ex-logo.korbit::after {
    content: "korbit";
    color: white;
    font-size: 6px;
}

.ex-logo.binance {
    background: #f3ba2f;
}
.ex-logo.binance::after {
    content: "◆";
    color: #111;
    font-size: 14px;
}

.ex-logo.bybit {
    background: #1d2028;
}
.ex-logo.bybit::after {
    content: "BY";
    color: #f5b72c;
}

.ex-logo.bitget {
    background: #11b8b7;
}
.ex-logo.bitget::after {
    content: "↔";
    color: white;
    font-size: 15px;
}

.ex-logo.okx {
    background: white;
}
.ex-logo.okx::after {
    content: "✣";
    color: #111;
    font-size: 15px;
}

.ex-logo.gate {
    background: #139bd7;
}
.ex-logo.gate::after {
    content: "G";
    color: white;
}

.ex-logo.htx {
    background: #223f95;
}
.ex-logo.htx::after {
    content: "H";
    color: white;
}

.ex-logo.kucoin {
    background: #13aa8c;
}
.ex-logo.kucoin::after {
    content: "K";
    color: white;
}

.ex-logo.mexc {
    background: #3865de;
}
.ex-logo.mexc::after {
    content: "M";
    color: white;
}

.ex-logo.coinbase {
    background: #1652f0;
}
.ex-logo.coinbase::after {
    content: "C";
    color: white;
}

.ex-logo.crypto {
    background: #172c66;
}
.ex-logo.crypto::after {
    content: "C";
    color: white;
}


/* ===== REAL EXCHANGE CARD SPRITE MODE ===== */

.arbigo-ticker-track {
    gap: 5px !important;
    padding: 4px 0 !important;
    animation: arbigoExchangeFlow 42s linear infinite !important;
}

.arbigo-exchange-card {
    display: none !important;
}





/* 각 카드 위치 */
















/* ======================================================
   ARBIGO EXCHANGE PERFECT LOOP FIX
   ====================================================== */

.arbigo-ticker-mask {
    overflow: hidden !important;
}

.arbigo-ticker-track {
    display: flex !important;
    align-items: center !important;

    width: max-content !important;

    gap: 0 !important;
    padding: 4px 0 !important;

    animation:
        arbigoPerfectLoop 38s linear infinite !important;

    will-change: transform;
}

.arbigo-exchange-set {
    display: flex;
    align-items: center;

    gap: 10px;

    /*
       그룹 마지막에도 gap 1개를 넣어서
       두 그룹의 실제 폭을 완전히 동일하게 만든다.
    */
    padding-right: 10px;

    flex-shrink: 0;
}

@keyframes arbigoPerfectLoop {

    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

}

/* 카드 자체는 절대 늘어나거나 줄어들지 않게 */


/* 마우스 올렸다고 멈추면 흐름이 어색해서 제거 */
.arbigo-ticker-track:hover {
    animation-play-state: running !important;
}


/* ===== EXCHANGE JS SMOOTH SCROLL ===== */

.arbigo-ticker-track {
    animation: none !important;
    transform: translate3d(0,0,0);
    will-change: transform;
}


/* ===== FINAL EXCHANGE MOTION OVERRIDE ===== */

.arbigo-ticker-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    gap: 0 !important;
    padding: 4px 0 !important;

    animation: none !important;
    transition: none !important;

    transform: translate3d(0,0,0);
    will-change: transform;
}

.arbigo-exchange-set {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-right: 10px !important;
    flex: 0 0 auto !important;
}



.arbigo-ticker-track:hover {
    animation-play-state: running !important;
}


/* ===== EXCHANGE CONTINUOUS LOOP FINAL FIX ===== */

.arbigo-ticker-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    gap: 0 !important;
    padding: 4px 0 !important;
    animation: none !important;
    transition: none !important;
    will-change: transform;
}

.arbigo-exchange-set {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    /*
     * 마지막 Crypto.com → 다음 Upbit 사이도
     * 일반 카드 간격과 똑같이 12px
     */
    padding-right: 12px !important;

    flex: 0 0 auto !important;
}




/* 거래소 세트 경계 간격 보정 */
.arbigo-exchange-set {
    padding-right: 2px !important;
}


/* =====================================================
   EXCHANGE SPRITE EXACT CROP FIX (사용 안 함 — 관련 스프라이트 규칙 제거됨)
   ===================================================== */

.arbigo-exchange-set {
    display: flex !important;
    align-items: center !important;

    /* 카드 이미지 자체에 여백이 있으므로 외부 gap 최소화 */
    gap: 4px !important;
    padding-right: 4px !important;

    flex: 0 0 auto !important;
}






























/* 거래소 카드 간격 최종 보정 */
.arbigo-exchange-set {
    gap: 7px !important;
    padding-right: 7px !important;
}


/* ======================================================
   ARBIGO EXCHANGE FINAL SIZE / SPACING
   ====================================================== */

.arbigo-ticker-mask {
    width: 100% !important;
    overflow: hidden !important;
    padding: 14px 0 16px !important;
}

.arbigo-ticker-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;

    gap: 0 !important;
    padding: 0 !important;

    animation: none !important;
    transition: none !important;

    will-change: transform;
}

/*
 * 한 세트 내부는 모든 카드 간격 동일.
 * 세트 마지막 padding을 같은 값으로 줘서
 * Crypto.com → 다음 Upbit도 정확히 동일.
 */
.arbigo-exchange-set {
    display: flex !important;
    align-items: center !important;

    gap: 10px !important;
    padding: 0 10px 0 0 !important;

    flex: 0 0 auto !important;
}

/* 각 거래소가 차지하는 실제 공간 */
.arbigo-exchange-slot {
    width: 82px !important;
    height: 72px !important;
    flex: 0 0 82px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
}

/*
 * 원본 스프라이트 크롭은 그대로 두고
 * 화면에 보이는 카드만 확대.
 * 그래서 로고 좌표가 다시 틀어지지 않음.
 */




/* 좌우 끝은 자연스럽게 사라지게 */
.arbigo-ticker-mask::before,
.arbigo-ticker-mask::after {
    width: 80px !important;
}


/* ======================================================
   EXCHANGE HORIZONTAL BRAND CARDS
   로고 + 거래소명
   ====================================================== */

.arbigo-ticker-mask {
    padding: 14px 0 18px !important;
}

/* 세트 내부/세트 경계 모두 정확히 동일 간격 */
.arbigo-exchange-set {
    display: flex !important;
    align-items: center !important;

    gap: 14px !important;
    padding-right: 14px !important;

    flex: 0 0 auto !important;
}

/* 거래소 카드 */
.arbigo-exchange-slot {
    width: 132px !important;
    height: 58px !important;
    flex: 0 0 132px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px !important;

    padding: 0 14px !important;
    margin: 0 !important;

    border: 1px solid rgba(105, 119, 151, .24);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 25, 38, .97),
            rgba(12, 17, 27, .97)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.arbigo-exchange-slot:hover {
    transform: translateY(-2px);

    border-color: rgba(83, 119, 205, .45);

    background:
        linear-gradient(
            145deg,
            rgba(25, 33, 50, .98),
            rgba(14, 20, 32, .98)
        );
}


/*
 * 기존 스프라이트는 원본 카드 전체가 아니라
 * 로고 부분 위주로 보이도록 크기를 줄여 사용
 */


/* 거래소명 */
.arbigo-exchange-name {
    display: block;

    color: #b9c1d1;

    font-size: 13px;
    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    letter-spacing: -.1px;
}

/* 국내 거래소 한글도 동일 톤 */
.arbigo-exchange-slot:hover .arbigo-exchange-name {
    color: #eef2fa;
}


/* 로고 위치 재조정 - 30px 박스 기준 */





























/* ===== EXCHANGE LOGO CROP FIX ===== */



/* 원본 이미지 실제 로고 위치 기준 */





























/* 로고가 넓어졌으므로 카드도 약간 넓힘 */
.arbigo-exchange-slot {
    width: 150px !important;
    flex: 0 0 150px !important;
    gap: 9px !important;
    padding: 0 14px !important;
}


/* ===== EXCHANGE CARD BORDER FIT FIX ===== */

.arbigo-exchange-slot {
    width: auto !important;
    min-width: 118px !important;
    height: 58px !important;
    flex: 0 0 auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px !important;
    padding: 0 16px !important;
    margin: 0 !important;

    border: 1px solid rgba(105, 119, 151, .24) !important;
    border-radius: 11px !important;

    background:
        linear-gradient(
            145deg,
            rgba(19, 25, 38, .97),
            rgba(12, 17, 27, .97)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025) !important;

    white-space: nowrap !important;
}

.arbigo-exchange-name {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #b9c1d1 !important;
}

/* 세트 내부 간격 */
.arbigo-exchange-set {
    gap: 14px !important;
    padding-right: 14px !important;
}


/* ===== EXCHANGE CARD ALIGNMENT FIX ===== */

.arbigo-exchange-slot {
    height: 58px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px !important;
    padding: 0 16px !important;

    white-space: nowrap !important;
}

.arbigo-exchange-logo-box {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}



.arbigo-exchange-name {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    min-width: 0 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -0.1px !important;
    text-align: left !important;

    color: #c4cada !important;
}

.arbigo-exchange-slot:hover .arbigo-exchange-name {
    color: #eef2fa !important;
}


/* =====================================================
   INDIVIDUAL EXCHANGE LOGO FINAL
   ===================================================== */

.arbigo-exchange-logo-box {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.arbigo-exchange-logo {
    display: block !important;

    width: 28px !important;
    height: 28px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* 기존 스프라이트 완전히 사용 중지 */


/* 카드 내부 */
.arbigo-exchange-slot {
    width: auto !important;
    min-width: 112px !important;
    height: 56px !important;
    flex: 0 0 auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 9px !important;
    padding: 0 14px !important;

    white-space: nowrap !important;
}

/* 모든 카드 간격 + 반복 경계 동일 */
.arbigo-exchange-set {
    gap: 12px !important;
    padding-right: 12px !important;
}

.arbigo-exchange-name {
    line-height: 1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}



/* =====================================================
   EXCHANGE STRIP RESTORE
   처음 사용한 한 줄 거래소 이미지 방식
   ===================================================== */

.arbigo-ticker-mask,
.arbigo-ticker-track,
.arbigo-exchange-set {
    display: none !important;
}

.arbigo-strip-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 8px 0 12px;
}

.arbigo-strip-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: arbigoStripFlow 32s linear infinite;
    will-change: transform;
}

.arbigo-strip-track img {
    display: block;
    width: auto;
    height: 92px;
    max-width: none;
    flex: 0 0 auto;
}

/* 양 끝 자연스럽게 사라지는 효과 */
.arbigo-strip-mask::before,
.arbigo-strip-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55px;
    z-index: 3;
    pointer-events: none;
}

.arbigo-strip-mask::before {
    left: 0;
    background: linear-gradient(
        90deg,
        #080b13 0%,
        rgba(8,11,19,0) 100%
    );
}

.arbigo-strip-mask::after {
    right: 0;
    background: linear-gradient(
        270deg,
        #080b13 0%,
        rgba(8,11,19,0) 100%
    );
}

@keyframes arbigoStripFlow {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-50%,0,0);
    }
}


/* =====================================================
   EXCHANGE STRIP FINAL WINDOW / SCALE
   - 한번에 약 10개만 보이게
   - 배너 비율 키우기
   ===================================================== */

.arbigo-strip-mask {
    width: 100%;
    max-width: 760px !important;   /* 대략 10개 정도 보이게 */
    margin: 0 auto !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 10px 0 14px !important;
}

.arbigo-strip-track {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: max-content !important;

    animation: none !important;   /* 기존 CSS 애니메이션 완전 중지 */
    transition: none !important;
    transform: translate3d(0,0,0);

    will-change: transform;
}

.arbigo-strip-track img {
    display: block !important;
    height: 88px !important;      /* 지금보다 좀 더 크게 */
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

/* 좌우 자연스럽게 사라지는 마스크 */
.arbigo-strip-mask::before,
.arbigo-strip-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    z-index: 5;
    pointer-events: none;
}

.arbigo-strip-mask::before {
    left: 0;
    background: linear-gradient(
        90deg,
        #080b13 0%,
        rgba(8,11,19,0) 100%
    );
}

.arbigo-strip-mask::after {
    right: 0;
    background: linear-gradient(
        270deg,
        #080b13 0%,
        rgba(8,11,19,0) 100%
    );
}


/* =====================================================
   EXCHANGE STRIP 10 ITEMS WIDE
   10개가 가로 영역을 자연스럽게 채우도록 확대
   ===================================================== */

.arbigo-strip-mask {
    width: min(1120px, calc(100% - 80px)) !important;
    max-width: none !important;
    margin: 0 auto !important;

    overflow: hidden !important;
    padding: 12px 0 16px !important;
}

.arbigo-strip-track img {
    height: 118px !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

/* 양 끝 페이드도 크기에 맞게 확대 */
.arbigo-strip-mask::before,
.arbigo-strip-mask::after {
    width: 70px !important;
}


/* ===== EXCHANGE STRIP HOVER EFFECT ===== */

.arbigo-strip-track {
    transition: filter .22s ease !important;
}

.arbigo-strip-mask.is-hovered .arbigo-strip-track {
    filter:
        brightness(1.10)
        drop-shadow(0 5px 10px rgba(48, 92, 255, .12));
}

.arbigo-strip-mask {
    cursor: default;
}



/* ==========================================================
   ARBIGO INDIVIDUAL EXCHANGE FINAL
   개별 hover + 부드러운 무한스크롤
   ========================================================== */


/* 기존 한 장짜리 이미지 효과 완전 비활성화 */

.arbigo-strip-track {
    display: none !important;
}

.arbigo-strip-mask.is-hovered .arbigo-strip-track {
    filter: none !important;
}


/* 보여지는 거래소 창 */

.arbigo-strip-mask {
    width: min(760px, calc(100% - 50px)) !important;
    max-width: 760px !important;

    margin: 0 auto !important;

    position: relative !important;
    overflow: hidden !important;

    /*
      위로 뜨는 hover 공간 확보
    */
    padding: 14px 0 18px !important;
}


/* 전체 이동 트랙 */

.arbigo-individual-track {
    display: flex;

    align-items: center;

    width: max-content;

    gap: 0;

    transform: translate3d(0,0,0);

    will-change: transform;
}


/* 거래소 14개 한 세트 */

.arbigo-individual-set {
    display: flex;
    align-items: center;

    /*
      기본값(아래 EXCHANGE STRIP SIZE 블록의 21px !important가 최종 적용값 —
      이 값 자체는 그 규칙이 없을 때의 폴백)
    */
    gap: 26px;

    /*
      Crypto.com → Upbit 경계도
      다른 카드 사이와 정확히 같은 간격
    */
    padding-right: 26px;

    flex: 0 0 auto;
}


/* 거래소 하나 — 거래소별 개별 이미지 파일(img/exchanges 폴더의 PNG) + 실제 DOM 텍스트(영문명).
   예전엔 스프라이트 한 장에 한글 캡션까지 박혀있어서 텍스트를 못 바꿨는데, 이제 로고 파일과
   이름이 완전히 분리돼 있어 새 거래소 추가/이름 변경이 좌표 계산 없이 파일 하나 + 배열
   항목 하나로 끝난다. */

.arbigo-exchange-item {
    width: 110px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    flex: 0 0 110px;

    position: relative;

    cursor: pointer;

    transform:
        translateY(0)
        scale(1);

    filter:
        brightness(1);

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;

    z-index: 1;
}


/* ==========================================================
   딱 마우스 올린 거래소 하나만 반응
   ========================================================== */

.arbigo-exchange-item:hover {

    transform:
        translateY(-7px)
        scale(1.08);

    filter:
        brightness(1.17)
        saturate(1.08);

    box-shadow:
        0 10px 24px rgba(52, 95, 255, .26);

    z-index: 20;
}


/* 아이콘(로고) — 거래소별 개별 이미지 파일 하나씩(카드 배경까지 이미지 안에 포함돼 있음). */
.arbigo-exchange-item img {
    width: 72px;
    height: 56px;

    display: block;

    border-radius: 9px;
    object-fit: cover;

    filter:
        contrast(1.08)
        saturate(1.06)
        brightness(1.03);
}

/* 거래소 이름(영문) — 실제 텍스트라 언어를 자유롭게 바꿀 수 있다. */
.arbigo-exchange-item span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #7181a8;
    white-space: nowrap;
}


/* 좌우 페이드 */

.arbigo-strip-mask::before,
.arbigo-strip-mask::after {

    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 38px;

    z-index: 30;

    pointer-events: none;
}

.arbigo-strip-mask::before {

    left: 0;

    background:
        linear-gradient(
            90deg,
            #080b13 0%,
            rgba(8,11,19,0) 100%
        );
}

.arbigo-strip-mask::after {

    right: 0;

    background:
        linear-gradient(
            270deg,
            #080b13 0%,
            rgba(8,11,19,0) 100%
        );
}


/* 모바일 */

@media (max-width: 700px) {

    .arbigo-strip-mask {
        width: calc(100% - 24px) !important;
    }

    .arbigo-individual-set {
        gap: 14px;
        padding-right: 14px;
    }

}


/* ===== EXCHANGE STRIP SIZE (최종 유지값 — 마스크 너비/간격) ===== */
/* 아이콘 자체의 크기·위치·마진은 위 .arbigo-exchange-item/img/span 정의로 일원화했다
   (예전에는 이 아래로 "SCALE FINAL TUNE" -> "FILL TUNE" -> "90PX" -> "GAP FIX" ->
   "GAP UNIFORM FINAL" -> "SHARPNESS TUNE" 순서로 같은 요소를 6번 연속 !important로
   덮어써서 마지막 규칙만 실제로 유효했다 — 그 마지막 상태를 그대로 위로 옮기고 나머지는
   전부 정리함). 마스크 너비와 세트 간격만 그대로 유지. */

.arbigo-strip-mask {
    width: min(1000px, calc(100% - 70px)) !important;
    max-width: 1000px !important;
}

.arbigo-individual-set {
    gap: 21px !important;
    padding-right: 21px !important;
}



/* ==========================================================
   ARBIGO SIGNUP PAGE
   ========================================================== */

.arbigo-signup-page {
    min-height: 100vh;
    height: auto;

    display: block;

    overflow-x: hidden;

    position: relative;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(53, 91, 180, .17),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #070b14 0%,
            #080c15 48%,
            #070a11 100%
        );

    color: #eef3ff;
}


.arbigo-signup-page::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: .14;

    background-image:
        linear-gradient(
            rgba(78,118,205,.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(78,118,205,.06) 1px,
            transparent 1px
        );

    background-size: 54px 54px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 25%,
            transparent
        );
}


.arbigo-signup-glow {
    position: fixed;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    filter: blur(110px);

    opacity: .12;

    pointer-events: none;
}

.arbigo-signup-glow-left {
    left: -250px;
    top: 220px;

    background: #1266ff;
}

.arbigo-signup-glow-right {
    right: -250px;
    top: 280px;

    background: #6c3cff;
}


/* 메인 */

.arbigo-signup-main {
    width: min(760px, calc(100% - 40px));

    margin: 0 auto;

    padding:
        45px 0
        70px;

    position: relative;

    z-index: 2;
}


/* 브랜드 */

.arbigo-signup-brand {
    text-align: center;

    margin-bottom: 28px;
}


.arbigo-signup-logo-mark {
    width: 72px;
    height: 60px;

    margin:
        0 auto
        10px;

    position: relative;
}


.arbigo-signup-logo-mark::before,
.arbigo-signup-logo-mark::after {

    content: "";

    position: absolute;
    top: 0;

    width: 19px;
    height: 58px;

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            #73a2ff 0%,
            #3f72ff 48%,
            #6853f4 100%
        );

    box-shadow:
        0 0 25px
        rgba(65,112,255,.30);
}


.arbigo-signup-logo-mark::before {
    left: 17px;
    transform: skewX(-22deg);
}

.arbigo-signup-logo-mark::after {
    right: 17px;
    transform: skewX(22deg);
}


.arbigo-signup-logo-mark span {
    position: absolute;

    left: 28px;
    bottom: 0;

    width: 16px;
    height: 22px;

    background: #080c15;

    z-index: 3;

    clip-path:
        polygon(
            50% 0,
            100% 100%,
            0 100%
        );
}


.arbigo-signup-brand-name {
    font-size: 42px;

    letter-spacing: 9px;

    font-weight: 600;

    line-height: 1.05;

    color: #f5f7ff;
}


.arbigo-signup-brand-subtitle {
    margin-top: 8px;

    font-size: 13px;

    letter-spacing: 1.2px;

    color: #7383a8;
}


/* 카드 */

.arbigo-signup-card {
    position: relative;

    width: 100%;

    padding:
        34px 42px
        42px;

    border-radius: 16px;

    border:
        1px solid
        rgba(107,126,166,.32);

    background:
        linear-gradient(
            145deg,
            rgba(18,27,43,.96),
            rgba(11,17,29,.96)
        );

    box-shadow:
        0 26px 80px
        rgba(0,0,0,.32),
        inset 0 1px 0
        rgba(255,255,255,.025);

    backdrop-filter:
        blur(16px);
}


/* 뒤로 */

.arbigo-signup-back {

    position: absolute;

    top: 27px;
    left: 32px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #9fb7e9;

    font-size: 14px;

    font-weight: 600;

    transition:
        color .18s ease,
        transform .18s ease;
}


.arbigo-signup-back:hover {

    color: #ffffff;

    transform:
        translateX(-2px);
}


/* 제목 */

.arbigo-signup-header {
    text-align: center;

    margin-bottom: 30px;
}


.arbigo-signup-header h1 {

    margin: 0;

    color: #fff;

    font-size: 30px;

    font-weight: 700;
}


.arbigo-signup-header p {

    margin-top: 8px;

    color: #7180a1;

    font-size: 13px;
}


/* 입력창 */

.arbigo-signup-input-wrap {

    position: relative;

    height: 58px;

    margin-bottom: 15px;
}


.arbigo-signup-input-wrap input {

    width: 100%;
    height: 100%;

    border-radius: 8px;

    border:
        1px solid
        #30405a;

    background:
        rgba(7,13,23,.79);

    color: #fff;

    padding:
        0 50px;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.arbigo-signup-input-wrap input::placeholder {
    color: #67758f;
}


.arbigo-signup-input-wrap input:hover {
    border-color: #3b4d69;
}


.arbigo-signup-input-wrap input:focus {

    outline: none;

    border-color: #4e7cff;

    background:
        rgba(10,17,30,.96);

    box-shadow:
        0 0 0 3px
        rgba(72,115,255,.10);
}


/* 아이콘 */

.arbigo-signup-input-icon {

    position: absolute;

    left: 17px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 21px;
    height: 21px;

    color: #87a6df;

    z-index: 2;
}


.arbigo-signup-input-icon svg,
.arbigo-signup-password-toggle svg,
.arbigo-agreement-icon svg {

    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 비밀번호 eye */

.arbigo-signup-password-toggle {

    position: absolute;

    right: 16px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 22px;
    height: 22px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #8098c4;
}


.arbigo-signup-password-toggle:hover,
.arbigo-signup-password-toggle.active {

    color: #72a0ff;
}


/* 동의 */

.arbigo-signup-agreement {

    margin-top: 28px;
    margin-bottom: 26px;

    padding: 20px 22px;

    border-radius: 8px;

    border:
        1px solid
        #32435f;

    background:
        rgba(7,13,23,.72);
}


.arbigo-signup-agreement-top {

    display: flex;

    align-items: flex-start;

    gap: 13px;
}


.arbigo-agreement-icon {

    width: 26px;
    height: 26px;

    flex:
        0 0 26px;

    color: #8eb1f5;
}


.arbigo-signup-agreement-top p {

    margin: 0;

    color: #b9c7df;

    font-size: 13px;

    line-height: 1.75;
}


/* 체크박스 */

.arbigo-signup-agree-label {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 17px;

    cursor: pointer;

    user-select: none;
}


.arbigo-signup-agree-label input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.arbigo-custom-checkbox {

    width: 24px;
    height: 24px;

    flex:
        0 0 24px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 4px;

    border:
        1px solid
        #5883d8;

    background:
        rgba(10,17,29,.85);

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.arbigo-signup-agree-label
input:checked
+ .arbigo-custom-checkbox {

    background:
        linear-gradient(
            135deg,
            #377cff,
            #7455f5
        );

    border-color:
        #648fff;

    box-shadow:
        0 0 0 3px
        rgba(68,112,255,.10);
}


.arbigo-signup-agree-label
input:checked
+ .arbigo-custom-checkbox::after {

    content: "✓";

    color: #fff;

    font-size: 15px;

    font-weight: 800;
}


.arbigo-signup-agree-label strong {

    color: #e4e9f3;

    font-size: 14px;

    font-weight: 600;
}


/* 약관 동의(이용약관/개인정보처리방침) — 체크박스와 "전문 보기" 링크를 한 줄에 배치하되
   링크는 label 밖에 둬서 클릭해도 체크박스가 토글되지 않게(그냥 문서만 열림) 한다. */
.arbigo-terms-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 17px;
}
.arbigo-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.arbigo-terms-row .arbigo-terms-label {
    margin-top: 0;
}
.arbigo-terms-link {
    font-size: 13px;
    color: #7ea8ff;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}
.arbigo-terms-link:hover {
    color: #a8c6ff;
}


/* 가입 버튼 */

.arbigo-signup-submit {

    width: 100%;
    height: 62px;

    border: 0;

    border-radius: 8px;

    color: #fff;

    font-size: 17px;

    font-weight: 700;

    background:
        linear-gradient(
            100deg,
            #3475ff 0%,
            #5269ff 45%,
            #8057f5 100%
        );

    box-shadow:
        0 10px 28px
        rgba(62,91,230,.22);

    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}


.arbigo-signup-submit:hover {

    filter:
        brightness(1.08);

    transform:
        translateY(-1px);

    box-shadow:
        0 13px 32px
        rgba(62,91,230,.30);
}


.arbigo-signup-submit:disabled {

    opacity: .58;

    cursor: wait;

    transform: none;
}


/* 모바일 */

@media (max-width: 700px) {

    .arbigo-signup-main {

        width:
            calc(100% - 26px);

        padding-top: 26px;
    }


    .arbigo-signup-card {

        padding:
            72px 20px
            28px;
    }


    .arbigo-signup-back {

        top: 25px;
        left: 20px;
    }


    .arbigo-signup-brand-name {

        font-size: 32px;

        letter-spacing: 6px;
    }


    .arbigo-signup-header h1 {

        font-size: 26px;
    }


    .arbigo-signup-agreement {

        padding: 17px;
    }

}

