/* =========================================================================
 *  /exchange — 포인트 머니환전 페이지 (브랜드 블루 · tokens.css 기반)
 *  - 모든 셀렉터 .ex- 프리픽스
 *  - 로컬 --ex-* 토큰은 tokens.css 전역 토큰(var(--brand) 등)을 참조
 *  - JS 의존 클래스(.ex-co, .ex-modal__list, .is-active 등) 보존
 * ========================================================================= */
.ex-wrap,
.ex-modal {
    --ex-primary:        var(--brand);
    --ex-primary-hover:  var(--brand-hover);
    --ex-primary-soft:   var(--brand-soft);
    --ex-primary-ring:   rgba(39, 113, 227, .18); /* 전역 ring 토큰 없음 — 브랜드 틴트 리터럴 */
    --ex-primary-fg:     #ffffff;
    --ex-grad-start:     #3182f6;
    --ex-grad-end:       #0f4baf;

    --ex-bg:             var(--card);
    --ex-page-bg:        var(--card);
    --ex-card-bg:        var(--card);
    --ex-soft-bg:        var(--field-bg);  /* 보조 카드 / 패널 배경 */
    --ex-soft-bg-2:      var(--thumb-bg);  /* 더 진한 그레이 톤 */

    --ex-text:           var(--ink);
    --ex-text-body:      var(--body);
    --ex-text-sub:       var(--sub);
    --ex-text-mute:      var(--muted);
    --ex-text-mute-2:    var(--muted-2);  /* 메타/플레이스홀더 최연한 톤 */
    --ex-border:         var(--line);
    --ex-border-strong:  var(--line-strong);

    --ex-shadow:         var(--sh-card);
    --ex-shadow-lift:    var(--sh-md);

    --ex-danger:         #ef4444;
    --ex-success:        #10b981;
    --ex-warning:        #f59e0b;
    --ex-info:           var(--brand);
}

.ex-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0; /* 상하 여백 전부 테마(py-3/py-sm-4) 위임 — 자유게시판 .fb-wrap 과 동일 */
    font-family: var(--font-ui);
    color: var(--ex-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- 다크모드 (§7.4 예외 — 리터럴 팔레트 허용) ----- */
html.dark-mode .ex-wrap,
html.dark-mode .ex-modal {
    --ex-bg:             #0f172a;
    --ex-page-bg:        #0f172a;
    --ex-card-bg:        #111827;
    --ex-soft-bg:        #1f2937;
    --ex-soft-bg-2:      #374151;

    --ex-text:           #f1f5f9;
    --ex-text-body:      #cbd5e1;
    --ex-text-sub:       #94a3b8;
    --ex-text-mute:      #64748b;
    --ex-text-mute-2:    #475569;
    --ex-border:         #1f2937;
    --ex-border-strong:  #374151;
    --ex-dark-hi:        #c7d3e1;  /* 다크 강조 텍스트 */

    --ex-shadow:         0 2px 8px rgba(0, 0, 0, .25);
    --ex-shadow-lift:    0 4px 14px rgba(0, 0, 0, .35);

    --ex-primary-soft:   rgba(39, 113, 227, .14);
    --ex-primary-ring:   rgba(39, 113, 227, .30);
}

/* ---------- 모달 stacking 안전망 ---------- */
.ex-form-card { overflow: visible; }
.ex-modal[hidden] { display: none !important; }

/* ---------- 관리자 행 (gifticon .gft-admin-row 미러) ---------- */
.ex-admin-row { padding: 0 4px 6px; }
/* 알약 안 한글 글리프가 낮게 앉는 것 보정 — 페이저 버튼과 동일한 비대칭 패딩 패턴 */
.ex-admin-row .btn {
    padding-top: 3px;    /* btn-sm 기본 4px */
    padding-bottom: 5px; /* 총 높이 유지, 텍스트만 1px 위로 */
    border-radius: var(--r-12);
}

/* ---------- 페이지 헤더 ---------- */
.ex-header { margin: 4px 4px 22px; }
.ex-page-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--ex-text);
    line-height: 1.25;
}
.ex-page-sub {
    font-size: 13.5px;
    color: var(--ex-text-sub);
    margin: 0;
    line-height: 1.6;
}

/* ---------- 보유 포인트 헤로 카드 ---------- */
.ex-balance {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    margin: 0 0 24px;
}
.ex-balance-main {
    background: var(--ex-soft-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    padding: 24px 24px 22px;
    position: relative;
    overflow: hidden;
}
.ex-balance-main::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--ex-primary-soft) 0%, transparent 70%);
    pointer-events: none;
}
.ex-balance-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ex-text-sub);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.ex-balance-value {
    font-family: var(--font-num);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ex-text);
    line-height: 1.1;
    margin-bottom: 10px;
}
.ex-balance-value small {
    font-size: 16px;
    font-weight: 700;
    color: var(--ex-primary);
    margin-left: 4px;
}
html.dark-mode .ex-balance-value small { color: var(--ex-dark-hi); }
.ex-balance-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--ex-text-sub);
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border);
    padding: 5px 10px;
    border-radius: var(--r-pill);
}
.ex-balance-meta i { color: var(--ex-primary); font-size: 11px; }
html.dark-mode .ex-balance-meta i { color: var(--ex-dark-hi); }

.ex-balance-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}
.ex-mini-card {
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ex-mini-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ex-text-sub);
    margin-bottom: 4px;
}
.ex-mini-value {
    font-family: var(--font-num);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ex-text);
    line-height: 1.2;
}
.ex-mini-value small {
    font-size: 11px;
    color: var(--ex-text-sub);
    font-weight: 700;
    margin-left: 2px;
}

/* ---------- 신청 카드 내 보유 포인트 ---------- */
.ex-form-balance {
    background: var(--ex-soft-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    padding: 18px 22px;
    margin: 0 0 18px;
    position: relative;
    overflow: hidden;
}
.ex-form-balance::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--ex-primary-soft) 0%, transparent 70%);
    pointer-events: none;
}
.ex-form-balance-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}
.ex-form-balance-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ex-text-sub);
    letter-spacing: -0.01em;
}
.ex-form-balance-value {
    font-family: var(--font-num);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ex-text);
    line-height: 1.1;
}
.ex-form-balance-value small {
    font-size: 17px;
    font-weight: 700;
    color: var(--ex-primary);
    margin-left: 4px;
}
html.dark-mode .ex-form-balance-value small { color: var(--ex-dark-hi); }

/* ---------- 우측 통계 카드 (누적/진행중) ---------- */
.ex-stats-card { padding: 14px; }
.ex-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ---------- 통합 요약 카드 (보유 + 누적 + 대기중) ---------- */
/* gifticon .gft-summary-card 미러 — 흰 배경·표준 보더·카드 그림자(.ex-card 상속) */
.ex-summary-card {
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* 2단 배치: 라벨(좌) 윗줄 / 값(우) 아랫줄 / 하단 실선으로 서브 지표와 구분 */
.ex-summary-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ex-border);
    position: relative;
}
.ex-summary-main-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ex-text); /* 최강조(ink) — 폼 라벨과 통일 */
    letter-spacing: -0.01em;
}
/* 라인 스타일 P 코인 — gifticon .gft-summary-ico 와 동일 규격(40 viewBox·1.7 스트로크) */
.ex-summary-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: var(--ex-primary);
    /* 옵티컬 보정: 한글 라벨의 글리프 중심이 라인박스보다 살짝 낮아 아이콘을 1px 내려 맞춤 */
    position: relative;
    top: 1px;
}
.ex-summary-ico svg { width: 28px; height: 28px; display: block; }
.ex-summary-ico text { font-family: var(--font-num); }
.ex-summary-main-value {
    align-self: flex-end;
    font-family: var(--font-num);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ex-text);
    line-height: 1.1;
}
.ex-summary-main-value small {
    font-size: 15px;
    font-weight: 600;
    color: var(--ex-primary); /* 브랜드 컬러 */
    margin-left: 4px;
}
.ex-summary-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 14px;
    position: relative;
}
.ex-summary-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-12);
}
.ex-summary-sub-ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ex-soft-bg-2);
    color: var(--ex-text-sub);
    border-radius: var(--r-pill);
    font-size: 14px;
}
.ex-summary-dot {
    flex: 0 0 auto;
    align-self: flex-start;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 7px; /* 라벨 13px 첫 줄 세로 중앙에 정렬 (gifticon 12.5px 기준 5px 에서 보정) */
}
.ex-summary-dot-blue {
    background: var(--ex-primary);
}
.ex-summary-dot-gray  { background: var(--ex-text-mute); }
.ex-summary-dot-pulse { animation: ex-summary-dot-pulse 1.6s ease-in-out infinite; }
@keyframes ex-summary-dot-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(148, 163, 184, .55); }
    70%  { box-shadow: 0 0 0 6px rgba(148, 163, 184, 0);  }
    100% { box-shadow: 0 0 0 0   rgba(148, 163, 184, 0);  }
}
.ex-summary-sub-body { flex: 1 1 auto; min-width: 0; }
.ex-summary-sub-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ex-text-sub);
    margin-bottom: 3px;
    letter-spacing: -0.005em;
}
.ex-summary-sub-value {
    font-family: var(--font-num);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ex-text-body); /* 2단계 */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ex-summary-sub-value small {
    font-size: 12px;
    color: var(--ex-text-sub);
    font-weight: 500;
    margin-left: 2px;
}
/* 신청 대기중 → 내역 바로가기 (gifticon .gft-summary-history-link 미러) */
.ex-summary-history-link {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin-left: auto;
    align-self: flex-end;
    margin-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ex-primary);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}
.ex-summary-history-link:hover { color: var(--ex-primary-hover); }
.ex-summary-history-link span { font-size: 13px; line-height: 1; }
html.dark-mode .ex-summary-sub-item { background: var(--ex-card-bg); border-color: var(--ex-border); }

/* ---------- 메인 2분할 그리드 (회원 전용) ---------- */
.ex-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 16px; /* 섹션 세로 리듬 16px 통일 (gifticon .gft-history-card 와 동일) */
    align-items: stretch;
}
.ex-grid-left > .ex-form-card { flex: 1; }
/* 안내 카드 — 내용 높이만큼만 (gifticon 참고: 항목을 세로로 늘려 벌리지 않는다).
   카드가 aside 높이를 억지로 채우면 하단 잔여 여백이 과해 보인다 */
.ex-grid-aside > .ex-notice-card .ex-notice-list,
.ex-grid-aside > .ex-notice-card .ex-notice-body { margin: 0; }
.ex-grid-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ex-grid-left > .ex-card { margin-bottom: 0; }
.ex-grid-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ex-grid-aside > .ex-card { margin-bottom: 0; }
.ex-grid-main > .ex-form-card { margin-bottom: 0; }

/* ---------- 공통 카드 ---------- */
.ex-card {
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    padding: 22px;
    margin: 0 0 16px;
    box-shadow: var(--ex-shadow);
}
.ex-wrap > section:last-of-type { margin-bottom: 0; } /* 페이지 끝 여백은 테마 위임 (fb-wrap 동일) — 회원 화면은 마지막 자식이 숨김 모달이라 :last-child 로는 내역 카드 16px 이 남는다 */
.ex-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}
.ex-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 700; /* 800 은 배너 헤드라인 전용 — 섹션/카드 제목은 700 (DESIGN_SYSTEM §2) */
    color: var(--ex-text);
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
/* 섹션 타이틀용 아이콘 — gifticon .gft-title-ico 와 동일 규격·보정 */
.ex-title-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: var(--ex-primary);
    position: relative;
    top: 1px;
}
.ex-title-ico svg { width: 28px; height: 28px; display: block; }

/* 참고사항 접기/펼치기 토글 — 데스크톱에선 일반 타이틀(화살표 숨김·클릭 무효),
   모바일(≤768px)에서만 아코디언으로 동작 (기본 접힘) — 파일 말미 media 블록 참조 */
.ex-notice-toggle {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    cursor: default;
}
.ex-notice-arrow {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    width: 18px;
    height: 18px;
    color: var(--ex-text-sub);
    transition: transform .15s;
}
.ex-notice-arrow svg { width: 18px; height: 18px; display: block; }

/* 안내/내역 카드 제목 — 보유 포인트·폼 라벨과 통일 (17px / 600 / 최강조 ink) */
.ex-notice-card .ex-section-title,
.ex-history-card .ex-section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ex-text);
}
.ex-notice-card .ex-section-title { margin: 0 0 18px; }
.ex-history-card .ex-section-title { line-height: 18px; } /* 아이콘 28px − 줄박스 18px = 오프셋 5px 정수 — 17px(오프셋 5.5px)이면 반올림 방향이 페이지마다 갈려 1px 어긋나 보임 */
.ex-history-card .ex-title-ico { top: 0; margin-right: -6px; } /* 옵티컬 보정 해제 + SVG 여백 상쇄(글리프가 40뷰박스 중앙이라 우측 공백 큼) — 라벨과 밀착 */
.ex-card-sub {
    font-size: 12px;
    color: var(--ex-text-sub);
    font-weight: 500;
}
.ex-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ex-primary);
    background: var(--ex-primary-soft);
    border-radius: var(--r-12);
}
html.dark-mode .ex-card-tag { color: var(--ex-dark-hi); }

/* ---------- 로그인 안내 ---------- */
.ex-login-notice {
    background: var(--ex-soft-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    padding: 18px 20px;
    color: var(--ex-text-sub);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ex-login-notice i { color: var(--ex-primary); font-size: 16px; }
html.dark-mode .ex-login-notice i { color: var(--ex-dark-hi); }
.ex-login-notice a {
    color: var(--ex-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--ex-primary);
}
html.dark-mode .ex-login-notice a { color: var(--ex-dark-hi); border-bottom-color: var(--ex-dark-hi); }

/* ---------- 폼 ---------- */
.ex-form { display: block; }
.ex-field { margin-bottom: 18px; }
.ex-field:last-of-type { margin-bottom: 12px; }
/* 폼 라벨 — 17px / 600 / 최강조(ink) 검정 (보유 포인트 라벨과 통일) */
.ex-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--ex-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.ex-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.ex-label-row .ex-label { margin-bottom: 0; }
/* 필드별 인라인 검증 오류 — 라벨 행 우측. 값 있을 때만 표시 */
.ex-field-error {
    font-size: 12px;
    font-weight: 600;
    color: var(--ex-danger);
    text-align: right;
    line-height: 1.3;
}
.ex-field-error:empty { display: none; }
.ex-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ex-text);
    background: var(--ex-card-bg);
    border: 1.5px solid var(--ex-border);
    border-radius: var(--r-12);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.ex-input::placeholder { color: var(--ex-text-mute); font-weight: 400; }
.ex-input:hover { border-color: var(--ex-border-strong); }
.ex-input:focus {
    outline: 0;
    border-color: var(--ex-primary);
    background: var(--ex-card-bg);
}
select.ex-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%23323c46'><path d='M0 0h12L6 8z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px 7px;
    padding-right: 36px;
}
.ex-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ex-text-sub);
    line-height: 1.5;
}
.ex-help-warn { color: var(--ex-danger); }

/* 금액 입력 — 우측 "원" 접미사 */
.ex-amount-wrap {
    position: relative;
}
.ex-input-amount {
    padding-top: 12px;    /* 폰트 18px 만큼 상하 패딩 축소 — 다른 입력 박스와 동일 높이(52px) */
    padding-bottom: 12px;
    padding-right: 34px; /* 숫자와 "원" 사이 간격 축소 (원 suffix right 16px + 폭 보정) */
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: right;
}
.ex-input-amount::placeholder { font-weight: 700; color: var(--ex-text-mute-2); } /* "0" — 입력 숫자와 동일 두께, 톤만 연하게 */
.ex-amount-suffix {
    position: absolute;
    right: 16px;
    top: calc(50% - 1px); /* 한글 '원' 글리프가 숫자보다 낮게 앉아 1px 올려 보정 */
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--ex-text-mute);
    pointer-events: none;
}
.ex-amount-preview {
    margin-top: 4px; /* 입력창과 살짝 띄움 */
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ex-primary);
    text-align: right;
    letter-spacing: -0.01em;
}
.ex-amount-preview:empty { display: none; } /* 미입력 시 자리 차지 안 함 — 빠른입력 줄이 위로 붙는다 */
html.dark-mode .ex-amount-preview { color: var(--ex-dark-hi); }

/* ---------- 빠른 입력 버튼 ---------- */
.ex-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.ex-quick-btn {
    appearance: none;
    border: none;
    background: var(--ex-soft-bg);
    color: var(--ex-text);
    border-radius: var(--r-12);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
    font-family: inherit;
    letter-spacing: -0.01em;
}
.ex-quick-btn:hover {
    background: var(--ex-primary);
    border-color: var(--ex-primary);
    color: var(--ex-primary-fg);
}
.ex-quick-btn:active { transform: scale(0.97); }
.ex-quick-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--ex-primary-ring);
}
/* 초기화 — +N 버튼과 동일한 배경/모양, 우측 정렬만 유지 */
.ex-quick-btn-reset {
    margin-left: auto;
}
html.dark-mode .ex-quick-btn { background: var(--ex-soft-bg); color: var(--ex-text); }

/* ---------- 업체 선택 (모달 트리거 영역) ---------- */
.ex-co { position: relative; }
.ex-co-unselected, .ex-co-selected { display: block; }
.ex-co-unselected[hidden], .ex-co-selected[hidden] { display: none !important; }

/* 미선택 — 큰 선택 버튼 (다른 ex-input 과 높이 일관) */
.ex-co-pick {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ex-text-mute);
    background: var(--ex-card-bg);
    border: 1.5px dashed var(--ex-border-strong);
    border-radius: var(--r-12);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
    font-family: inherit;
    box-sizing: border-box;
}
.ex-co-pick:hover {
    border-color: var(--ex-primary);
    background: var(--ex-soft-bg);
    color: var(--ex-text);
}
.ex-co-pick:focus-visible {
    outline: 0;
    border-color: var(--ex-primary);
    box-shadow: 0 0 0 4px var(--ex-primary-ring);
}
.ex-co-pick-txt { flex: 1 1 auto; min-width: 0; }
.ex-co-pick-arrow {
    flex: 0 0 auto;
    color: var(--ex-text-mute);
    font-size: 16px;
    transition: color .15s, transform .15s;
}
.ex-co-pick:hover .ex-co-pick-arrow { color: var(--ex-primary); transform: translateX(2px); }
html.dark-mode .ex-co-pick-arrow { color: var(--ex-text-mute); }

/* 선택 — 칩 + 액션 버튼 */
.ex-co-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ex-primary-soft);
    border: 1.5px solid var(--ex-primary);
    border-radius: var(--r-12);
    box-sizing: border-box;
    min-height: 52px; /* 입력 박스들과 동일 높이 */
}
html.dark-mode .ex-co-selected { background: var(--ex-primary-soft); border-color: var(--ex-primary); }
.ex-co-chip {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ex-primary-hover);
    background: transparent;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    box-sizing: border-box;
}
.ex-co-chip::before {
    content: '\f00c';
    font-family: FontAwesome;
    display: inline-block;
    margin-right: 8px;
    font-size: 13px;
    color: var(--ex-primary);
    font-weight: normal;
}
html.dark-mode .ex-co-chip { color: #93c5fd; }
html.dark-mode .ex-co-chip::before { color: #93c5fd; }
.ex-co-actions {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 6px;
}
.ex-co-btn {
    appearance: none;
    border: 1px solid var(--ex-border);
    background: var(--ex-card-bg);
    color: var(--ex-text);
    border-radius: var(--r-pill);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
    font-family: inherit;
}
.ex-co-btn:hover {
    color: var(--ex-primary);
    border-color: var(--ex-primary);
    background: var(--ex-soft-bg);
}
.ex-co-btn-clear:hover {
    color: var(--ex-danger);
    border-color: var(--ex-danger);
    background: #fef2f2;
}
html.dark-mode .ex-co-btn-clear:hover { background: rgba(239, 68, 68, .12); }

/* ---------- 업체 선택 모달 ---------- */
.ex-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px; /* gifticon .gft-modal 과 동일 인셋 */
}
.ex-modal__backdrop {
    position: absolute;
    inset: 0;
    /* 평면 dim — gifticon .gft-modal-backdrop 와 동일 값.
       blur 는 Chromium 저해상도 다운샘플로 배경이 모자이크처럼 보여 금지 */
    background: rgba(15, 20, 30, .55);
    cursor: pointer;
}
.ex-modal__panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: min(70vh, 560px);
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    box-shadow: var(--sh-modal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ex-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ex-border);
    flex: 0 0 auto;
}
.ex-modal__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ex-text);
    margin: 0;
    letter-spacing: -0.015em;
}
.ex-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ex-text-mute);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: color .12s, background .12s;
    padding: 0;
    font-family: inherit;
}
.ex-modal__close:hover {
    color: var(--ex-text);
    background: var(--ex-soft-bg);
}
.ex-modal__body {
    padding: 14px 16px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.ex-modal__search {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: 10px;
}
.ex-modal__search-ic {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ex-text-mute);
    font-size: 13px;
    pointer-events: none;
}
.ex-modal__search-input {
    display: block;
    width: 100%;
    padding: 12px 14px 12px 38px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ex-text);
    background: var(--ex-soft-bg);
    border: 1.5px solid var(--ex-border);
    border-radius: var(--r-12);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.ex-modal__search-input::placeholder { color: var(--ex-text-mute); font-weight: 400; }
.ex-modal__search-input:focus {
    outline: 0;
    border-color: var(--ex-primary);
    background: var(--ex-card-bg);
    /* 외곽 링 제거 — 파란 테두리만 표시 */
}
.ex-modal__hint {
    font-size: 12px;
    color: var(--ex-text-sub);
    padding: 6px 4px;
    text-align: center;
    flex: 0 0 auto;
}
.ex-modal__hint[hidden] { display: none; }
.ex-modal__list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.ex-modal__item {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ex-text);
    cursor: pointer;
    line-height: 1.4;
    border-radius: var(--r-10);
    font-weight: 600;
    transition: background .12s, color .12s;
    letter-spacing: -0.01em;
}
.ex-modal__item:hover {
    background: var(--ex-soft-bg);
}
.ex-modal__item.is-active {
    background: var(--ex-primary-soft);
    color: var(--ex-primary);
    font-weight: 700;
}
html.dark-mode .ex-modal__item.is-active {
    background: rgba(255, 255, 255, .06);
    color: var(--ex-text);
}
.ex-modal__match {
    font-weight: 800;
    color: var(--ex-primary);
}
html.dark-mode .ex-modal__match { color: var(--ex-dark-hi); }

/* ---------- 금액 인라인 경고 — 무채색 박스 + 숫자만 브랜드 강조 ---------- */
.ex-amount-warn {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ex-text-sub);
    background: var(--ex-soft-bg);
    border-radius: var(--r-10);
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.ex-amount-warn[hidden] { display: none !important; }
.ex-warn-num {
    color: var(--ex-primary);
    font-family: var(--font-num);
    font-weight: 600;
}

/* ---------- 액션 ---------- */
.ex-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}
.ex-btn {
    appearance: none;
    border: 0;
    padding: 0 24px;
    height: 52px; /* 입력 박스(.ex-input/.ex-co-pick)와 동일 높이 */
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--r-12);
    cursor: pointer;
    transition: background-color .15s, opacity .15s, transform .1s, box-shadow .15s;
    color: var(--ex-primary-fg);
    font-family: inherit;
    letter-spacing: -0.015em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
.ex-btn i { font-size: 19px; } /* 아이콘은 라벨보다 한 단계 크게 */
.ex-btn:disabled { opacity: .45; cursor: not-allowed; }
.ex-btn-primary {
    background: linear-gradient(135deg, var(--ex-grad-start), var(--ex-grad-end));
}
.ex-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b64da, #0d3f94);
    transform: translateY(-1px);
}
.ex-btn-primary:active:not(:disabled) {
    transform: scale(0.99);
}

.ex-message {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.ex-message:empty { display: none; }
.ex-message-info    { color: var(--ex-text-sub); }
.ex-message-success { color: var(--ex-success); }
.ex-message-error   { color: var(--ex-danger); }

/* 포인트 적립 안내 트리거 — 박스 없는 텍스트형 (섹션 내 박스 과밀 방지) */
.ex-earn-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin-top: 10px; /* 부모 gap 10px + 10px = 버튼과 20px 간격 */
    align-self: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ex-text-body);
    cursor: pointer;
    font-family: inherit;
    transition: color .15s;
}
.ex-earn-link i { font-size: 13px; margin-right: 2px; color: var(--ex-primary); }
.ex-earn-link:hover {
    color: var(--ex-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 포인트 적립 안내 모달 본문 (gifticon .gft-earn-* 미러, ex 토큰 사용) */
.ex-earn-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.ex-earn-list li {
    padding: 12px 14px;
    margin: 0 0 8px;
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-10);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ex-earn-list li:last-child { margin-bottom: 0; }
.ex-earn-list strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ex-text);
}
.ex-earn-list span {
    font-size: 12.5px;
    color: var(--ex-text-body); /* 2단계 — 본문 */
    line-height: 1.5;
}
.ex-earn-footnote {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: var(--ex-primary-soft); /* gifticon .gft-earn-footnote(--gft-stat-bg=--brand-soft)와 동일 톤 */
    border-radius: var(--r-8);
    font-size: 12.5px;
    color: var(--ex-text-sub);
    text-align: center;
}
.ex-earn-footnote a {
    color: var(--ex-primary);
    font-weight: 700;
    text-decoration: none;
}
.ex-earn-footnote a:hover { text-decoration: underline; }

/* ---------- 내 전환 내역 ---------- */
.ex-card.ex-history-card { padding: 18px 18px 20px; } /* gifticon .gft-history-card 와 동일 — 22px 공통 패딩이면 라벨이 대각선 아래로 밀려 보임. 특이도 (0,2,0): 모바일 .ex-card 패딩 축소 규칙보다 우선 */
.ex-history-card .ex-card-head { margin-bottom: 12px; } /* gifticon .gft-history-head 와 동일 */
.ex-history-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ex-history-refresh,
.ex-rank-btn {
    appearance: none;
    border: 1px solid var(--ex-border);
    background: var(--ex-card-bg);
    color: var(--ex-text-sub);
    border-radius: var(--r-6);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25; /* a(문서 행간 상속)와 button(UA normal)의 높이 차 제거 */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s, border-color .15s, background .15s;
    font-family: inherit;
    text-decoration: none;
}
.ex-history-refresh:hover,
.ex-rank-btn:hover {
    color: var(--ex-primary);
    border-color: var(--ex-primary);
    background: var(--ex-primary-soft);
}
html.dark-mode .ex-history-refresh:hover,
html.dark-mode .ex-rank-btn:hover { color: var(--ex-dark-hi); border-color: var(--ex-border-strong); }
.ex-history-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}
.ex-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
/* 머리행: gifticon(.gft-history-table thead) 미러 — 배경 없이 위아래 라인 + body 톤 600 */
.ex-history-table thead th {
    background: transparent;
    color: var(--ex-text-body);
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    border-top: 1px solid var(--ex-border);
    border-bottom: 1px solid var(--ex-border);
    white-space: nowrap;
}
.ex-history-table tbody td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--ex-border);
    text-align: center;
    color: var(--ex-text);
    vertical-align: middle;
}
.ex-history-table tbody tr:last-child td { border-bottom: 0; }
.ex-history-table tbody tr:hover td { background: var(--ex-soft-bg); }
.ex-history-empty {
    text-align: center;
    color: var(--ex-text-mute);
    padding: 28px 0 !important; /* gifticon .gft-history-empty 와 동일 */
    font-size: 13px;
}
/* 텍스트 위계 — 업체명 1단계 > 금액 2단계 > 신청일시/가입ID 3단계 > 단위 4단계 (gifticon 미러) */
.ex-history-table tbody .ex-col-dt  { color: var(--ex-text-body); font-weight: 500; } /* 2단계 */
.ex-history-table tbody .ex-col-co  { font-weight: 500; }
.ex-history-table tbody .ex-col-uid { color: var(--ex-text-body); font-weight: 500; } /* 2단계 */
.ex-col-amt  { font-family: var(--font-num); font-weight: 600; }
.ex-history-table tbody .ex-col-amt { color: var(--ex-text); } /* 1단계 */
.ex-col-amt small { color: var(--ex-text-sub); margin-left: 2px; font-weight: 500; font-size: 13px; }

/* 상태 칩 — gifticon .gft-st 미러 (3px 10px / 12px / 700) */
.ex-st {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
}
.ex-st-pending  { background: var(--ex-soft-bg-2); color: var(--ex-text-sub); }
.ex-st-approved { background: var(--brand-soft); color: var(--brand); }
.ex-st-rejected { background: #fee2e2; color: #991b1b; }
html.dark-mode .ex-st-pending  { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
html.dark-mode .ex-st-approved { background: #1e3a5f; color: #93c5fd; }
html.dark-mode .ex-st-rejected { background: #7f1d1d; color: #fee2e2; }

/* 지급거절 사유 행 — 본 행과 한 덩어리로 보이도록 배경/border 제거, 행 전체 폭 중앙 */
.ex-history-table tbody tr.ex-row-with-reason > td {
    border-bottom: 0;
    padding-bottom: 6px;
}
.ex-history-table tbody tr.ex-history-reason-row > td {
    border-top: 0;
    padding: 0 12px 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}

/* status 별 행 배경 — 칩 색과 동일 톤(연하게) */
/* status 행 배경 틴트 제거 — gifticon 과 동일하게 상태는 칩으로만 구분 (플레인 행) */

/* 거절+사유는 한 세트 — 둘 중 하나에 hover 시 두 행 모두 동일 배경(따로 강조돼 분리돼 보이지 않게) */
.ex-history-table tbody tr.ex-row-with-reason:hover > td,
.ex-history-table tbody tr.ex-row-with-reason:hover + tr.ex-history-reason-row > td,
.ex-history-table tbody tr.ex-history-reason-row:hover > td {
    background: #fee2e2;
}
/* 사유 행 hover 시 바로 위 본 행도 함께 강조 (:has 미지원 시 이 규칙만 무시, 본행-hover는 정상) */
.ex-history-table tbody tr.ex-row-with-reason:has(+ .ex-history-reason-row:hover) > td {
    background: #fee2e2;
}

/* 거절 칩 자체를 클릭 토글로 — 별도 텍스트 없이 칩 위치/열 정렬 유지. 사유 행은 평소 숨김 */
.ex-history-reason-row[hidden] { display: none; }
button.ex-st-toggle {
    border: 0;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
}
.ex-history-reason-label {
    font-weight: 700;
    color: var(--ex-danger);
    margin-right: 4px;
}
.ex-history-reason-text {
    color: #991b1b;
    font-weight: 500;
}
html.dark-mode .ex-history-reason-text  { color: #fca5a5; }
html.dark-mode .ex-history-reason-label { color: #f87171; }

/* 페이저 */
.ex-history-pager {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px; /* gifticon .gft-history-pager 와 동일 */
    flex-wrap: wrap;
}
/* gifticon 페이저 미러 — 자유게시판 페이징 실제 렌더(보더리스·600·r-10)와 동일 계열 */
.ex-history-pager button {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--ex-text-body);
    font-weight: 600;
    margin: 0 2px;
    padding: 7px 12px 5px; /* 상하 비대칭 = Oxanium 글리프 보정 (gifticon 동일) */
    line-height: 1.25;
    border-radius: var(--r-10);
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
}
.ex-history-pager button:hover {
    background: #e8f3ff;
    color: #3182f6;
}
.ex-history-pager button.is-active {
    background: #3182f6;
    color: #fff;
}
html.dark-mode .ex-history-pager button:hover {
    background: var(--ex-primary-soft);
    color: var(--ex-dark-hi);
}

/* ---------- 이용 안내 ---------- */
.ex-notice-body {
    font-size: 14px;
    color: var(--ex-text-body); /* 2단계 — 카드 본문 기본 티어 */
    line-height: 1.7;
}
.ex-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ex-notice-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    margin: 0;
    font-size: 14px;
    color: var(--ex-text-body); /* 2단계 — 카드 본문 기본 티어 */
    line-height: 1.6;
}
.ex-notice-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ex-primary);
}
.ex-notice-list li + li { border-top: 1px dashed var(--ex-border); }
.ex-notice-list li:last-child { padding-bottom: 0; } /* 마지막 항목 — 카드 패딩과 중복 방지 */
.ex-notice-body > :last-child { margin-bottom: 0; }  /* 관리자 입력 HTML 의 말단 마진 제거 */
/* 레거시 — 관리자 입력(bo_content_head) HTML 이 .ex-dot 마커를 쓸 수 있어 유지 */
.ex-dot {
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ex-primary);
    opacity: .55;
}

/* ---------- 랭킹 진입 카드 ---------- */
.ex-rank-card .ex-card-head { align-items: flex-start; flex-direction: column; gap: 4px; }
.ex-rank-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ex-rank-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    background: var(--ex-soft-bg);
    color: var(--ex-text);
    border: 1px solid var(--ex-border);
    border-radius: var(--r-16);
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.ex-rank-link:hover,
.ex-rank-link:focus {
    background: var(--ex-card-bg);
    border-color: var(--ex-primary);
    color: var(--ex-text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--ex-shadow-lift);
}
.ex-rank-link-ic {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--r-12);
    background: var(--ex-primary);
    color: var(--ex-primary-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.ex-rank-link-txt {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ex-rank-link-txt strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--ex-text);
    letter-spacing: -0.015em;
}
.ex-rank-link-txt small {
    font-size: 11.5px;
    color: var(--ex-text-sub);
    font-weight: 500;
}
.ex-rank-link-arrow {
    flex: 0 0 auto;
    color: var(--ex-text-mute);
    font-size: 16px;
}
.ex-rank-link:hover .ex-rank-link-arrow { color: var(--ex-primary); }
html.dark-mode .ex-rank-link:hover .ex-rank-link-arrow { color: var(--ex-dark-hi); }

/* =========================================================================
 *  태블릿
 * ========================================================================= */
@media (max-width: 768px) {
    .ex-wrap { padding: 0; max-width: 100%; } /* 상하좌우 여백 전부 테마 위임 (fb-wrap 동일) */
    .ex-page-title { font-size: 22px; }
    .ex-balance { grid-template-columns: 1fr; }
    .ex-balance-main { padding: 22px 20px 20px; border-radius: var(--r-16); }
    .ex-balance-value { font-size: 30px; }
    .ex-balance-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .ex-form-balance { padding: 14px 16px 12px; border-radius: var(--r-12); margin: 0 0 14px; }
    .ex-form-balance-value { font-size: 24px; }
    .ex-stats-card { padding: 12px; }
    .ex-card { padding: 20px 18px 22px; border-radius: var(--r-16); }
    .ex-section-title { font-size: 16px; }
    .ex-grid-main { grid-template-columns: 1fr; gap: 12px; }
    .ex-grid-aside { gap: 12px; }
}

/* =========================================================================
 *  모바일
 * ========================================================================= */
@media (max-width: 480px) {
    .ex-wrap { padding: 0; } /* 상하좌우 여백 전부 테마 위임 — 토토·자유와 동일 (DESIGN_SYSTEM §9) */
    .ex-page-title { font-size: 20px; }
    .ex-page-sub { font-size: 12.5px; }

    .ex-balance-main { padding: 20px 18px 18px; border-radius: var(--r-16); }
    .ex-balance-value { font-size: 28px; }
    .ex-balance-value small { font-size: 14px; }
    .ex-balance-side { gap: 8px; }
    .ex-mini-card { padding: 12px 14px; border-radius: var(--r-12); }
    .ex-mini-value { font-size: 16px; }

    .ex-card { padding: 18px 16px 20px; border-radius: var(--r-16); margin-bottom: 12px; }
    .ex-card-head { margin-bottom: 14px; }
    .ex-section-title { font-size: 15.5px; }

    .ex-input { padding: 12px 14px; font-size: 14.5px; border-radius: var(--r-12); height: 50px; }
    .ex-input-amount { font-size: 17px; padding-right: 40px; }
    .ex-amount-suffix { right: 14px; font-size: 13px; }

    .ex-btn { height: 50px; font-size: 17px; border-radius: var(--r-12); }

    .ex-quick-btn { padding: 7px 12px; font-size: 12px; }

    .ex-history-table { font-size: 12.5px; }
    .ex-history-table thead th { font-size: 10.5px; padding: 0 4px 8px; }
    .ex-history-table tbody td { padding: 12px 4px; }
    .ex-col-uid { word-break: break-all; }
    .ex-st-reason { max-width: 110px; }

    .ex-rank-links { grid-template-columns: 1fr; }
    .ex-rank-link { padding: 14px 14px; }
    .ex-rank-link-ic { width: 36px; height: 36px; font-size: 14px; }

    #exCoModal { padding: 0; align-items: flex-end; } /* 바텀시트는 업체 선택 모달 전용 — 적립·확인 모달은 gifticon처럼 가운데 정렬 유지 */
    .ex-cfm-dialog { max-width: 100%; } /* gifticon .gft-modal-dialog 미러 */
    .ex-modal__panel {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--r-16) var(--r-16) 0 0;
    }
    .ex-modal__head { padding: 16px 18px 12px; }
    .ex-modal__title { font-size: 15px; }
    .ex-modal__body { padding: 12px 14px 14px; }
    .ex-modal__item { padding: 11px 12px; font-size: 13.5px; }
    .ex-co-pick { padding: 12px 14px; font-size: 14.5px; border-radius: var(--r-12); height: 50px; }
    .ex-co-selected { padding: 10px 12px; border-radius: var(--r-12); min-height: 46px; }
    .ex-co-chip { font-size: 14px; padding: 0; }
    .ex-co-chip::before { font-size: 12px; margin-right: 6px; }
    .ex-co-btn { padding: 5px 10px; font-size: 11.5px; }
}

/* ============================================
   상단 배너 (자유게시판 fb-banner와 동일 사이즈)
   ============================================ */
.ex-banner { padding: 0; background: transparent; border: none; border-radius: 0; max-width: 1000px; margin: 0 auto 16px; } /* fb-banner 와 동일 + 서브메뉴 위 이동(JS)으로 .ex-wrap(1000px) 밖이라 자체 폭 필요 */
.ex-banner-inner {
	position: relative; display: flex; align-items: center; justify-content: space-between;
	padding: 28px 32px; background: linear-gradient(135deg, #3182f6 0%, #1b64da 60%, #0f4baf 100%);
	border-radius: var(--r-16); overflow: hidden; min-height: 135px; /* 상단 배너 규정 — DESIGN_SYSTEM §9 */
}
.ex-banner-deco { position: absolute; border-radius: 50%; opacity: 0.1; background: #fff; }
.ex-banner-deco--1 { width: 180px; height: 180px; top: -60px; right: 60px; }
.ex-banner-deco--2 { width: 100px; height: 100px; bottom: -30px; right: -10px; }
.ex-banner-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.ex-banner-badge {
	display: inline-flex; align-items: center; width: fit-content; padding: 3px 10px;
	background: rgba(255,255,255,0.2); border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700;
	color: #fff; letter-spacing: 1.5px; backdrop-filter: blur(4px); line-height: 1.5; /* 상속 차단 — 페이지 문맥따라 1.5/1.6 갈려 배너 높이가 달라짐 */
}
.ex-banner-title { font-size: 17px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.5px; line-height: 1.35; }
.ex-banner-desc { font-size: 12.5px; font-weight: 400; color: rgba(255,255,255,0.78); margin: 0; letter-spacing: -0.2px; line-height: 1.5; }
.ex-banner-icon-area {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; min-width: 52px;
	background: rgba(255,255,255,0.15); border-radius: var(--r-12); color: #fff; font-size: 24px; backdrop-filter: blur(4px);
}
@media (max-width: 575px) {
	.ex-banner-inner { padding: 22px 20px; min-height: 85px; }
	.ex-banner-title { font-size: 15px; }
	.ex-banner-icon-area { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
}

/* ============================================
   전환 신청 확인 모달 (gifticon 구매 모달 미러)
   ============================================ */
.ex-cfm-dialog {
    position: relative;
    background: transparent; /* 배경은 본문/푸터가 그린다 — 상단 곡선 흰 선 방지 (gifticon 동일) */
    color: var(--ex-text);
    border-radius: var(--r-16);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: var(--sh-modal);
    font-family: var(--font-ui);
    line-height: 1.6; /* 상속 차단 — .ex-wrap(1.5) 안이라 wrap 밖 gifticon 모달(.sbc-site-main 1.6)과 세로가 갈렸다 */
}
.ex-cfm-body,
.ex-cfm-footer { background: var(--ex-card-bg); }
.ex-cfm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--ex-grad-start), var(--ex-grad-end));
    color: #fff;
    border-radius: var(--r-16) var(--r-16) 0 0; /* 상단 라운드는 헤더가 직접 그린다 */
}
.ex-cfm-title { margin: 0; font-size: 18px; font-weight: 700; }
.ex-cfm-x {
    appearance: none;
    border: 0;
    background: none;
    color: rgba(255,255,255,.85);
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s;
}
.ex-cfm-x:hover { color: #fff; }
.ex-cfm-body { padding: 18px 18px 2px; }
.ex-cfm-body--earn { padding-top: 12px; } /* 적립 안내 전용 — 첫 카드 위 여백 축소. 기본 패딩 정의 뒤에 있어야 이긴다 (gifticon 동일) */
.ex-cfm-summary {
    background: var(--ex-soft-bg);
    border-radius: var(--r-10);
    padding: 14px;
    margin-bottom: 12px;
}
.ex-cfm-co {
    font-size: 15px;
    font-weight: 600;
    color: var(--ex-text);
    margin-bottom: 8px;
    word-break: keep-all;
}
.ex-cfm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 600;
    color: var(--ex-text-sub);
}
.ex-cfm-row + .ex-cfm-row { margin-top: 6px; }
.ex-cfm-row strong {
    font-family: var(--font-num);
    font-size: 15px;
    font-weight: 600;
    color: var(--ex-text);
}
.ex-cfm-row strong.ex-cfm-amt {
    font-size: 18px;
    font-weight: 700;
    color: var(--ex-primary);
}
.ex-cfm-row strong.ex-cfm-amt small {
    font-size: 12px;
    font-weight: 600;
    color: var(--ex-text-sub); /* 3단계 */
}
html.dark-mode .ex-cfm-row strong.ex-cfm-amt { color: #93c5fd; }
.ex-cfm-notice {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--ex-text-body);
    line-height: 1.7;
}
.ex-cfm-notice li { margin-bottom: 2px; }
.ex-cfm-msg {
    min-height: 0; /* 메시지가 뜰 때만 공간 생성 */
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
}
.ex-cfm-msg:not(:empty) { margin: 6px 0 2px; }
.ex-cfm-msg-info    { color: var(--ex-text-sub); }
.ex-cfm-msg-success { color: var(--ex-success); }
.ex-cfm-msg-error   { color: var(--ex-danger); }
.ex-cfm-footer {
    display: flex;
    gap: 8px;
    padding: 6px 18px 16px;
}
.ex-cfm-btn {
    flex: 1;
    appearance: none;
    border: 0;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-8);
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    font-family: inherit;
}
.ex-cfm-btn:disabled { opacity: .55; cursor: not-allowed; }
.ex-cfm-btn-cancel { background: var(--ex-soft-bg); color: var(--ex-text-sub); }
.ex-cfm-btn-cancel:hover { background: var(--ex-border); }
.ex-cfm-btn-primary {
    background: linear-gradient(135deg, var(--ex-grad-start), var(--ex-grad-end));
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    box-shadow: 0 4px 14px rgba(39, 113, 227, .35);
    letter-spacing: .2px;
}
.ex-cfm-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b64da, #0d3f94);
    box-shadow: 0 6px 18px rgba(39, 113, 227, .45);
    transform: translateY(-1px);
}

/* ============================================
   숫자류 폰트 (Oxanium) — 한글은 Paperozi 폴백 (DESIGN_SYSTEM §2 날짜·숫자 표기, gifticon 미러)
   나머지 수치(.ex-summary-*-value, .ex-balance-value, .ex-col-amt)는 각 규칙에서 선언 완료.
   ============================================ */
.ex-history-table .ex-col-dt,   /* 신청일시 */
.ex-history-pager button {      /* 페이징 숫자 */
	font-family: var(--font-num);
}

/* ============================================
   참고사항 모바일 아코디언 (gifticon 미러)
   ※ 반드시 파일 끝에 유지 — .ex-grid-aside > .ex-notice-card .ex-notice-body
   등의 display 규칙을 미디어쿼리로 덮어야 하므로
   ============================================ */
@media (max-width: 768px) {
	.ex-notice-toggle { cursor: pointer; }
	.ex-notice-arrow { display: inline-flex; }
	/* 펼침(is-open) 시엔 규칙이 해제되며 원래 display(flex/block)로 복귀 */
	.ex-notice-card:not(.is-open) .ex-notice-body,
	.ex-notice-card:not(.is-open) .ex-notice-list { display: none; }
	.ex-notice-card:not(.is-open) .ex-section-title { margin-bottom: 0; }
	.ex-notice-card.is-open .ex-notice-arrow { transform: rotate(180deg); }
}
