/* ============================================================
   ShortFactory Platform — Design System v4.0
   shortfactory.io 랜딩페이지 디자인 토큰 차용
   폰트: Sora + Space Mono | 컬러: #0A0A0A · #1A6EFF · #00C47A
   ============================================================ */

/* 폰트: 시스템 폰트 사용 — 0에 점 없는 Apple SD Gothic Neo / Pretendard */

/* ── 디자인 토큰 (랜딩페이지와 동일) ────────────────────── */
:root {
    --black:       #0A0A0A;
    --white:       #FFFFFF;
    --gray-50:     #F7F8FA;
    --gray-100:    #F0F1F5;
    --gray-200:    #E2E4EB;
    --gray-400:    #9EA3B0;
    --gray-600:    #5A5F72;
    --gray-800:    #2A2D3A;
    --blue:        #1A6EFF;
    --blue-dark:   #1056CC;
    --blue-light:  #EBF2FF;
    --blue-mid:    #D1E4FF;
    --green:       #00C47A;
    --green-light: #E6FAF3;
    --red:         #FF4040;
    --red-light:   #FFF0F0;
    --yellow:      #F5A623;

    --r-sm: 8px;
    --r:    16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --shadow:    0 8px 28px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 56px rgba(0,0,0,.11);

    --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --mono: 'SF Mono', 'Consolas', 'Menlo', monospace;
    --num:  -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', sans-serif;
}

/* ── 기본 ─────────────────────────────────────────────── */
.imp-wrap, .imp-wrap * { box-sizing: border-box; font-family: var(--font); }
/* select 글자 하단 잘림 방지 — 모든 환경 공통 */
.imp-wrap select { line-height: 1.6; padding-top: 0.55em; padding-bottom: 0.55em; height: auto; min-height: 2.5em; overflow: visible; }
.imp-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; color: var(--black); }
.imp-wrap h2 { font-size: 22px; font-weight: 700; margin: 0 0 20px; letter-spacing: -.5px; }
.imp-wrap h3 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.imp-wrap h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.imp-desc { color: var(--gray-600); font-size: 14px; margin: 0 0 16px; line-height: 1.7; }
.imp-empty { text-align: center; padding: 48px 24px; color: var(--gray-400); background: var(--gray-50); border-radius: var(--r-lg); border: 1.5px dashed var(--gray-200); }
.imp-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-600); font-size: 14px; font-weight: 500; text-decoration: none; margin-bottom: 20px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--gray-100); transition: background .15s; }
.imp-back-link:hover { background: var(--gray-200); color: var(--black); }

/* ── 네비게이션 ───────────────────────────────────────── */
/* 랜딩페이지 NAV 동일: blur backdrop + 하얀 배경 */
.imp-navbar {
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 999;
    box-shadow: var(--shadow-sm);
}
.imp-navbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 0 20px; height: 64px; }

/* 로고: SF 박스마크 + Short + Factory (span=blue) */
.imp-navbar-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: 16px; }
.imp-navbar-logo-mark {
    width: 32px; height: 32px; background: var(--blue); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.imp-navbar-logo-text { font-size: 16px; font-weight: 700; color: var(--black); letter-spacing: -.4px; }
.imp-navbar-logo-text span { color: var(--blue); }

.imp-navbar-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.imp-navbar-links a { padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--gray-600); font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap; }
.imp-navbar-links a:hover { background: var(--gray-100); color: var(--black); }
.imp-navbar-links a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* 포인트 뱃지: 랜딩 nav-cta 스타일 */
.imp-pts-badge {
    background: var(--blue); color: #fff;
    padding: 6px 14px; border-radius: var(--r-sm);
    font-size: 13px; font-weight: 600;
    font-family: var(--mono); letter-spacing: -.3px;
}

.imp-navbar-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.imp-nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.imp-nav-name { font-size: 13px; color: var(--gray-600); font-weight: 500; }
.imp-nav-logout { font-size: 13px; color: var(--gray-400); text-decoration: none; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--gray-200); transition: all .15s; }
.imp-nav-logout:hover { color: var(--red); border-color: var(--red); background: var(--red-light); }
.imp-navbar-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; margin-left: auto; }

@media (max-width: 768px) {
    .imp-navbar-toggle { display: block; }
    .imp-navbar-user { display: none; }
    .imp-navbar-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--gray-200); padding: 8px; box-shadow: var(--shadow); }
    .imp-navbar-links.open { display: flex; }
    .imp-navbar-links a { padding: 12px 16px; }
}

/* ── 로그인 ───────────────────────────────────────────── */
.imp-login-wrap { min-height: 90vh; display: flex; align-items: center; justify-content: center; background: var(--gray-50); padding: 24px; }
.imp-login-box {
    background: var(--white); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); padding: 48px 40px;
    text-align: center; max-width: 420px; width: 100%;
}
/* 로그인 로고: 랜딩 footer-logo 스타일 */
.imp-login-logo { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 22px; }
.imp-login-logo-mark { width: 36px; height: 36px; background: var(--blue); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; }
.imp-login-logo-text { font-size: 18px; font-weight: 700; color: var(--black); letter-spacing: -.4px; }
.imp-login-logo-text span { color: var(--blue); }
/* ── ShortFactory 로고 (로그인 화면 공통) ── */
.imp-login-logo-sf {
    display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.imp-sf-icon {
    width: 40px; height: 40px;
    background: var(--blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 15px; font-weight: 700; color: #fff;
    letter-spacing: -0.5px; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26,110,255,.25);
}
.imp-sf-brand {
    font-size: 22px; font-weight: 800; color: var(--black);
    letter-spacing: -0.5px; line-height: 1;
}
.imp-sf-brand span { color: var(--blue); }
/* 미니멀 로그인 박스 */
.imp-login-minimal { text-align: center; padding: 48px 32px 40px; }
.imp-login-minimal .imp-login-logo-sf { justify-content: center; margin-bottom: 32px; }
.imp-login-minimal .imp-sf-icon { width: 52px; height: 52px; font-size: 18px; border-radius: 14px; }
.imp-login-minimal .imp-sf-brand { font-size: 26px; }
.imp-login-box h2 { font-size: 20px; margin: 0 0 8px; font-weight: 700; letter-spacing: -.4px; }
.imp-login-box p  { color: var(--gray-600); margin: 0 0 28px; font-size: 14px; line-height: 1.6; }
.imp-login-desc   { font-size: 12px; color: var(--gray-400); margin-top: 16px; }
.imp-social-btns  { margin: 8px 0; }

/* ── 버튼 ─────────────────────────────────────────────── */
.imp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .2s; font-family: var(--font); }
.imp-btn-primary { background: var(--blue); color: #fff; }
.imp-btn-primary:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,110,255,.28); color: #fff; }
.imp-btn-secondary { background: var(--gray-50); color: var(--gray-800); border: 1px solid var(--gray-200); }
.imp-btn-secondary:hover:not(:disabled) { background: var(--gray-100); transform: translateY(-1px); color: var(--black); }
.imp-btn-danger { background: var(--red-light); color: var(--red); }
.imp-btn-danger:hover:not(:disabled) { background: var(--red); color: #fff; }
.imp-btn-sm  { padding: 6px 14px; font-size: 12px; border-radius: var(--r-sm); }
.imp-btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: var(--r); }
.imp-btn-full { width: 100%; }
.imp-btn:disabled { opacity: .45; cursor: not-allowed; }

/* 소셜 로그인 버튼 */
.imp-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px 20px; border-radius: var(--r);
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all .2s; border: 1.5px solid var(--gray-200);
    background: var(--white); color: var(--black); font-family: var(--font);
}
.imp-social-btn:hover { background: var(--gray-50); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--black); }

/* ── 폼 ──────────────────────────────────────────────── */
.imp-form { display: flex; flex-direction: column; gap: 14px; }
.imp-field-group { display: flex; flex-direction: column; gap: 6px; }
.imp-field-group label { font-size: 13px; font-weight: 600; color: var(--gray-800); text-align: left; }
.imp-field-group input,
.imp-field-group select,
.imp-field-group textarea { padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm); font-size: 14px; color: var(--black); transition: border .15s, box-shadow .15s; background: var(--white); font-family: var(--font); outline: none; box-sizing: border-box; line-height: 1.5; }
.imp-field-group select { padding-top: 12px; padding-bottom: 12px; height: auto; min-height: 46px; -webkit-appearance: auto; appearance: auto; }
.imp-field-group input:focus,
.imp-field-group select:focus,
.imp-field-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,110,255,.1); }
.imp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.imp-message { font-size: 13px; padding: 10px 14px; border-radius: var(--r-sm); margin-top: 6px; display: none; font-weight: 500; }
.imp-message.success { background: var(--green-light); color: #006845; display: block; }
.imp-message.error   { background: var(--red-light);   color: #C0202A; display: block; }
.imp-error-msg { background: var(--red-light); color: #C0202A; border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; margin-bottom: 16px; font-weight: 500; }
.imp-warn { color: var(--yellow); font-size: 13px; font-weight: 600; }
.imp-warn-box { background: #FFFAE6; border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #7A5C00; }

/* ── 섹션 카드 ───────────────────────────────────────── */
.imp-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.imp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.imp-section-head h3 { margin: 0; }

/* ── 통계 카드 ───────────────────────────────────────── */
/* 랜딩페이지 winwin-card 스타일 차용 */
.imp-stats-grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.imp-stat-card {
    background: var(--white); border-radius: var(--r-lg); padding: 22px;
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 4px;
    transition: all .25s;
}
.imp-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-mid); }
.imp-stat-card span   { font-size: 22px; margin-bottom: 4px; }
.imp-stat-card strong { font-size: 26px; font-weight: 800; color: var(--black); letter-spacing: -1px; font-family: var(--mono); }
.imp-stat-card small  { font-size: 12px; color: var(--gray-400); font-weight: 700; font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }

.imp-stat-cards { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 20px; }
.imp-sc { background: var(--white); border-radius: var(--r); padding: 18px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: all .25s; }
.imp-sc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.imp-sc span   { font-size: 20px; display: block; margin-bottom: 8px; }
.imp-sc strong { display: block; font-size: 22px; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; }
.imp-sc small  { font-size: 12px; color: var(--gray-400); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--mono); }
.imp-sc.blue   { border-top: 3px solid var(--blue); }
.imp-sc.purple { border-top: 3px solid #7C3AED; }
.imp-sc.green  { border-top: 3px solid var(--green); }
.imp-sc.orange { border-top: 3px solid var(--yellow); }
.imp-sc.pink   { border-top: 3px solid #EC4899; }
.imp-sc.red    { border-top: 3px solid var(--red); }

/* ── 대시보드 히어로 ──────────────────────────────────── */
/* 파란 배경 + 흰 글자 (랜딩 stat-bar의 검정배경과 대응하는 플랫폼 컬러) */
.imp-dash-hero {
    display: flex; align-items: center; gap: 16px;
    background: var(--blue); color: #fff;
    border-radius: var(--r-xl); padding: 28px;
    margin-bottom: 20px;
}
.imp-dash-avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); flex-shrink: 0; }
.imp-dash-hero h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #fff; }
.imp-dash-hero p  { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
/* 역할 뱃지: 랜딩 section-tag 스타일 */
.imp-role-badge {
    display: inline-block;
    background: rgba(255,255,255,.2); color: #fff;
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    font-family: var(--mono); letter-spacing: 2px; text-transform: uppercase;
}

/* ── 포인트 히어로 ───────────────────────────────────── */
/* 연회색 배경 + 검정 텍스트: 명확한 대비 */
.imp-point-hero {
    background: var(--gray-100); color: var(--black);
    border-radius: var(--r-xl); padding: 36px 28px;
    margin-bottom: 20px; text-align: center;
    border: 1px solid var(--gray-200);
}
.imp-point-hero p {
    margin: 0 0 6px; color: var(--gray-400);
    font-size: 12px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase; font-family: var(--mono);
}
.imp-point-hero h2 { font-family: var(--num);
    margin: 0 0 6px; font-size: 52px; font-weight: 800;
    color: var(--black); letter-spacing: -2px; font-family: var(--mono);
}
.imp-point-hero h2 span { font-size: 22px; font-weight: 600; color: var(--blue); letter-spacing: 0; font-family: var(--font); }
.imp-point-hero small { color: var(--gray-400); font-size: 12px; font-family: var(--mono); }
.imp-point-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; background: var(--blue); color: #fff;
    padding: 13px 28px; border-radius: var(--r); font-size: 14px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .25s; font-family: var(--font);
}
.imp-point-cta:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,110,255,.28); color: #fff; }
.imp-plus  { color: var(--green); font-weight: 700; }
.imp-minus { color: var(--red);   font-weight: 700; }

/* ── 탭 ──────────────────────────────────────────────── */
/* 랜딩 portfolio-tabs 스타일 차용 */
.imp-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.imp-tab {
    padding: 8px 18px; border-radius: 40px; border: 1.5px solid var(--gray-200);
    background: var(--white); cursor: pointer; font-size: 13px; font-weight: 500;
    color: var(--gray-600); transition: all .2s; font-family: var(--font);
}
.imp-tab:hover  { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.imp-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }

/* ── 배지 ─────────────────────────────────────────────── */
/* 랜딩 badge-good/bad 스타일 차용 */
.imp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: var(--mono); letter-spacing: .3px; white-space: nowrap; }
.imp-status-pending   { background: #FFF8E1; color: #8B6914; }
.imp-status-approved  { background: var(--green-light); color: #006845; }
.imp-status-rejected  { background: var(--red-light);   color: #C0202A; }
.imp-status-completed { background: var(--blue-light);  color: var(--blue-dark); }
.imp-camp-draft     { background: var(--gray-100); color: var(--gray-600); }
.imp-camp-active    { background: var(--green-light); color: #006845; }
.imp-camp-closed    { background: var(--red-light);   color: #C0202A; }
.imp-camp-completed { background: var(--blue-light);  color: var(--blue-dark); }
.imp-badge-upload   { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: var(--mono); white-space: nowrap; }
.imp-badge-upload.pending  { background: #FFF8E1; color: #8B6914; }
.imp-badge-upload.verified { background: var(--green-light); color: #006845; }
.imp-wd-pending   { background: #FFF8E1; color: #8B6914; }
.imp-wd-completed { background: var(--green-light); color: #006845; }
.imp-wd-cancelled { background: var(--red-light);   color: #C0202A; }

/* ── 캠페인 그리드 ───────────────────────────────────── */
/* 랜딩 service-card / winwin-card 스타일 차용 */
.imp-campaign-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.imp-campaign-card {
    background: var(--white); border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--gray-200); text-decoration: none; color: var(--black);
    transition: all .25s; box-shadow: var(--shadow-sm); position: relative;
}
/* 상단 블루 라인 hover 효과 (랜딩 service-card::after) */
.imp-campaign-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.imp-campaign-card:hover::after { transform: scaleX(1); }
.imp-campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-mid); }
.imp-camp-thumb { height: 148px; background: linear-gradient(135deg, var(--blue), #7C3AED); background-size: cover; background-position: center; }
.imp-camp-no-thumb { display: flex; align-items: center; justify-content: center; font-size: 36px; }
.imp-camp-body { padding: 18px; }
.imp-camp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
/* 태그: 랜딩 algo-tag / winwin-pill 스타일 */
.imp-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-light); color: var(--blue); padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1px solid var(--blue-mid); font-family: var(--mono); letter-spacing: .3px; }
.imp-camp-body h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.imp-camp-desc { font-size: 13px; color: var(--gray-600); margin: 0 0 10px; line-height: 1.6; }
.imp-camp-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray-600); margin-bottom: 10px; }
.imp-progress-bar { background: var(--gray-100); border-radius: 4px; height: 3px; overflow: hidden; margin-bottom: 4px; }
.imp-progress-bar div { height: 100%; background: var(--blue); border-radius: 4px; transition: width .5s; }
.imp-progress-txt { font-size: 13px; color: var(--gray-400); font-family: var(--mono); }

/* ── 캠페인 상세 ─────────────────────────────────────── */
.imp-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.imp-detail-thumb { width: 100%; border-radius: var(--r-lg); margin-bottom: 16px; }
.imp-detail-section { margin-bottom: 20px; }
/* 설명/가이드 텍스트: 복사 가능, 링크 클릭 가능 */
.imp-content-text {
    user-select: text; -webkit-user-select: text;
    line-height: 1.8; font-size: 14px; color: var(--gray-700, #464F60);
    white-space: pre-wrap; word-break: break-word;
}
.imp-guide-text {
    background: var(--gray-50, #F9FAFB);
    border: 1px solid var(--gray-200, #E5E8EB);
    border-left: 4px solid var(--blue, #1A6EFF);
    border-radius: 8px; padding: 14px 16px;
}
/* 섹션 레이블: 랜딩 section-tag 스타일 */
.imp-detail-section h4 {
    font-size: 12px; color: var(--blue); margin: 0 0 10px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; font-family: var(--mono);
}
.imp-detail-section p { font-size: 14px; line-height: 1.8; margin: 0; color: var(--gray-600); }
.imp-drive-box { background: var(--blue-light); border-radius: var(--r); padding: 16px; border: 1px solid var(--blue-mid); }
.imp-side-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 76px; box-shadow: var(--shadow-sm); }
.imp-info-list { margin-bottom: 16px; }
.imp-info-list div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.imp-info-list div:last-child { border: none; }
.imp-info-list span { color: var(--gray-400); font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.imp-info-list strong { color: var(--black); font-weight: 600; }
.imp-point-highlight { color: var(--blue); font-size: 20px; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; }
.imp-applied-done { background: var(--green-light); border-radius: var(--r); padding: 16px; text-align: center; border: 1px solid rgba(0,196,122,.2); }
.imp-applied-done strong { display: block; color: #006845; margin-bottom: 6px; font-weight: 700; }
.imp-closed-msg { background: var(--gray-100); color: var(--gray-600); border-radius: var(--r); padding: 14px; text-align: center; font-size: 14px; }

/* ── 역할 선택 카드 (로그인) ─────────────────────────── */
.imp-role-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 16px; }
.imp-role-card { border: 2px solid var(--gray-200); border-radius: var(--r); padding: 14px; cursor: pointer; transition: all .2s; text-align: center; }
.imp-role-card:hover { border-color: var(--blue-mid); background: var(--gray-50); }
.imp-role-card.selected,
.imp-role-card:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }

/* ── 채널 ─────────────────────────────────────────────── */
.imp-ch-mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.imp-ch-mini { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r); padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.imp-ch-mini small { display: block; color: var(--gray-400); font-size: 13px; }
.imp-ch-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: var(--r); margin-bottom: 8px; background: var(--white); transition: all .2s; box-shadow: var(--shadow-sm); }
.imp-ch-item:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); }
.imp-ch-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.imp-ch-info { flex: 1; }
.imp-ch-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.imp-ch-info a    { font-size: 12px; color: var(--blue); text-decoration: none; display: block; }
.imp-ch-info small { font-size: 13px; color: var(--gray-400); font-family: var(--mono); }
.imp-ch-platform-badge { display: inline-block; background: var(--gray-100); color: var(--gray-600); font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-bottom: 2px; font-family: var(--mono); letter-spacing: .5px; }

/* ── 업로드 ───────────────────────────────────────────── */
.imp-upload-item { border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 18px; margin-bottom: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.imp-upload-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.imp-upload-submitted { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--gray-50); padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--gray-200); }

/* ── 테이블 ───────────────────────────────────────────── */
/* 랜딩 compare-table 스타일 차용 */
.imp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.imp-table th {
    background: var(--gray-50); padding: 14px 16px; text-align: left;
    font-size: 12px; color: var(--gray-400); font-weight: 700;
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
}
.imp-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; color: var(--gray-800); }
.imp-table tr:last-child td { border-bottom: none; }
.imp-table tr:hover td { background: var(--gray-50); }
.imp-cid { background: var(--gray-100); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-family: var(--mono); color: var(--gray-600); }

/* ── 광고주 ───────────────────────────────────────────── */
.imp-adv-camp-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: all .25s; }
.imp-adv-camp-card:hover { box-shadow: var(--shadow); border-color: var(--blue-mid); transform: translateY(-2px); }
.imp-adv-camp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 16px; }
.imp-adv-camp-head h4 { margin: 4px 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.imp-adv-camp-stats { display: flex; gap: 20px; text-align: center; flex-shrink: 0; }
.imp-adv-camp-stats strong { display: block; font-size: 24px; font-weight: 800; color: var(--blue); letter-spacing: -1px; font-family: var(--mono); }
.imp-adv-camp-stats small  { font-size: 12px; color: var(--gray-400); font-weight: 700; font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.imp-adv-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.imp-payment-box { background: var(--blue-light); border-radius: var(--r); padding: 16px; margin-bottom: 12px; font-size: 14px; border: 1px solid var(--blue-mid); }
.imp-payment-box h5 { margin: 0 0 8px; color: var(--blue-dark); font-size: 14px; font-weight: 700; }
.imp-payment-box p { margin: 4px 0; }
.imp-payment-preview { background: var(--green-light); border: 1px solid rgba(0,196,122,.2); }
.imp-bank-info { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 8px 0; }
.imp-bank-info strong { color: var(--blue); font-size: 20px; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; }
.imp-applicants summary { cursor: pointer; font-size: 13px; color: var(--blue); padding: 6px 0; font-weight: 600; }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .imp-campaign-grid { grid-template-columns: repeat(2,1fr); }
    .imp-stat-cards    { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
    .imp-campaign-grid { grid-template-columns: 1fr; }
    .imp-detail-grid   { grid-template-columns: 1fr; }
    .imp-form-row      { grid-template-columns: 1fr; }
    .imp-stats-grid4   { grid-template-columns: repeat(2,1fr); }
    .imp-stat-cards    { grid-template-columns: repeat(2,1fr); }
    .imp-role-grid     { grid-template-columns: 1fr 1fr; }
    .imp-side-card     { position: static; }
    .imp-adv-camp-head { flex-direction: column; }
    .imp-login-box     { padding: 32px 20px; }
    .imp-ch-mini-grid  { grid-template-columns: 1fr; }
    .imp-wrap          { padding: 20px 16px 60px; }
    .imp-point-hero h2 { font-size: 40px; }
}
@media (max-width: 480px) {
    .imp-stats-grid4 { grid-template-columns: 1fr 1fr; }
    .imp-role-grid   { grid-template-columns: 1fr; }
    .imp-stat-cards  { grid-template-columns: repeat(2,1fr); }
    .imp-point-hero  { padding: 24px 16px; }
}

/* ── 캠페인 상태 배지 (썸네일 우측 상단) ──────────────── */
.imp-status-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 13px; font-weight: 700; font-family: var(--mono);
    letter-spacing: .3px; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.imp-chip-active {
    background: rgba(0,196,122,.92); color: #fff;
}
.imp-chip-closed {
    background: rgba(60,60,70,.85); color: rgba(255,255,255,.85);
}

/* 마감된 캠페인 카드: 약간 흐리게 */
.imp-camp-closed-card {
    opacity: .78;
    filter: grayscale(20%);
}
.imp-camp-closed-card:hover {
    opacity: 1;
    filter: none;
}
.imp-camp-no-thumb-closed {
    background: linear-gradient(135deg, var(--gray-400), var(--gray-600)) !important;
}

/* ── v4.7 드라이브/가이드 박스 ── */
.imp-drive-box {
    background: #EBF3FE;
    border: 1px solid #BEE3F8;
    border-radius: 10px;
    padding: 16px 18px;
}
.imp-guide-copy-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 16px 18px;
}
.imp-guide-copy-box h4 { color: #92400E; margin: 0 0 10px; }

/* 캠페인 카드 meta - 조회수 기반 */

.imp-camp-meta span {
    background: var(--gray-50, #F9FAFB);
    border: 1px solid var(--gray-200, #E5E8EB);
    border-radius: 6px;
    padding: 2px 8px;
}

/* 캠페인 정보 리스트 */
.imp-info-list > div {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid var(--gray-100, #F2F4F6);
    font-size: 13px; gap: 12px;
}
.imp-info-list > div:last-child { border-bottom: none; }
.imp-info-list > div > span:first-child { color: var(--gray-500, #8B95A1); flex-shrink: 0; }
.imp-info-list > div > strong { text-align: right; }

/* ── v4.7 광고주 대시보드 개선 ── */
.imp-adv-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200, #E5E8EB);
    flex-wrap: wrap;
}

.imp-adv-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.imp-adv-meta-row > span {
    font-size: 12px;
    color: var(--gray-600, #555);
    background: var(--gray-50, #F9FAFB);
    border: 1px solid var(--gray-200, #E5E8EB);
    border-radius: 6px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.imp-tag-blue {
    background: #EBF3FE !important;
    border-color: #BEE3F8 !important;
    color: #1A6EFF !important;
    font-weight: 600;
}
.imp-tag-green {
    background: #F0FFF4 !important;
    border-color: #9AE6B4 !important;
    color: #1a7a3c !important;
    font-weight: 600;
}

/* 캠페인 카드 간격 */
.imp-adv-camp-card {
    padding: 20px 22px;
    margin-bottom: 16px;
}
.imp-adv-camp-head {
    gap: 20px;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .imp-adv-hero-row { flex-direction: column; align-items: flex-start; }
    .imp-adv-camp-stats { gap: 14px; }
    .imp-adv-camp-stats strong { font-size: 20px; }
}

/* ── 광고주 - 큰 플랫폼 선택 체크박스 ── */
.imp-pf-big-check {
    cursor: pointer;
    user-select: none;
}
.imp-pf-big-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.imp-pf-big-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    border: 2px solid #E5E8EB;
    border-radius: 14px;
    background: #FAFAFA;
    transition: all .18s;
    min-width: 100px;
}
.imp-pf-big-inner:hover {
    border-color: #A0C4FF;
    background: #F0F7FF;
}
.imp-pf-big-check input:checked + .imp-pf-big-inner {
    border-color: #1A6EFF;
    background: #EBF3FE;
    box-shadow: 0 0 0 3px rgba(26,110,255,.12);
}
.imp-pf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.imp-pf-icon svg { width: 32px !important; height: 32px !important; }
.imp-pf-name {
    font-size: 13px;
    font-weight: 700;
    color: #191F28;
    white-space: nowrap;
}
.imp-pf-big-check input:checked + .imp-pf-big-inner .imp-pf-name {
    color: #1A6EFF;
}

@media (max-width: 480px) {
    .imp-pf-big-inner { padding: 14px 16px; min-width: 80px; }
    .imp-pf-icon svg { width: 26px !important; height: 26px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   캠페인 탭 메뉴 (진행중/참여한/종료된/서비스소개)
═══════════════════════════════════════════════════════════════ */
.imp-tab-menu {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200, #E5E8EB);
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.imp-tab-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500, #8B95A1);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.imp-tab-item:hover { color: var(--primary, #FF5050); }
.imp-tab-item.active {
    color: var(--primary, #FF5050);
    border-bottom-color: var(--primary, #FF5050);
    font-weight: 700;
}

/* 플랫폼 탭 필터 */
.imp-ptab-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.imp-ptab {
    padding: 8px 20px;
    border: 1.5px solid var(--gray-200, #E5E8EB);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: var(--gray-700, #333D4B);
    cursor: pointer;
    transition: all .2s;
}
.imp-ptab:hover { border-color: var(--primary, #FF5050); color: var(--primary, #FF5050); }
.imp-ptab.active {
    background: var(--primary, #FF5050);
    border-color: var(--primary, #FF5050);
    color: #fff;
}

/* 캠페인 페이지 헤더 */
.imp-camp-page-head { margin-bottom: 20px; }
.imp-camp-page-head h2 { font-size: 22px; font-weight: 800; color: #191F28; margin-bottom: 16px; }
.imp-camp-page-desc { font-size: 14px; color: var(--gray-500, #8B95A1); margin: 8px 0 12px; }

/* 검색 폼 */
.imp-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--gray-200, #E5E8EB);
    border-radius: 10px;
    padding: 10px 16px;
    gap: 8px;
    max-width: 600px;
}
.imp-search-icon { color: var(--gray-400, #B0B8C1); font-size: 16px; }
.imp-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #191F28;
    background: transparent;
}
.imp-search-input::placeholder { color: var(--gray-400, #B0B8C1); }

/* 캠페인 카드 그리드 (4열 → 반응형) */
.imp-ccard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
@media (max-width: 1100px) { .imp-ccard-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .imp-ccard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .imp-ccard-grid { grid-template-columns: 1fr 1fr; } }

/* 캠페인 카드 */
.imp-ccard {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100, #F2F4F6);
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .15s;
}
.imp-ccard:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.imp-ccard-thumb {
    position: relative;
    width: 100%;
    padding-top: 62%;
    background: #F2F4F6;
    overflow: hidden;
}
.imp-ccard-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.imp-ccard-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.imp-ccard-badge.badge-ended {
    background: rgba(0,0,0,.55);
    color: #fff;
}
.imp-ccard-badge.badge-closed {
    background: rgba(255,80,80,.85);
    color: #fff;
}
.imp-ccard-pf-icon {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.imp-ccard-body { padding: 12px 14px 14px; flex: 1; }
.imp-ccard-cat { font-size: 12px; font-weight: 700; color: var(--primary, #FF5050); margin-bottom: 4px; }
.imp-ccard-name { font-size: 14px; font-weight: 600; color: #191F28; line-height: 1.4; }

/* 빈 상태 */
.imp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400, #B0B8C1);
    background: #FAFAFA;
    border-radius: 12px;
    border: 1.5px dashed var(--gray-200, #E5E8EB);
}
.imp-empty-icon { font-size: 40px; margin-bottom: 12px; }
.imp-empty-state p { font-size: 15px; margin: 0; }

/* 페이지네이션 */
.imp-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.imp-pgbtn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--gray-200, #E5E8EB);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600, #6B7684);
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}
.imp-pgbtn:hover { border-color: var(--primary, #FF5050); color: var(--primary, #FF5050); }
.imp-pgbtn.active {
    background: var(--primary, #FF5050);
    border-color: var(--primary, #FF5050);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   공지사항 배너
═══════════════════════════════════════════════════════════════ */
.imp-notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border: 1.5px solid var(--gray-100, #F2F4F6);
    border-radius: 10px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.imp-notice-bar:hover { background: #FFF5F5; }
.imp-notice-tag {
    background: var(--primary, #FF5050);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.imp-notice-title { flex: 1; font-size: 14px; font-weight: 500; color: #191F28; }
.imp-notice-date  { font-size: 12px; color: var(--gray-400, #B0B8C1); flex-shrink: 0; }
.imp-notice-dot   { color: var(--primary, #FF5050); font-size: 18px; flex-shrink: 0; }

/* 공지 모달 */
.imp-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    align-items: center; justify-content: center;
    display: flex;
}
.imp-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
}
.imp-modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(520px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    z-index: 1;
}
.imp-modal-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
    font-size: 16px; font-weight: 700;
}
.imp-modal-close {
    background: none; border: none;
    font-size: 18px; cursor: pointer;
    color: var(--gray-400, #B0B8C1);
    padding: 0 4px;
}
.imp-modal-body { font-size: 14px; line-height: 1.8; color: #444; }
.imp-modal-date  { margin-top: 12px; font-size: 12px; color: var(--gray-400, #B0B8C1); text-align: right; }

/* ═══════════════════════════════════════════════════════════════
   정산관리 페이지
═══════════════════════════════════════════════════════════════ */
.imp-settlement h2 { font-size: 22px; font-weight: 800; color: #191F28; margin-bottom: 20px; }

.imp-stab-menu {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.imp-stab {
    padding: 9px 20px;
    border: 1.5px solid var(--gray-200, #E5E8EB);
    border-radius: 8px;
    font-size: 14px; font-weight: 500;
    color: var(--gray-600, #6B7684);
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}
.imp-stab:hover { border-color: var(--primary, #FF5050); color: var(--primary, #FF5050); }
.imp-stab.active {
    background: var(--primary, #FF5050);
    border-color: var(--primary, #FF5050);
    color: #fff;
    font-weight: 700;
}

.imp-sett-faq {
    background: #fff;
    border: 1px solid var(--gray-100, #F2F4F6);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}
.imp-faq-toggle {
    width: 100%; text-align: left;
    padding: 14px 18px;
    background: none; border: none;
    font-size: 13px; font-weight: 600;
    color: var(--primary, #FF5050);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.imp-faq-body { display: none; padding: 12px 18px 16px; font-size: 13px; line-height: 1.9; }
.imp-faq-body.open { display: block; }
.imp-faq-arrow { transition: transform .2s; }
.imp-faq-toggle[aria-expanded="true"] .imp-faq-arrow { transform: rotate(180deg); }

.imp-sett-card {
    background: #fff;
    border: 1px solid var(--gray-100, #F2F4F6);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.imp-sett-card h3 { font-size: 18px; font-weight: 700; margin-top: 0; margin-bottom: 20px; }

.imp-sett-filter { margin-bottom: 20px; }
.imp-month-input { padding: 7px 10px; border: 1.5px solid var(--gray-200,#E5E8EB); border-radius:7px; font-size:13px; }

.imp-sett-chart-wrap { margin-bottom: 24px; border-radius: 8px; overflow: hidden; background:#FAFAFA; padding: 12px; }
#imp-sett-chart { width: 100%; display: block; }

.imp-sett-list { display: flex; flex-direction: column; gap: 16px; }
.imp-sett-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    border: 1px solid var(--gray-100, #F2F4F6);
    border-radius: 10px;
    padding: 16px;
}
@media(max-width:600px) { .imp-sett-row { grid-template-columns: 1fr; } }
.imp-sett-row-left { border-right: 1px solid var(--gray-100,#F2F4F6); padding-right: 16px; }
@media(max-width:600px) { .imp-sett-row-left { border-right:none; border-bottom:1px solid var(--gray-100,#F2F4F6); padding: 0 0 12px; } }
.imp-sett-month-label { font-size: 12px; color: var(--gray-400,#B0B8C1); margin-bottom: 2px; }
.imp-sett-month-value { font-size: 18px; font-weight: 700; color: #191F28; margin-bottom: 6px; }

.imp-sett-big { margin-bottom: 12px; }
.imp-sett-big strong { font-size: 28px; font-weight: 800; display: block; color: #191F28; }
.imp-sett-big small { font-size: 13px; color: var(--gray-400,#B0B8C1); }
.imp-sett-status-dot { font-size: 12px; }
.imp-sett-status-dot.red { color: #FF5050; }

.imp-sett-item { display:flex; justify-content:space-between; font-size:13px; color:#444; padding: 2px 0; }
.imp-sett-item strong { color: #191F28; }
.imp-sett-item-desc { font-size: 13px; color: var(--gray-400,#B0B8C1); margin-bottom:6px; padding-left: 8px; }

.imp-sett-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.imp-sett-status.red    { background: #FEE2E2; color: #FF5050; }
.imp-sett-status.green  { background: #D1FAE5; color: #065F46; }
.imp-sett-status.purple { background: #EDE9FE; color: #7C3AED; }
.imp-sett-status.gray   { background: #F2F4F6; color: #6B7684; }

.imp-balance-box {
    display: flex; gap: 32px;
    background: #F9FAFB;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.imp-balance-box div { display: flex; flex-direction: column; gap: 4px; }
.imp-balance-box span { font-size: 12px; color: var(--gray-500,#8B95A1); }
.imp-balance-box strong { font-size: 20px; font-weight: 800; color: #191F28; }
.imp-balance-box strong.red { color: var(--primary,#FF5050); }

.imp-notice-box {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}
.imp-select-sm { padding: 7px 10px; border: 1.5px solid #E5E8EB; border-radius: 7px; font-size: 13px; line-height: 1.5; height: auto; min-height: 36px; box-sizing: border-box; font-family: var(--font); background: #fff; -webkit-appearance: auto; appearance: auto; }

.imp-myinfo-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100,#F2F4F6);
    font-size: 14px;
}
.imp-myinfo-row span { color: var(--gray-500,#8B95A1); }
.imp-myinfo-row strong { color: #191F28; font-weight: 600; }

/* 서비스 소개 */
.imp-service-intro { padding: 8px 0 32px; }

/* ═══════════════════════════════════════════════════════════════
   정산관리 navbar 링크 (포인트 → 정산관리로 교체 완료)
═══════════════════════════════════════════════════════════════ */
.imp-navbar-links a[href*="settlement"] { }

/* ── 구글 로그인 버튼 ── */
.imp-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--r);
    background: #fff;
    color: #3C4043;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: box-shadow .2s, background .15s;
    cursor: pointer;
    font-family: var(--font);
}
.imp-btn-google:hover {
    background: #F8F9FA;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    color: #3C4043;
    text-decoration: none;
}

/* ── 캠페인 탭 ── */
.imp-camp-tab-bar { display:flex; gap:6px; margin-bottom:20px; border-bottom:2px solid var(--gray-200); }

/* ── 정산관리 - 헤더 없는 스타일 ── */
.imp-settlement .imp-stab-menu { margin-top: 0; }

/* ── 숫자 폰트 (Inter - 0에 슬래시 없음, tabular) ── */
.imp-num,
.imp-point-hero h2,
.imp-stat-val,
strong.red,
.imp-sett-big strong,
.imp-balance-box strong {
    font-family: var(--num);
    font-feature-settings: "tnum" 1;  /* tabular numbers */
}

/* ── 최소 폰트 사이즈 보호 ── */
.imp-wrap { font-size: 15px; }
.imp-wrap small,
.imp-wrap .small { font-size: 13px !important; min-font-size: 13px; }

/* ============================================================
   v5.11 업데이트 — 토스 스타일 + 모바일 최적화
   ============================================================ */

/* 0(영) 가운데 점 폰트 수정: 시스템 폰트로 대체 완료 */
:root {
    --blue:        #3182F6;   /* 토스 블루 (연한 파란색) */
    --blue-dark:   #1B64DA;
    --blue-light:  #EEF4FF;
    --blue-mid:    #C7DCFF;
}

/* 전체 숫자 폰트 - 0에 점 없는 폰트 강제 */
.imp-wrap, .imp-wrap * {
    font-variant-numeric: normal;
    font-feature-settings: normal;
}

/* ── 캠페인 탭 (모바일 가로스크롤) ─────────────────────── */
.imp-camp-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--gray-200);
}
.imp-camp-tabs::-webkit-scrollbar { display: none; }
.imp-camp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--gray-600);
    background: var(--gray-100);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}
.imp-camp-tab.active {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}
.imp-camp-tab-cnt {
    background: rgba(255,255,255,.25);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
}
.imp-camp-tab:not(.active) .imp-camp-tab-cnt {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* ── 내비게이션 — 모바일 가로스크롤 (햄버거 제거) ──────── */
@media (max-width: 768px) {
    .imp-navbar-toggle { display: none !important; }
    .imp-navbar-user   { display: none !important; }
    .imp-navbar-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        flex: 1;
        gap: 0;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: none !important;
    }
    .imp-navbar-links::-webkit-scrollbar { display: none !important; }
    .imp-navbar-links a {
        padding: 6px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }
    .imp-navbar-inner {
        height: 52px !important;
        gap: 0 !important;
        padding: 0 12px !important;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .imp-navbar-logo { margin-right: 8px !important; flex-shrink: 0; }
    .imp-navbar-logo-text { display: none !important; }

    /* 캠페인 그리드 → 1열 */
    .imp-campaign-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

    /* 수익 보고서 조회 버튼 세로 가운데 */
    .imp-report-filter { flex-wrap: wrap; }
    .imp-report-filter button, .imp-report-filter .imp-btn {
        align-self: center !important;
    }

    /* wrap 패딩 줄이기 */
    .imp-wrap { padding: 16px 12px 60px !important; }

    /* 카드 */
    .imp-campaign-card { border-radius: 12px; }
    .imp-camp-thumb { height: 180px; }

    /* 정산관리 탭 */
    .imp-stab-menu {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    .imp-stab { white-space: nowrap; flex-shrink: 0; }

    /* 섹션 패딩 */
    .imp-section { padding: 16px !important; }

    /* 그리드 레이아웃 → 단열 */
    .imp-channels-grid, .imp-form-row {
        grid-template-columns: 1fr !important;
    }

    /* 공지 배너 */
    .imp-notice-bar-wrap { padding: 6px 12px 4px !important; }
}

/* ── 수익보고서 조회 버튼 세로 가운데 (전체) ─────────────── */
.imp-report-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.imp-report-filter .imp-btn,
.imp-report-filter button {
    align-self: center;
}

/* ── 버튼/카드 파란색 토스 스타일 ──────────────────────── */
.imp-btn-primary {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}
.imp-btn-primary:hover {
    background: var(--blue-dark) !important;
    border-color: var(--blue-dark) !important;
}
.imp-camp-completed { background: var(--blue-light); color: var(--blue-dark); }
.imp-navbar-links a.active { background: var(--blue-light); color: var(--blue); }

/* ── 캠페인 카드 모바일 개선 ────────────────────────────── */
@media (max-width: 480px) {
    .imp-camp-body h4 { font-size: 15px; }
    .imp-camp-meta { font-size: 12px; flex-wrap: wrap; gap: 4px 10px; }
    .imp-tag { font-size: 11px; }
}

/* ── 광고 문의 버튼 (navbar) ──────────────────────────── */
.imp-nav-contact-btn {
    display: inline-flex !important;
    align-items: center;
    padding: 7px 16px !important;
    background: #0A0A0A !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: -.2px;
    transition: background .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    line-height: 1;
}
.imp-nav-contact-btn:hover {
    background: #222 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

/* 모바일에서도 광고문의 버튼 유지 */
@media (max-width: 768px) {
    .imp-nav-contact-btn {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   v6 추가 스타일 — 템플릿 · 커뮤니티 · 알림 · 알림뱃지
   ============================================================ */

/* ── ptab 필터 버튼 (템플릿/커뮤니티 재사용) ─────────────── */
.imp-ptab {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--gray-200, #E5E8EB);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-500, #8B95A1);
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}
.imp-ptab.active,
.imp-ptab:hover {
    background: #1A6EFF;
    color: #fff;
    border-color: #1A6EFF;
}

/* ── 템플릿 카드 ─────────────────────────────────────────── */
.imp-template-card {
    background: #fff;
    border: 1.5px solid var(--gray-200, #E5E8EB);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    cursor: pointer;
}
.imp-template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26,110,255,.13);
    border-color: #1A6EFF;
}
.imp-template-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 8px;
    line-height: 1.4;
}

/* ── 커뮤니티 ───────────────────────────────────────────── */
#imp-post-list-wrap,
#imp-post-detail-wrap {
    min-height: 200px;
}
.imp-post-row:hover td {
    background: #F8FAFC;
}

/* ── 알림 네비 뱃지 ─────────────────────────────────────── */
#imp-nav-notif-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 18px !important;
    padding: 4px 8px !important;
    line-height: 1;
}

/* ── 알림 목록 페이지 ───────────────────────────────────── */
.imp-notif-unread {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
}
.imp-notif-read {
    background: #F9FAFB;
    border-color: #E5E8EB;
}

/* ── 채널 분석 제출 폼 ──────────────────────────────────── */
.imp-analytics-card {
    background: #fff;
    border: 1.5px solid #E5E8EB;
    border-radius: 14px;
    padding: 24px;
    margin-top: 32px;
}
.imp-analytics-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

/* ── 모달 공통 ──────────────────────────────────────────── */
.imp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.imp-modal.is-open {
    display: flex;
}
.imp-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.imp-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #9CA3AF;
    line-height: 1;
}

/* ── 채널 분석 제출 — 인플루언서용 ─────────────────────── */
.imp-analytics-submit-wrap {
    background: linear-gradient(135deg, #EEF4FF 0%, #F5F3FF 100%);
    border: 1.5px solid #C7D7FD;
    border-radius: 14px;
    padding: 24px;
    margin-top: 32px;
}
.imp-analytics-submit-wrap h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1E3A8A;
}
.imp-analytics-submit-wrap p {
    font-size: 13px;
    color: #4B6CB7;
    margin: 0 0 18px;
}

/* ── 반응형 ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .imp-template-card {
        border-radius: 10px;
    }
}
