@charset "utf-8";

/* ==========================================================================
   partner common.css
   토큰, 리셋, 헤더/GNB, 모바일 드로어, 공통 버튼, 푸터
   ========================================================================== */

:root {
    --fns-primary: #059669;
    --fns-primary-hover: #047857;
    --fns-success: #15803d;
    --fns-success-bg: #f0fdf4;
    --fns-accent: #b45309;
    --bg-main: #f8fafc;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --border-ui: #e2e8f0;
    --border-focus: #10b981;
    --bg-step-active: #10b981;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.3px;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 15px;
}

/* 헤더 / GNB */
.global-header { background: var(--white); height: 70px; border-bottom: 1px solid var(--border-ui); display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.header-logo { font-size: 22px; font-weight: 800; color: var(--fns-primary); text-decoration: none; }
.header-logo span { color: #10b981 !important; font-weight: 800; }
.header-nav { display: flex; list-style: none; gap: 30px; }
.header-nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 15px; transition: 0.2s; }
.header-nav a:hover { color: var(--fns-primary); }
.fns-global-header { background: #0f172a; color: var(--white); height: 70px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; }
.fns-global-header .header-logo { color: #ffffff; display: inline-flex; align-items: center; gap: 8px; }
.fns-global-header .logo-partner-badge { color: #10b981 !important; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; background: rgba(16, 185, 129, 0.16); padding: 3px 8px; border-radius: 6px; }
#partner-gnb { display: flex; list-style: none; gap: 4px; height: 70px; }
#partner-gnb a { display: flex; align-items: center; padding: 0 14px; text-decoration: none; color: #94a3b8; font-weight: 500; height: 100%; font-size: 14px; transition: 0.2s; white-space: nowrap; }
#partner-gnb a i { margin-right: 6px; font-size: 13px; }
#partner-gnb a:hover, #partner-gnb a.active { color: var(--white); font-weight: 700; background: rgba(255, 255, 255, 0.05); }
.header-user-zone { display: flex; align-items: center; gap: 15px; font-size: 14px; color: #cbd5e1; }
.badge-alarm { background: #ef4444; color: var(--white); font-size: 11px; padding: 2px 6px; border-radius: 10px; font-weight: 700; }
.header-user-actions { display: flex; align-items: center; gap: 20px; }
.user-logged-info, .user-guest-info { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.user-guest-info { gap: 14px; color: var(--text-sub); }
.fns-global-header .header-alarm-btn { color: #cbd5e1; font-size: 18px; position: relative; text-decoration: none; }
.header-alarm-btn .alarm-badge { position: absolute; top: -3px; right: -3px; width: 6px; height: 6px; background: #ef4444; border-radius: 50%; }
.fns-global-header .user-greeting { color: #cbd5e1; font-weight: 500; }
.fns-global-header .user-greeting .highlight-name { font-weight: 700; color: #10b981; }
.fns-global-header .badge-grade { display: inline-flex; align-items: center; margin-left: 4px; font-size: 11px; padding: 2px 6px; border-radius: 10px; font-weight: 700; color: #fff; }
.fns-global-header .badge-grade.is-master { background: #059669; }
.fns-global-header .badge-grade.is-normal { background: #64748b; }
.fns-global-header .divider { color: #475569; }
.fns-global-header .btn-logout { text-decoration: none; font-size: 13px; color: #94a3b8; }
.fns-global-header .btn-login { text-decoration: none; color: #ffffff; font-weight: 500; }
.fns-global-header .btn-site-home { text-decoration: none; color: #94a3b8; font-weight: 500; }
.fns-global-header .btn-site-home:hover { color: #ffffff; }
.btn-join { text-decoration: none; color: var(--text-sub); }
.btn-partner-reg { height: 38px; padding: 0 16px; font-size: 13px; font-weight: 700; border-color: var(--fns-primary); color: var(--fns-primary); border-radius: 30px; background: #f0fdf4; display: flex; align-items: center; gap: 6px; }
.btn-partner-reg i { font-size: 11px; }

/* 모바일 드로어 */
.mobile-toggle-btn { display: none !important; background: none; border: none; font-size: 22px; color: #0f172a; cursor: pointer; padding: 4px; }
.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: #ffffff; z-index: 10000; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1); transition: right 0.3s ease-in-out; padding: 24px; display: flex; flex-direction: column; }
.mobile-sidebar.active { right: 0; }
.mobile-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); z-index: 9999; display: none; backdrop-filter: blur(2px); }
.mobile-sidebar-overlay.active { display: block; }
.m-side-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.m-side-close { background: none; border: none; font-size: 22px; color: #475569; cursor: pointer; }
.side-logo-size { font-size: 20px; }
.side-logo-size span { color: var(--fns-primary); }
.m-side-user { background: #f8fafc; padding: 16px; border-radius: 8px; margin-bottom: 24px; }
.m-user-badge { margin: 0; font-size: 12px; color: var(--fns-primary); font-weight: 700; }
.m-user-row { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.m-user-name { font-size: 16px; font-weight: 700; color: #0f172a; }
.m-btn-logout { font-size: 12px; color: #64748b; text-decoration: underline; }
.m-guest-txt { margin: 0; font-size: 13px; color: #64748b; font-weight: 500; }
.m-guest-row { margin-top: 10px; display: flex; gap: 12px; align-items: center; }
.m-link-login { font-size: 15px; font-weight: 700; color: #0f172a; text-decoration: none; }
.m-divider { width: 1px; height: 12px; background: #cbd5e1; }
.m-link-join { font-size: 15px; font-weight: 700; color: #64748b; text-decoration: none; }
.m-side-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.m-side-nav li a { display: block; padding: 14px 12px; font-size: 15px; font-weight: 700; color: #334155; text-decoration: none; border-radius: 6px; }
.m-side-nav li a:hover, .m-side-nav li a:active, .m-side-nav li a.active { background: #f0fdf4; color: var(--fns-primary); }
.m-side-nav i { width: 22px; color: var(--fns-primary); font-size: 15px; }
.m-side-nav .m-nav-site { margin-top: 8px; border-top: 1px solid #e2e8f0; color: #64748b; font-weight: 600; }
.m-join-btn-wrap { margin-top: auto; padding-top: 20px; }
.m-partner-join-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 6px; font-size: 14px; font-weight: 700; background: var(--fns-primary); color: #fff; text-decoration: none; }
.m-partner-join-btn i { font-size: 12px; color: #fff; }

/* 공통 버튼 */
.btn-fns { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; padding: 0 24px; height: 50px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.2s; text-decoration: none; }
.btn-primary { background: var(--fns-primary); color: var(--white); }
.btn-primary:hover { background: var(--fns-primary-hover); }
.btn-success { background: var(--fns-success); color: var(--white); }
.btn-outline { background: var(--white); border-clip: padding-box; border-color: #cbd5e1; color: #475569; }
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-fns-submit { width: 100%; height: 54px; background: var(--fns-primary); color: var(--white); border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15); }
.btn-fns-submit:hover { background: var(--fns-primary-hover); }

/* 푸터 */
.fns-partner-footer { background: #ffffff; color: #64748b; padding: 50px 20px; font-size: 13px; border-top: 1px solid var(--border-ui); line-height: 1.6; }
.footer-wrap { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer-info p { margin-bottom: 4px; }
.footer-company { font-weight: 700; color: var(--text-main); font-size: 15px; margin-bottom: 10px; }
.footer-company span { font-weight: 400; color: var(--text-sub); font-size: 13px; }
.footer-info a { color: #475569; text-decoration: none; }
.footer-info a:hover { color: var(--fns-primary); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: #475569; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--fns-primary); }
.footer-copy { color: #94a3b8; margin-top: 30px; width: 100%; text-align: center; border-top: 1px solid #f1f5f9; padding-top: 20px; font-size: 12px; }
.footer-copy p { margin-bottom: 6px; }
