/* =========================================================================
 *  /gifticon — 기프트 전환 페이지 (브랜드 블루 · tokens.css 기반)
 *  - 모든 셀렉터 .gft- 프리픽스
 *  - 로컬 --gft-* 토큰은 tokens.css 전역 토큰(var(--brand) 등)을 참조
 *  - 모달(.gft-modal)은 .gft-wrap 밖(단, list.skin.php 정적 마크업으로 #nt_body 내부)이라 토큰 스코프를 함께 확장
 * ========================================================================= */
.gft-wrap,
.gft-modal {
    --gft-primary:        var(--brand);
    --gft-primary-hover:  var(--brand-hover);
    /* --gft-primary-fg 삭제: 참조 0회 (2026-07-23 전수검증) */
    --gft-grad-start:     #3182f6;
    --gft-grad-end:       #0f4baf;
    --gft-bg:             var(--card);
    --gft-text:           var(--ink);    /* 1단계 */
    --gft-text-body:      var(--body);   /* 2단계 */
    --gft-text-sub:       var(--sub);    /* 3단계 */
    --gft-text-muted:     var(--muted);  /* 4단계 */
    --gft-border:         var(--line);
    --gft-border-strong:  var(--line-strong);  /* 진한 경계선 (모달 헤더 구분선 — exchange --ex-border-strong 미러) */
    --gft-soft-bg:        var(--field-bg);  /* 보조 패널 배경 (exchange --ex-soft-bg 미러) */
    --gft-stat-bg:        var(--brand-soft);
    --gft-stat-border:    rgba(39,113,227,.22);
    --gft-card-bg:        var(--card);
    --gft-chip-bg:        var(--brand-soft);
    --gft-chip-fg:        var(--brand);
    --gft-danger:         #ef4444;
    --gft-success:        #10b981;
    /* --gft-warning/--gft-info 삭제: 참조 0회 (2026-07-23 전수검증) */
}

.gft-wrap {
    /* 폭 제한 없음 — 자유게시판(.fb-wrap)과 동일하게 테마 컨테이너(nt-container 1100px) 폭을 그대로 쓴다.
       상하 여백은 전부 테마(py-3/py-sm-4)에 위임 — 자유게시판(.fb-wrap padding:0, 배너 margin-top:0)과 동일. */
    padding: 0;
    font-family: var(--font-ui);
    color: var(--gft-text);
    -webkit-font-smoothing: antialiased;
}

html.dark-mode .gft-wrap,
html.dark-mode .gft-modal {
    --gft-bg:          #1f2937;
    --gft-text:        #e5e7eb;
    --gft-text-body:   #c7ccd4;
    --gft-text-sub:    #9ca3af;
    --gft-text-muted:  #79828e;
    --gft-border:      #374151;
    --gft-border-strong: #374151;
    --gft-soft-bg:     #1f2937;
    --gft-dark-hi:     #c7d3e1;  /* 다크 강조 텍스트 (exchange --ex-dark-hi 미러) */
    --gft-stat-bg:     #1e2a3f;
    --gft-stat-border: #2e4a75;
    --gft-card-bg:     #2a2f3a;
    --gft-chip-bg:     #1e3a5f;
    --gft-chip-fg:     #93c5fd;
}

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

/* ---------- 헤더 ---------- */
.gft-header { padding: 4px 4px 16px; }
.gft-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ink);
    line-height: 1.3;
}
.gft-page-sub {
    font-size: 13px;
    color: var(--gft-text-sub);
    margin: 0;
    line-height: 1.6;
}

/* ---------- 상단 2분할 그리드 (회원 전용) ---------- */
.gft-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 16px; /* 섹션 세로 리듬 16px 통일 (배너 margin-bottom 과 동일, DESIGN_SYSTEM §6 스케일 상한) */
    align-items: stretch;
}
.gft-grid-top > * { margin: 0; }
@media (max-width: 768px) {
    .gft-grid-top { grid-template-columns: 1fr; gap: 12px; }
}

/* 통합 요약 카드 (보유 + 누적 + 신청 대기중) */
/* 우측 참고사항 카드(.gft-notice-card)와 동일 스펙 — 흰 배경·표준 보더·카드 그림자 */
.gft-summary-card {
    background: var(--gft-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-10);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-card);
}
/* 2단 배치: 라벨(좌) 윗줄 / 값(우) 아랫줄 / 하단 실선으로 서브 지표와 구분 */
.gft-summary-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gft-border);
    position: relative;
}
.gft-summary-main-value { align-self: flex-end; }
.gft-summary-main-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 600;
    color: var(--gft-text); /* 1단계 (강조) */
    letter-spacing: -0.01em;
}
/* 라인 스타일 P 코인 — 이용안내 카드 SVG 규격(40 viewBox·1.7 스트로크)과 동일 결, 브랜드 색 */
.gft-summary-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: var(--gft-primary);
    /* 옵티컬 보정: 한글 라벨의 글리프 중심이 라인박스보다 살짝 낮아 아이콘을 1px 내려 맞춤
       (자유게시판 .fb-cmt-cnt top 보정과 동일 기법) */
    position: relative;
    top: 1px;
}
.gft-summary-ico svg { width: 28px; height: 28px; display: block; }
/* 섹션 타이틀용 아이콘 — 보유 포인트 P 코인과 동일 규격·보정 */
.gft-title-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: var(--gft-primary);
    position: relative;
    top: 1px;
}
.gft-title-ico svg { width: 28px; height: 28px; display: block; }

/* 참고사항 접기/펼치기 토글 — 데스크톱에선 일반 타이틀(화살표 숨김·클릭 무효),
   모바일(≤768px)에서만 아코디언으로 동작 (기본 접힘) */
.gft-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;
}
.gft-notice-arrow {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    width: 18px;
    height: 18px;
    color: var(--gft-text-sub);
    transition: transform .15s;
}
.gft-notice-arrow svg { width: 18px; height: 18px; display: block; }
.gft-summary-ico text { font-family: var(--font-num); }
.gft-summary-main-value {
    font-family: var(--font-num);
    font-size: 24px; /* 디스플레이 스케일 스냅 (DESIGN_SYSTEM §2) */
    font-weight: 700;
    color: var(--gft-text); /* 1단계 */
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.gft-summary-main-value small {
    font-size: 15px; /* 단위는 숫자보다 한 단계 아래 — 수치가 주인공 */
    font-weight: 600;
    color: var(--gft-primary); /* 브랜드 */
    margin-left: 4px;
}
.gft-summary-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 14px;
    position: relative;
}
.gft-summary-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--gft-card-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-12);
}
.gft-summary-sub-body { flex: 1 1 auto; min-width: 0; }
.gft-summary-sub-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gft-text-sub); /* 3단계 */
    margin-bottom: 3px;
}
.gft-summary-sub-value {
    font-family: var(--font-num);
    font-size: 17px;
    font-weight: 700; /* 메인 값과 동일 두께 — 크기(24 vs 17)로 위계 구분 */
    color: var(--gft-text-body); /* 2단계 — 메인 값(1단계)보다 한 계단 아래 */
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gft-summary-sub-value small {
    font-size: 12px;
    color: var(--gft-text-sub);
    font-weight: 500;
    margin-left: 2px;
}
.gft-summary-dot {
    flex: 0 0 auto;
    align-self: flex-start;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    /* 라벨(13px, 기본 행간) 첫 줄의 시각 중심에 점 중심을 맞춤 */
    margin-top: 7px;
}
/* 신청 대기중 → 내역 바로가기 */
.gft-summary-history-link {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin-left: auto;
    /* 값(N건) 라인 우측에 붙도록 하단 정렬 + 값 baseline 옵티컬 보정 */
    align-self: flex-end;
    margin-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gft-primary);
    white-space: nowrap;
    cursor: pointer;
}
.gft-summary-history-link:hover { color: var(--gft-primary-hover); }
.gft-summary-history-link span { font-size: 13px; line-height: 1; }

.gft-summary-dot-blue  { background: var(--gft-primary); }
.gft-summary-dot-gray  { background: var(--muted); }
.gft-summary-dot-pulse { animation: gft-summary-dot-pulse 1.6s ease-in-out infinite; }

/* 보유 포인트 카드 하단 CTA */
.gft-summary-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 16px 14px;
    width: 100%;
    background: var(--gft-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-12);
    color: var(--gft-text-body); /* exchange .ex-earn-link 와 동일 톤 (2단계 본문) */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
    text-align: left;
    position: relative;
}
.gft-summary-cta > span { flex: 1 1 auto; }
.gft-summary-cta .fa-info-circle { color: var(--gft-primary); } /* 아이콘만 포인트컬러 (exchange .ex-earn-link 동일) */
.gft-summary-cta:hover {
    /* 토토 상세 이용안내 카드(.vd-cat-btn:hover)와 동일한 중립 hover-lift */
    background: #FAFBFC;
    border-color: #C7D4E8;
    box-shadow: 0 4px 14px rgba(17,24,39,0.07);
    color: var(--gft-primary); /* exchange .ex-earn-link:hover 와 동일 */
}
html.dark-mode .gft-summary-cta:hover {
    background: var(--gft-card-bg);
    border-color: var(--gft-stat-border);
}
.gft-summary-cta-arrow {
    flex: 0 0 auto;
    color: var(--gft-text-sub);
    font-size: 14px;
}
.gft-summary-cta:hover .gft-summary-cta-arrow { color: var(--gft-primary); }

/* 적립 안내 모달 본문 */
.gft-earn-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.gft-earn-list li {
    padding: 12px 14px;
    margin: 0 0 8px;
    background: var(--gft-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-10);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gft-earn-list li:last-child { margin-bottom: 0; }
.gft-earn-list strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--gft-text);
}
.gft-earn-list span {
    font-size: 12.5px;
    color: var(--gft-text-body); /* 2단계 — 본문 (vdim-list 와 동일 티어) */
    line-height: 1.5;
}
.gft-earn-footnote {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: var(--gft-stat-bg);
    border-radius: var(--r-6);
    font-size: 12.5px;
    color: var(--gft-text-sub);
    text-align: center;
}
.gft-earn-footnote a {
    color: var(--gft-primary);
    font-weight: 700;
    text-decoration: none;
}
.gft-earn-footnote a:hover { text-decoration: underline; }
@keyframes gft-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);  }
}

/* 상단 그리드 안 이용 안내 — 위/아래 균등 분배 */
.gft-grid-top > .gft-notice-card {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.gft-grid-top > .gft-notice-card .gft-section-title {
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 18px;
    /* 좌측 보유 포인트 라벨과 통일 — 17px / 600 / 1단계 (강조) */
    font-size: 17px;
    font-weight: 600;
    color: var(--gft-text);
}
.gft-grid-top > .gft-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.gft-grid-top > .gft-notice-card .gft-notice-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gft-grid-top > .gft-notice-card .gft-notice-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

/* ---------- 보유 포인트 헤로 카드 (사용 안 함, 호환 위해 유지) ---------- */
.gft-balance {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    margin: 0 0 18px;
}
.gft-balance-main {
    background: var(--gft-stat-bg);
    border: 1px solid var(--gft-stat-border);
    border-radius: var(--r-16);
    padding: 24px 24px 22px;
}
.gft-balance-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gft-text-sub);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.gft-balance-value {
    font-family: var(--font-num);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--gft-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}
.gft-balance-value small {
    font-size: 16px;
    font-weight: 700;
    color: var(--gft-text-sub);
    margin-left: 4px;
}
html.dark-mode .gft-balance-value { color: #7eb3ff; }
.gft-balance-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--gft-text-sub);
    background: var(--gft-card-bg);
    border: 1px solid var(--gft-border);
    padding: 5px 10px;
    border-radius: var(--r-pill);
}
.gft-balance-meta i { color: var(--gft-primary); font-size: 11px; }

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

/* 모바일 (≤640px) : 1열 스택 + mini 가로 2분할 */
@media (max-width: 640px) {
    .gft-balance { grid-template-columns: 1fr; }
    .gft-balance-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
}

/* ---------- 검색 바 ---------- */
.gft-search-bar { margin: 0 0 16px; } /* 섹션 세로 리듬 16px 통일 */
.gft-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.gft-search-input-wrap {
    flex: 1;
    position: relative;
}
.gft-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gft-text-sub);
    font-size: 14px;
    pointer-events: none;
}
.gft-search-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    font-size: 16px;
    border: 1px solid var(--gft-border);
    background: var(--gft-bg);
    color: var(--gft-text);
    border-radius: var(--r-pill);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.gft-search-input::placeholder { font-size: 14px; }
.gft-search-input:focus {
    outline: 0;
    border-color: var(--gft-primary);
    box-shadow: 0 0 0 3px rgba(39,113,227,.18);
}
.gft-search-btn {
    appearance: none;
    border: 0;
    background: linear-gradient(135deg, var(--gft-grad-start), var(--gft-grad-end));
    color: #fff;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: transform .1s, opacity .15s;
}
.gft-search-btn:hover { transform: translateY(-1px); opacity: .92; }
.gft-search-clear {
    color: var(--gft-text-sub);
    font-size: 12px;
    text-decoration: underline;
    padding: 0 6px;
}

/* ---------- 공통 섹션 ---------- */
.gft-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 700; /* 800 은 배너 헤드라인 전용(최강조) — 섹션/카드 제목은 700 (DESIGN_SYSTEM §2 굵기 규약, 레퍼런스 .vd-card-title) */
    color: var(--gft-text);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gft-border);
}

/* ---------- 로그인 안내 (exchange .ex-login-notice 미러) ---------- */
.gft-login-notice {
    background: var(--gft-soft-bg);
    border-radius: var(--r-16);
    padding: 18px 20px;
    color: var(--gft-text-sub);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gft-login-notice i { color: var(--gft-primary); font-size: 16px; }
html.dark-mode .gft-login-notice i { color: var(--gft-dark-hi); }
.gft-login-notice a {
    color: var(--gft-primary);
    font-weight: 700;
    /* border-bottom 대신 text-decoration — flex 아이템 박스 높이와 무관하게 글자 기준선을 따라가 서브픽셀 어긋남 없음 */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
html.dark-mode .gft-login-notice a { color: var(--gft-dark-hi); }

/* ---------- 카드 그리드 ---------- */
.gft-grid-wrap { margin-bottom: 16px; } /* 섹션 세로 리듬 16px 통일 */
.gft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gft-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gft-text-sub);
}
.gft-empty i { font-size: 42px; color: var(--gft-stat-border); }
.gft-empty p { margin: 12px 0 0; font-size: 14px; }

.gft-card {
    background: var(--gft-card-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-card);
    transition: transform .12s, box-shadow .12s, border-color .12s;
    position: relative;
}
.gft-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39,113,227,.18);
    border-color: var(--gft-stat-border);
}

.gft-card-img {
    position: relative; /* 카테고리 칩 오버레이 기준 */
    width: 100%;
    /* 3:2 — 권장 업로드 300x200 이 딱 떨어지도록 맞춘 비율(구 16/11).
       PC 출력 261x174 (카드 폭은 .gft-grid 4열이 결정, 높이만 이 비율이 결정) */
    aspect-ratio: 3 / 2;
    background: var(--thumb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* 카테고리 칩 — 썸네일 우상단 오버레이. 반투명 틴트는 이미지 위에서 안 읽혀
   불투명 화이트 + 브랜드 글자로 (관리자 오버레이 버튼과 동일 관행) */
.gft-card-img .gft-chip {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2; /* 관리자 수정/삭제 버튼(z3) 아래 */
    background: rgba(255,255,255,.92);
    color: var(--gft-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.gft-card-img .gft-chip.gft-chip--lower { top: 44px; } /* 관리자 버튼 회피 */
html.dark-mode .gft-card-img .gft-chip { background: rgba(30,41,59,.92); color: #93c5fd; }
/* 신청 건수 뱃지 — 좌하단 오버레이 (쇼핑백 아이콘 + 숫자, 의미는 title/aria) */
.gft-card-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.92);
    color: var(--gft-text-body);
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.gft-card-count i { font-size: 11px; line-height: 1; color: var(--gft-primary); }
html.dark-mode .gft-card-count { background: rgba(30,41,59,.92); color: #c7ccd4; }
.gft-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gft-card-img-placeholder {
    color: rgba(39,113,227,.35);
    font-size: 48px;
    opacity: .65;
}
html.dark-mode .gft-card-img { background: linear-gradient(135deg, #1e293b, #243447); }

.gft-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.gft-chip {
    display: inline-block;
    background: var(--gft-chip-bg);
    color: var(--gft-chip-fg);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gft-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gft-text);
    margin: 0; /* 칩이 썸네일로 이동해 본문 첫 요소 */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.gft-card-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}
.gft-price-label {
    font-size: 13px;
    color: var(--gft-text-sub);
    font-weight: 600;
}
.gft-price-value {
    font-family: var(--font-num);
    font-size: 17px;
    font-weight: 700;
    color: var(--gft-primary);
}
.gft-price-value small {
    font-size: 12px;
    color: var(--gft-text-sub);
    font-weight: 600;
    margin-left: 2px;
}
html.dark-mode .gft-price-value { color: #7eb3ff; }

.gft-card-meta {
    font-size: 11px;
    color: var(--gft-text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}
.gft-card-btn {
    appearance: none;
    border: 0;
    margin-top: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gft-grad-start), var(--gft-grad-end));
    color: #fff;
    border-radius: var(--r-6);
    cursor: pointer;
    transition: transform .1s, opacity .15s;
    width: 100%;
}
.gft-card-btn:hover:not(.is-disabled) {
    transform: translateY(-1px);
    opacity: .94;
}
.gft-card-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.3);
}
.gft-card-btn i { margin-right: 4px; }

/* ---------- 모달 ---------- */
.gft-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gft-modal[hidden] { display: none; }
.gft-modal-backdrop {
    position: absolute;
    inset: 0;
    /* 평면 dim — 토토 상세 vdim 오버레이(_co_view_modals.php)와 동일 값.
       blur 는 Chromium 저해상도 다운샘플로 배경이 모자이크처럼 보여 금지 */
    background: rgba(15,20,30,.55);
}
.gft-modal-dialog {
    position: relative;
    /* 배경을 다이얼로그가 아닌 본문/푸터에 준다 — 부모가 흰 배경을 갖고 있으면
       상단 곡선 클리핑 픽셀에서 헤더 그라데이션과 흰색이 섞여 흰 선이 비친다 */
    background: transparent;
    color: var(--gft-text, #1e293b);
    border-radius: var(--r-10);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: var(--sh-modal);
    font-family: var(--font-ui);
    line-height: 1.6; /* 상속 차단 — 현재 문맥값(.sbc-site-main 1.6) 명시화. exchange .ex-cfm-dialog 와 동일 */
}
.gft-modal-body,
.gft-modal-footer { background: var(--gft-bg, #fff); }
.gft-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    /* 헤더는 본문과 같은 면. 경계는 흐린 중성색 1px 구분선이 담당 (vdim .vdim-head 미러) */
    background: var(--gft-bg, #fff);
    color: var(--gft-text);
    border-bottom: 1px solid var(--gft-border-strong);
    /* 부모(overflow:hidden) 클리핑에만 맡기면 곡선 가장자리에서 부모 흰 배경이
       안티앨리어싱으로 비쳐 흰 선이 생긴다 — 상단 라운드를 헤더가 직접 그린다 */
    border-radius: var(--r-10) var(--r-10) 0 0;
}
.gft-modal-title {
    margin: 0;
    font-size: 18px;  /* 타입 스케일: 18 = 모달 타이틀 (DESIGN_SYSTEM §2) */
    font-weight: 700; /* 800 은 배너 헤드라인 전용 */
    line-height: 1.3; /* 명시 필수 — normal 은 폰트마다 달라 헤더 상하 여백이 비대칭으로 보인다 */
}
.gft-modal-x {
    appearance: none;
    border: 0;
    background: none;
    color: var(--gft-text-sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 17px; /* 킷 비율 유지: 32/30 × 16px (vdim .vdim-x = 30px 박스 / 16px) */
    line-height: 1;
    cursor: pointer;
    transition: color .15s;
}
.gft-modal-x:hover { color: var(--gft-text); }
/* FA 광학 보정 — 값 출처: theme/Nariya-A/css/custom-sidebar.css 의 .sbc-panel-close .fa */
.gft-modal-x .fa { position: relative; top: -0.57px; }
.gft-modal-body { padding: 18px 18px 2px; }
.gft-modal-body--earn { padding-top: 12px; } /* 적립 안내 전용 — 첫 카드 위 여백 축소. 기본 패딩 정의 뒤에 있어야 이긴다 (exchange 동일) */
.gft-modal-product {
    /* 파란 틴트 띠 제거 — 중립 필드 배경, 보더 없음 */
    background: var(--field-bg);
    border: 0;
    border-radius: var(--r-10);
    padding: 14px;
    margin-bottom: 12px;
}
html.dark-mode .gft-modal-product { background: #2a2f3a; }
/* 카드 타이포와 통일 — 상품명 15/600, 라벨 600, 가격 700+Oxanium (크기만 확인 맥락 강조로 18px) */
.gft-modal-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gft-text);
    margin-bottom: 8px;
    word-break: keep-all;
}
.gft-modal-product-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 600;
    color: var(--gft-text-sub);
}
.gft-modal-product-price strong {
    font-family: var(--font-num);
    font-size: 18px;
    color: var(--gft-primary);
    font-weight: 700;
}
.gft-modal-product-price strong small {
    font-size: 12px;
    font-weight: 600;
    color: var(--gft-text-sub); /* 3단계 */
    margin-left: 2px;
}
html.dark-mode .gft-modal-product-price strong { color: #93c5fd; }
.gft-modal-notice {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--gft-text-body); /* 2단계 — 본문 목록 (vdim-list 와 동일 티어) */
    line-height: 1.7;
}
.gft-modal-notice li { margin-bottom: 2px; }
.gft-modal-msg {
    /* 평소엔 높이 0 — 메시지(완료/에러)가 뜰 때만 공간 생성. 버튼은 그 시점에 이미 잠겨 있어 오클릭 없음 */
    min-height: 0;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
}
.gft-modal-msg:not(:empty) { margin: 6px 0 2px; }
.gft-modal-msg-info    { color: var(--gft-text-sub); }
.gft-modal-msg-success { color: var(--gft-success); }
.gft-modal-msg-error   { color: var(--gft-danger); }
.gft-modal-footer {
    display: flex;
    gap: 8px;
    padding: 6px 18px 16px;
}
.gft-btn {
    flex: 1;
    appearance: none;
    border: 0;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-6);
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
.gft-btn:disabled { opacity: .55; cursor: not-allowed; }
.gft-btn-cancel {
    background: var(--field-bg);
    color: var(--gft-text-sub);
}
.gft-btn-cancel:hover { background: var(--line); }
.gft-btn-primary {
    background: linear-gradient(135deg, var(--gft-grad-start), var(--gft-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;
}
.gft-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b64da, #0d3f94);
    box-shadow: 0 6px 18px rgba(39, 113, 227, .45);
    transform: translateY(-1px);
}
html.dark-mode .gft-btn-cancel { background: #374151; color: #e5e7eb; }
html.dark-mode .gft-btn-cancel:hover { background: #4b5563; }

/* ---------- 내 신청내역 ---------- */
.gft-history-card,
.gft-notice-card {
    background: var(--gft-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-10);
    padding: 18px 18px 20px;
    margin: 16px 0; /* 섹션 세로 리듬 16px 통일 */
    box-shadow: var(--sh-card);
}
.gft-wrap > :last-child { margin-bottom: 0; } /* 페이지 끝 여백은 테마 위임 (fb-wrap 동일) */
/* 타이틀 + 새로고침 한 행 — 행 자체 밑줄 없음(표 thead 상단 라인 하나만 남긴다) */
.gft-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.gft-history-head .gft-section-title {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
    /* 보유 포인트 · 이용 시 참고사항 헤더와 통일 — 17px / 600 / 1단계 (강조) */
    font-size: 17px;
    font-weight: 600;
    color: var(--gft-text);
    line-height: 18px; /* 아이콘 28px − 줄박스 18px = 오프셋 5px 정수 — 17px(오프셋 5.5px)이면 반올림 방향이 페이지마다 갈려 1px 어긋나 보임 */
    letter-spacing: -0.015em; /* exchange .ex-section-title 과 동일 자간 */
}
.gft-history-head .gft-title-ico { top: 0; margin-right: -6px; } /* 옵티컬 보정 해제 + SVG 여백 상쇄(글리프가 40뷰박스 중앙이라 우측 공백 큼) — 라벨과 밀착 */
.gft-history-refresh {
    appearance: none;
    border: 1px solid var(--gft-border);
    background: var(--gft-bg);
    color: var(--gft-text-sub);
    border-radius: var(--r-6);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600; /* exchange .ex-history-refresh 와 동일 두께 */
    line-height: 1.25;
    cursor: pointer;
    display: inline-flex; /* 아이콘·텍스트 수직 중앙 정렬 (exchange .ex-history-refresh 미러) — 베이스라인 배치로 아이콘이 삐뚤어 보이던 것 교정 */
    align-items: center;
    gap: 4px;
    font-family: inherit;
}
.gft-history-refresh:hover {
    color: var(--gft-primary);
    border-color: var(--gft-primary);
}
.gft-history-wrap { overflow-x: auto; }
.gft-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
/* 머리행: 자유게시판 .fb-list-head 미러링 — 배경 없이 위아래 라인 + body 톤 600 */
.gft-history-table thead th {
    background: transparent;
    color: var(--gft-text-body); /* 2단계 (자유게시판 .fb-list-head 와 동일 티어) */
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    border-top: 1px solid var(--gft-border);
    border-bottom: 1px solid var(--gft-border);
    white-space: nowrap;
}
.gft-history-table tbody td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--gft-border);
    text-align: center;
    color: var(--gft-text);
    vertical-align: middle;
}
.gft-history-table tbody tr:last-child td { border-bottom: 0; }
.gft-history-empty {
    text-align: center;
    color: var(--gft-text-muted);
    padding: 28px 0;
    font-size: 13px;
}
/* 텍스트 위계 — 상품명 1단계(셀 기본 --gft-text 상속) > 포인트 2단계 > 신청일시 3단계 > 단위·메모 4단계 */
.gft-history-table tbody .gft-col-dt { color: var(--gft-text-body); font-weight: 500; } /* 2단계 */
.gft-col-amt { font-family: var(--font-num); font-weight: 600; }
.gft-history-table tbody .gft-col-amt { color: var(--gft-text); } /* 1단계 */
.gft-col-amt small { font-size: 12px; color: var(--gft-text-sub); margin-left: 2px; font-weight: 500; }
.gft-col-name { max-width: 280px; }
.gft-history-table tbody .gft-col-name { font-weight: 500; } /* 자유게시판 .fb-subject-link 와 동일 */
.gft-st {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
}
.gft-st-pending  { background: #f1f5f9; color: #64748b; }
.gft-st-paid     { background: var(--brand-soft); color: var(--brand); }
/* 지급거절 = 사이트 의미색 빨강 (2026-08-10). 구 #fee2e2/#991b1b 에서 전환 — 되돌리지 말 것.
   ① 사이트의 부정/차감 빨강은 #ef4444 하나다(마이페이지 포인트 차감·경험치 차감 배지) — 여기만 진한 벽돌색이라 갈려 있었다.
      이 파일에 이미 --gft-danger(#ef4444)가 있으니 리터럴 대신 그 토큰을 쓴다(틴트 배경은 대응 토큰이 없어 리터럴).
   ② 형제 상태칩(.gft-st-paid = --brand-soft 틴트 + --brand 텍스트)과 "옅은 틴트 + 진한 원색" 구조가 이제 같다.
   포인트전환(.ex-st-rejected)과 **같은 값** — 한쪽만 고치지 말 것. 다크는 아래 딥레드 유지(§7.4 예외). */
.gft-st-rejected { background: #fef2f2; color: var(--gft-danger); }
html.dark-mode .gft-st-pending  { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
html.dark-mode .gft-st-paid     { background: #1e3a5f; color: #93c5fd; }
html.dark-mode .gft-st-rejected { background: #7f1d1d; color: #fee2e2; }

.gft-st-memo {
    font-size: 11px;
    color: var(--gft-text-muted);
    margin-top: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* 페이저 */
.gft-history-pager {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    flex-wrap: wrap;
}
/* 자유게시판 페이징의 실제 렌더 결과 미러링 — 스킨 정의가 아니라 테마 전역
   custom-sidebar.css `.sbc-site-main .pagination .page-link`(!important)가 최종 승자라
   그 값(보더리스·600·r-10·hover #e8f3ff·active #3182f6)을 그대로 따른다 */
.gft-history-pager button {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--gft-text-body);
    font-weight: 600;
    margin: 0 2px;
    padding: 7px 12px 5px; /* 상하 비대칭 = Oxanium 글리프 보정 (자유게시판 .page-link 동일) */
    line-height: 1.25;     /* 부트스트랩 .page-link 기본 행간 — 버튼 기본 행간이 더 높아 배경이 세로로 길어지는 것 방지 */
    border-radius: var(--r-10);
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
}
.gft-history-pager button:hover {
    background: #e8f3ff;
    color: #3182f6;
}
.gft-history-pager button.is-active {
    background: #3182f6;
    color: #fff;
}
html.dark-mode .gft-history-pager button:hover {
    background: var(--gft-stat-bg);
    color: var(--gft-chip-fg);
}

/* ---------- 이용 안내 ---------- */
.gft-notice-body {
    font-size: 14px;
    color: var(--gft-text-body); /* 2단계 — 카드 본문 기본 티어 */
    line-height: 1.7;
}
.gft-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gft-notice-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    margin: 0;
    font-size: 14px;
    color: var(--gft-text-body); /* 2단계 — 카드 본문 기본 티어 */
    line-height: 1.6;
}
/* 마지막 항목의 자체 하단 패딩이 카드 패딩(20px)과 겹쳐 하단만 28px 로 넓어 보임 — 제거 */
.gft-notice-list li:last-child {
    padding-bottom: 0;
}
.gft-notice-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gft-primary);
}
.gft-notice-list li + li { border-top: 1px dashed var(--gft-border); }

/* =========================================================================
 *  반응형
 * ========================================================================= */
@media (max-width: 1024px) {
    .gft-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gft-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gft-page-title { font-size: 21px; }
}
@media (max-width: 480px) {
    /* 좌우 여백은 테마 컨테이너 위임 — 토토·자유와 동일 (DESIGN_SYSTEM §9). 기존 10px 인셋(개별 카드용 의도된 차이)은 4보드 통일 결정으로 제거 */
    .gft-wrap { padding: 0; }
    .gft-balance-value { font-size: 28px; }
    .gft-mini-value { font-size: 16px; }
    .gft-search-input { font-size: 16px; padding: 11px 14px 11px 36px; }
    .gft-search-btn { padding: 9px 16px; font-size: 13px; }
    .gft-card-title { font-size: 13px; }
    .gft-price-value { font-size: 15px; }
    .gft-history-table { font-size: 12px; }
    .gft-history-table thead th,
    .gft-history-table tbody td { padding: 9px 6px; }
    .gft-modal-dialog { max-width: 100%; }
}

/* =========================================================================
 *  관리자 카드 오버레이 (수정/삭제 단축 진입 + 비활성 배지)
 *  - .gft-card 는 이미 position: relative (line 208) 보장됨
 * ========================================================================= */
.gft-wrap .gft-card-admin {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.gft-wrap .gft-card-admin-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--r-6);
    background: rgba(255, 255, 255, 0.92);
    color: var(--sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color .15s, color .15s, transform .15s;
}
.gft-wrap .gft-card-admin-btn:hover {
    background: #ffffff;
    color: var(--ink);
    transform: translateY(-1px);
}
.gft-wrap .gft-card-admin-del:hover { color: var(--gft-danger); }

.gft-wrap .gft-card-inactive-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: var(--r-4);
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    letter-spacing: .02em;
}
.gft-wrap .gft-card--inactive {
    opacity: 0.65;
}

html.dark-mode .gft-wrap .gft-card-admin-btn {
    background: rgba(30, 41, 59, 0.92);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .gft-wrap .gft-card-admin-btn:hover {
    background: #1e293b;
    color: #ffffff;
}
html.dark-mode .gft-wrap .gft-card-inactive-badge {
    background: rgba(0, 0, 0, 0.85);
    color: #f1f5f9;
}
html.dark-mode .gft-wrap .gft-card--inactive {
    opacity: 0.55;
}

/* ============================================
   상단 배너 (.board-list-banner 공통 형태 — DESIGN_SYSTEM §9.1)
   ============================================ */
/* 문구는 list.skin.php 상단 $_banner 가 소유한다 (마크업 하드코딩 금지).
   ⚠ 클래스명은 보드 공통 규약(.board-list-banner__*)이지만 값은 이 스킨 전용 —
      다른 보드와 자동 공유되지 않는다. (DESIGN_SYSTEM §9.1) */
/* 바깥 여백 margin: 0 0 16px — §9.1 */
.board-list-banner {
	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-10,10px);
	overflow: hidden;
	min-height: 135px;
	/* 상단 배너 규정 — DESIGN_SYSTEM §9 */
	border: none;
	margin-top: 0;
	margin-bottom: 16px;
}
.board-list-banner__deco { position: absolute; border-radius: 50%; opacity: 0.1; background: #fff; }
.board-list-banner__deco--1 { width: 180px; height: 180px; top: -60px; right: 60px; }
.board-list-banner__deco--2 { width: 100px; height: 100px; bottom: -30px; right: -10px; }
.board-list-banner__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.board-list-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 갈려 배너 높이가 달라짐 */
}
.board-list-banner__title { font-size: 17px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.5px; line-height: 1.35; }
.board-list-banner__desc { font-size: 12.5px; font-weight: 400; color: rgba(255,255,255,0.75); margin: 0; letter-spacing: -0.2px; line-height: 1.5; } /* 알파 .75 — 자유게시판 배너와 같은 값 */
.board-list-banner__icon {
	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: 14px; color: #fff; font-size: 24px; backdrop-filter: blur(4px);
}
@media (max-width: 575px) {
	.board-list-banner { padding: 22px 20px; min-height: 85px; }
	.board-list-banner__title { font-size: 15px; }
	.board-list-banner__icon { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
}

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

/* ============================================
   상품 상세 (view.skin.php) — 미니멀 카드
   ============================================ */
.gft-view-wrap { max-width: 520px; margin: 0 auto; }
/* 네비를 본문 폭에 정렬 — 폭 조립은 custom-main.css 의 .na-top-sidemenu 가 담당.
   좌우 패딩이 없어 선언값이 곧 실폭. (종전엔 네비 1100 vs 본문 520 으로 가장 크게 어긋나 있었다) */
.na-top-sidemenu--view { --na-content-w: 520px; }
.gft-view-card {
    background: var(--gft-bg);
    border: 1px solid var(--gft-border);
    border-radius: var(--r-10);
    overflow: hidden;
    box-shadow: var(--sh-card);
}
.gft-view-body { padding: 16px 18px 18px; }
.gft-view-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gft-text);
    margin: 0 0 10px;
    word-break: keep-all;
}
.gft-view-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gft-text-sub);
    font-family: var(--font-num);
}
.gft-view-meta i { color: var(--gft-primary); }
.gft-view-actions { display: flex; gap: 8px; margin-top: 16px; }
.gft-view-actions .gft-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}
.gft-view-actions .gft-btn:hover { text-decoration: none; }
.gft-btn-danger { background: var(--field-bg); color: var(--gft-danger); }
html.dark-mode .gft-btn-danger { background: #374151; }

/* ============================================
   참고사항 모바일 아코디언 (기본 접힘)
   ※ 반드시 파일 끝에 유지 — .gft-grid-top > .gft-notice-card .gft-notice-body
     의 display:flex(0,3,0)와 특이도 동률이라 "뒤에 선언"되어야 이긴다
   ============================================ */
@media (max-width: 768px) {
    .gft-notice-toggle { cursor: pointer; }
    .gft-notice-arrow { display: inline-flex; }
    /* 펼침(is-open) 시엔 규칙이 해제되며 원래 display(flex/block)로 복귀 */
    .gft-notice-card:not(.is-open) .gft-notice-body { display: none; }
    .gft-notice-card:not(.is-open) .gft-section-title { margin-bottom: 0; }
    .gft-notice-card.is-open .gft-notice-arrow { transform: rotate(180deg); }
}
