:root {
    --ink: #0d0f2b;
    --blue: #3157d5;
    --muted: #6b7280;
    --line: #e6e8ef;
    --bg: #fff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    font-family: "Pretendard Variable",Pretendard,Inter,"Noto Sans KR",Arial,sans-serif;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: inherit;
    text-decoration: none;
}
.app-header {
    height: 72px;
    background: #050505;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.app-nav {
    max-width: 1280px;
    height: 100%;
    margin: auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 34px;
}
.app-logo img,.app-footer img {
    width: 116px;
}
.app-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}
.app-links>a,.app-drop>button,.app-account>a {
    padding: 11px 14px;
    font: 600 15px inherit;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}
.app-drop {
    position: relative;
}
.app-drop>div {
    display: none;
    position: absolute;
    top: 43px;
    left: 0;
    min-width: 180px;
    padding: 10px;
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    box-shadow: 0 18px 40px #0003;
}
.app-drop:hover>div,.app-drop.open>div {
    display: grid;
}
.app-drop div a {
    padding: 11px 13px;
    border-radius: 8px;
}
.app-drop div a:hover {
    background: #f1f3f8;
}
.app-account {
    display: flex;
    align-items: center;
}
.app-account .pill {
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 9px 20px;
}
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
}
.page-wrap {
    max-width: 1180px;
    margin: auto;
    padding: 110px 24px 110px;
}
.page-head {
    margin-bottom: 38px;
}
.page-head small {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: .09em;
}
.page-head h1 {
    font-size: 42px;
    margin: 12px 0;
}
.page-head p {
    color: var(--muted);
    line-height: 1.75;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 32px #1520440a;
}
.auth-wrap {
    max-width: 520px;
    margin: auto;
}
.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}
.field label {
    font-size: 14px;
    font-weight: 700;
}
.field input,.field select {
    width: 100%;
    height: 52px;
    border: 1px solid #d9dce5;
    border-radius: 10px;
    padding: 0 15px;
    font: inherit;
    background: #fff;
}
.field input:focus,.field select:focus {
    outline: 2px solid #3157d533;
    border-color: var(--blue);
}
.btn {
    height: 52px;
    border: 0;
    border-radius: 999px;
    padding: 0 26px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.btn.blue {
    background: var(--blue);
}
.btn.full {
    width: 100%;
}
/* a 태그에 .btn 을 쓰면 button 과 달리 내용이 세로 중앙정렬되지 않으므로 보정
   (예: 회원가입 완료 페이지의 "로그인으로 이동" 링크) */
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}
.form-note,.muted {
    color: var(--muted);
    font-size: 14px;
}
.form-note {
    text-align: center;
    margin-top: 22px;
}
.error,.success {
    padding: 13px 15px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
}
.error {
    background: #fff0f0;
    color: #b42318;
}
.success {
    background: #edfff5;
    color: #087a44;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.result-card {
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 25px;
}
.result-card strong {
    display: block;
    font-size: 38px;
    margin: 10px 0;
}
.result-card dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 24px 0 0;
}
.result-card dt {
    color: #ffffff99;
}
.result-card dd {
    margin: 0;
    font-weight: 700;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}
.metric {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 25px;
}
.metric span {
    color: var(--muted);
    font-size: 14px;
}
.metric strong {
    display: block;
    font-size: 30px;
    margin-top: 12px;
}
/* 2026-08-03 XRPFLOW 시안: 화이트 푸터 한 줄 구성 (전 페이지 공통) */
.app-footer {
    background: #fff;
    color: #161616;
    border-top: 1px solid #e6e6e6;
}
.footer-inner {
    max-width: 1560px;
    margin: auto;
    padding: 36px 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.footer-logo {
    flex: none;
    display: flex;
    align-items: center;
}
.footer-logo img {
    width: auto;
    height: 26px;
    display: block;
}
.footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 34px;
    margin: 0 auto;
}
.footer-nav a {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}
.footer-nav a:hover {
    color: #000;
    text-decoration: underline;
}
.footer-copy {
    flex: none;
    margin: 0;
    color: #8a8a8a;
    font-size: 13px;
}
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 11px;
    border-bottom: 2px solid var(--line);
}
.auth-tabs a.active {
    border-color: var(--blue);
    color: var(--blue);
    font-weight: 700;
}
@media(max-width:900px) {
    .app-header {
        height: 56px;
    }
    .app-nav {
        padding: 0 16px;
    }
    .app-logo img {
        width: 92px;
    }
    .menu-toggle {
        display: block;
    }
    .app-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #080808;
        padding: 12px;
        align-items: stretch;
    }
    .app-links.open {
        display: grid;
    }
    .app-links>a,.app-drop>button {
        text-align: left;
        width: 100%;
    }
    .app-drop>div {
        position: static;
        margin: 2px 10px;
    }
    .app-account>a:not(.pill) {
        display: none;
    }
    .page-wrap {
        padding: 80px 18px 80px;
    }
    .page-head h1 {
        font-size: 32px;
    }
    .grid-2,.dashboard-grid {
        grid-template-columns: 1fr;
    }
    .panel {
        padding: 22px;
    }
    /* 모바일 푸터 (XRPFLOW 시안): 로고 → 링크 한 줄 → 카피라이트 세로 배치 */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 36px 20px 88px; /* 하단은 언어 전환 플로팅 버튼 자리 확보 */
    }
    .footer-nav {
        margin: 0;
        gap: 10px 20px;
    }
    .footer-nav a {
        font-size: 14px;
    }
}
