/* =============================================
   미르의 전설2 쿠폰 서비스
   레퍼런스: mir2-onestop 원스탑 사이트 정밀 재현
   페이지 폭: 1024px / 사이드바: 180px / 비반응형
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

:root {
  --page-width:       1024px;
  --sidebar-w:        180px;
  --header-h:         48px;
  --banner-h:         105px;
  --header-bg:        #111111;
  --green:            #5cb82a;
  --green-hover:      #4da824;
  --green-dark:       #3a8a18;
  --green-light:      #e8f9e1;
  --page-bg:          #ffffff;
  --content-bg:       #ffffff;
  --text-dark:        #1a1a1a;
  --text-body:        #333333;
  --text-sub:         #666666;
  --text-muted:       #999999;
  --text-white:       #ffffff;
  --table-head-bg:    #3d3d3d;
  --table-head-text:  #ffffff;
  --table-border:     #e0e0e0;
  --table-hover:      #f8fdf6;
  --border-light:     #e0e0e0;
  --border-mid:       #d0d0d0;
  --sidebar-active:   #5cb82a;
  --sidebar-border:   #ebebeb;
  --sidebar-hover-bg: #f5fff3;
  --badge-green-bg:   #5cb82a;
  --badge-gray-bg:    #9e9e9e;
  --badge-red:        #e53935;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background-color: var(--page-bg);
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: var(--page-width);
}

/* ===========================
   GNB 헤더 (상단 고정)
   레퍼런스: 48px 높이, 다크 배경
   =========================== */
.gnb {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  z-index: 100;
  display: flex;
  align-items: center;
  min-width: var(--page-width);
}
.gnb__inner {
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 0;
  display: flex;
  align-items: center;
  height: 100%;
}
.gnb__hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: var(--header-h); background: none; border: none;
  color: #ffffff; cursor: pointer; font-size: 16px;
  flex-shrink: 0;
}
.gnb__logo-wrap {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; text-decoration: none; margin-right: 0;
  flex-shrink: 0; line-height: 1; padding-left: 4px;
}
.gnb__logo-wordmark {
  font-family: 'Georgia', serif;
  font-size: 20px; font-weight: 900; color: #ffffff;
  letter-spacing: -0.03em; font-style: italic; line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transform: skewX(-2deg); display: inline-block;
}
.gnb__logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--green); border-radius: 8px;
  padding: 0px 6px 1px; font-size: 7.5px; font-weight: 800;
  color: #ffffff; letter-spacing: 0.14em; line-height: 1.6;
  font-style: normal; font-family: 'Noto Sans KR', sans-serif;
}
.gnb__nav {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.gnb__nav-link {
  font-size: 13px; color: #c0c0d0; text-decoration: none;
  font-weight: 500; transition: color 0.15s;
  padding: 0 24px; height: var(--header-h);
  display: flex; align-items: center;
}
.gnb__nav-link:hover { color: #ffffff; }
.gnb__right {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
  flex-shrink: 0;
}
.gnb__right-link {
  font-size: 11px; color: #c0c0d0; text-decoration: none;
  display: flex; align-items: center; gap: 3px;
}
.gnb__right-link:hover { color: var(--green); }
.gnb__icon-btn {
  width: 26px; height: 26px; display: flex; align-items: center;
  justify-content: center; color: #c0c0d0; background: none;
  border: none; cursor: pointer; font-size: 13px; border-radius: 4px;
}
.gnb__icon-btn:hover { color: #ffffff; }
.gnb__cta-btn {
  height: 28px; padding: 0 12px; background-color: var(--green);
  color: #ffffff; font-size: 11px; font-weight: 700; border: none;
  border-radius: 4px; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
  margin-left: 4px;
}
.gnb__cta-btn:hover { background-color: var(--green-hover); }

/* ===========================
   히어로 배너
   레퍼런스: ~105px, 배너 위에 서브네비 오버레이
   =========================== */
.hero-banner {
  position: relative;
  width: 100%;
  height: var(--banner-h);
  margin-top: var(--header-h);
  overflow: hidden;
  background-color: #0e0e16;
  min-width: var(--page-width);
}
.hero-banner__bg {
  position: absolute; inset: 0;
  background-image: url('../images/bg_dragon.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.55);
}
.hero-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,18,0.50) 0%,
    rgba(10,10,18,0.30) 40%,
    rgba(10,10,18,0.55) 100%);
}
.hero-banner__inner {
  position: relative; z-index: 2;
  width: var(--page-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* 서브 네비게이션 (배너 위 오버레이) */
.hero-subnav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.hero-subnav__link {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-subnav__link:hover { color: #ffffff; }
.hero-banner__title {
  font-size: 20px; font-weight: 700; color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

/* ===========================
   메인 레이아웃
   레퍼런스: 1024px, sidebar 180px
   =========================== */
.page-body {
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - var(--header-h) - var(--banner-h) - 150px);
  background: var(--content-bg);
}

/* ===========================
   사이드바 (좌측 sticky)
   레퍼런스: ~180px, 흰배경, 우측 보더
   =========================== */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: var(--header-h);
  align-self: flex-start;
  background: var(--content-bg);
  min-height: calc(100vh - var(--header-h) - var(--banner-h));
  padding-top: 28px;
  padding-left: 16px;
  padding-right: 0;
}
.sidebar__menu-group {
  /* no border between groups - reference uses spacing */
}
.sidebar__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  text-decoration: none;
}
.sidebar__menu-item:hover {
  color: var(--sidebar-active);
}
.sidebar__menu-item.parent-active {
  color: var(--sidebar-active);
  font-weight: 700;
}
.sidebar__arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.sidebar__menu-item.parent-active .sidebar__arrow {
  transform: rotate(90deg);
  color: var(--sidebar-active);
}
.sidebar__sub-menu {
  padding-left: 4px;
  padding-bottom: 4px;
}
.sidebar__sub-item {
  display: flex;
  align-items: center;
  padding: 6px 0 6px 8px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar__sub-item:hover {
  color: var(--sidebar-active);
}
.sidebar__sub-item.active {
  color: var(--text-dark);
  font-weight: 700;
}
.sidebar__sub-item::before {
  content: '-';
  margin-right: 5px;
  color: var(--text-muted);
  font-size: 11px;
}
.sidebar__sub-item.active::before {
  color: var(--text-dark);
}

/* ===========================
   콘텐츠 영역 (오른쪽)
   흰색 배경 위에 플랫하게 출력
   =========================== */
.content-area {
  flex: 1 1 0;
  min-width: 0;
  background: var(--content-bg);
  min-height: calc(100vh - var(--header-h) - var(--banner-h));
  padding-left: 36px;
  padding-right: 24px;
}

/* ===========================
   페이지 타이틀 + 요약
   =========================== */
.page-title-bar {
  padding-top: 28px;
  padding-bottom: 0;
}
.page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.summary-section {
  padding: 16px 0 16px;
}
.summary-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.summary-main-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}
.summary-label {
  font-size: 13px;
  color: var(--text-body);
  font-weight: 500;
}
.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.summary-value span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  margin-left: 2px;
}
.summary-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 24px;
  margin-top: 4px;
}
.badge-sm {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
}
.badge-sm.paid { background: var(--green); color: #fff; }
.badge-sm.free { background: #e0e0e0; color: #666; }
.btn-green {
  height: 34px;
  padding: 0 16px;
  background: var(--green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  white-space: nowrap;
}
.btn-green:hover { background: var(--green-hover); }

/* ===========================
   탭 바 (충전 내역 / 사용 내역)
   레퍼런스: 테두리 박스 안에 포함, 동일 크기
   =========================== */
.content-box {
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.tab-nav {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
}
.tab-nav__btn {
  flex: 1;
  height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: #f5f5f5;
  border: none;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
}
.tab-nav__btn:last-child { border-right: none; }
.tab-nav__btn:hover { background: #eaeaea; color: var(--text-body); }
.tab-nav__btn.active {
  background: var(--content-bg);
  color: var(--text-dark);
  font-weight: 700;
}

/* ===========================
   필터 바
   레퍼런스: 드롭다운 + 날짜 + 조회(그린)
   =========================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.filter-select {
  height: 32px;
  padding: 0 26px 0 8px;
  font-size: 12px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23888' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
}
.date-input {
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: 3px;
  outline: none;
  width: 130px;
}
.date-input:focus, .filter-select:focus {
  border-color: var(--green);
}
.filter-sep {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 2px;
}
.btn-search {
  height: 32px;
  padding: 0 20px;
  background: #333333;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}
.btn-search:hover {
  background: #444444;
}

/* ===========================
   데이터 테이블
   =========================== */
.table-wrap {
  overflow-x: auto;
  width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table thead tr {
  background-color: var(--table-head-bg);
}
.data-table thead th {
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--table-head-text);
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--table-border);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover {
  background-color: var(--table-hover);
}
.data-table tbody td {
  padding: 12px 12px;
  text-align: center;
  color: var(--text-body);
  vertical-align: middle;
  font-size: 12px;
}
.td-date { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.td-amount { font-weight: 600; }
.td-amount.plus { color: var(--green); }
.td-amount.minus { color: var(--badge-red); }

/* ===========================
   배지
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green {
  background-color: var(--badge-green-bg);
  color: #ffffff;
}
.badge-gray {
  background-color: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border-mid);
}
.badge-outline-green {
  background-color: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #b0e0a0;
}

/* ===========================
   빈 상태
   =========================== */
.empty-state {
  padding: 48px 20px;
  text-align: center;
}
.empty-state__title {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ===========================
   쿠폰 등록 폼
   =========================== */
.reg-form-area {
  padding: 20px 20px 24px;
  width: 100%;
}
.reg-notice-area {
  padding: 0 20px 24px;
  width: 100%;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-body); }
.form-label .req { color: var(--badge-red); margin-left: 2px; }
.form-select-form,
.form-input {
  height: 36px; padding: 0 10px; font-size: 12px;
  font-family: 'Noto Sans KR', sans-serif; color: var(--text-dark);
  background: #ffffff; border: 1px solid var(--border-mid);
  border-radius: 3px; outline: none; width: 100%;
  transition: border-color 0.15s;
  appearance: none; -webkit-appearance: none;
}
.form-select-form {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px; cursor: pointer;
}
.form-select-form:focus, .form-input:focus {
  border-color: var(--green);
}
.form-select-form.error, .form-input.error {
  border-color: var(--badge-red);
}
.form-input-wrap { position: relative; }
.form-input-coupon {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding-right: 48px;
}
.form-input-count {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--text-muted);
}
.form-error {
  font-size: 10px; color: var(--badge-red);
  display: flex; align-items: center; gap: 3px; margin-top: 1px;
}

/* ===========================
   버튼들
   =========================== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; height: 38px; padding: 0 20px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 13px; font-weight: 700;
  color: #ffffff; background-color: var(--green); border: none;
  border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.btn-primary:hover { background-color: var(--green-hover); }
.btn-primary:disabled { background-color: #a0c890; cursor: not-allowed; }
.btn-primary.full { width: 100%; margin-top: 16px; }
.btn-sm {
  height: 26px; padding: 0 10px; font-size: 11px; font-weight: 600;
  border-radius: 3px; cursor: pointer; border: none; white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
}
.btn-sm.primary { background: var(--green); color: #ffffff; }
.btn-sm.primary:hover { background: var(--green-hover); }
.btn-sm.outline {
  background: #ffffff; color: var(--text-sub);
  border: 1px solid var(--border-mid);
}
.btn-sm.outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm.copied {
  background: #e8f9e1; color: var(--green-dark);
  border: 1px solid #b0e0a0;
}
.btn-sm.disabled { background: #e8e8e8; color: var(--text-muted); cursor: not-allowed; }

/* ===========================
   유의사항 박스
   =========================== */
.notice-box {
  background: #f8fdf5;
  border: 1px solid #c8eabc;
  border-left: 3px solid var(--green);
  border-radius: 3px;
  padding: 14px 16px;
}
.notice-box__title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--text-body); margin-bottom: 8px;
}
.notice-box__title i { color: var(--green-dark); font-size: 12px; }
.notice-box__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.notice-box__list li {
  font-size: 11px; color: var(--text-sub); line-height: 1.55;
  padding-left: 10px; position: relative;
}
.notice-box__list li::before {
  content: '·'; position: absolute; left: 1px;
  color: var(--green-dark); font-size: 13px; line-height: 1.1;
}

/* ===========================
   보유쿠폰 요약 행
   =========================== */
.coupon-summary-row {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 16px; border-bottom: 1px solid var(--border-light);
  background: #f9fdf8;
}
.summary-item { display: flex; align-items: center; gap: 6px; }
.summary-item__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.summary-item__dot.green { background: var(--green); }
.summary-item__dot.gray  { background: #aaaaaa; }
.summary-item__label { font-size: 11px; color: var(--text-muted); }
.summary-item__value { font-size: 16px; font-weight: 700; color: var(--text-dark); line-height: 1; }
.summary-item__value span { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.summary-item__divider { width: 1px; height: 18px; background: var(--border-light); }

/* ===========================
   서브 탭
   =========================== */
.sub-tab-row {
  display: flex; border-bottom: 1px solid var(--border-light); background: #fafafa;
}
.sub-tab-btn {
  padding: 9px 16px; font-size: 12px; font-weight: 500;
  color: #666; background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  margin-bottom: -1px; font-family: 'Noto Sans KR', sans-serif;
}
.sub-tab-btn:hover { color: var(--green); }
.sub-tab-btn.active {
  color: var(--green); font-weight: 700;
  border-bottom-color: var(--green); background: #ffffff;
}

/* ===========================
   결과 카운트
   =========================== */
.result-count {
  padding: 7px 16px; font-size: 11px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light); background: #fafafa;
  display: flex; align-items: center; gap: 4px;
}
.result-count strong { color: var(--text-body); font-weight: 700; }

/* ===========================
   정책 안내
   =========================== */
.policy-row {
  padding: 12px 16px; background: #f8fdf5;
  border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-sub); line-height: 1.65;
}
.policy-row strong { color: var(--text-body); font-weight: 600; }

/* ===========================
   모달
   =========================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  background: #ffffff; border-radius: 6px; width: 420px;
  max-width: 92vw; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.2s ease; overflow: hidden;
}
@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 14px; border-bottom: 1px solid var(--border-light);
}
.modal-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.modal-icon.success { background: #e8f9e1; color: var(--green-dark); border: 1px solid #c0e8b0; }
.modal-icon.error   { background: #ffeeed; color: #d32f2f; border: 1px solid #f5c0be; }
.modal-icon.warning { background: #fff8e1; color: #e8a000; border: 1px solid #f0d880; }
.modal-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.modal-code-tag {
  display: inline-block; margin-top: 3px; padding: 1px 7px;
  background: #f4f4f4; border: 1px solid #e0e0e0; border-radius: 3px;
  font-size: 10px; font-family: monospace; color: var(--text-sub); letter-spacing: 0.06em;
}
.modal-body { padding: 16px 18px 14px; }
.modal-desc { font-size: 12px; color: var(--text-body); line-height: 1.65; white-space: pre-line; }
.modal-reward {
  margin-top: 12px; padding: 10px 12px;
  background: #f8fdf5; border: 1px solid #c8eabc; border-radius: 3px;
}
.modal-reward__label {
  font-size: 10px; font-weight: 700; color: var(--text-sub);
  margin-bottom: 6px; letter-spacing: 0.04em;
}
.modal-reward__items { display: flex; flex-wrap: wrap; gap: 5px; }
.modal-reward__item {
  background: var(--green); color: #ffffff; font-size: 11px;
  font-weight: 600; padding: 3px 8px; border-radius: 3px;
}
.modal-foot { padding: 0 18px 16px; display: flex; gap: 7px; justify-content: flex-end; }
.btn-modal-ok {
  height: 34px; padding: 0 20px; background: var(--green); color: #ffffff;
  border: none; border-radius: 3px; font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.btn-modal-ok:hover { background: var(--green-hover); }
.btn-modal-cancel {
  height: 34px; padding: 0 16px; background: #ffffff; color: var(--text-sub);
  border: 1px solid var(--border-mid); border-radius: 3px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 12px; cursor: pointer;
}
.btn-modal-cancel:hover { border-color: var(--green); color: var(--green); }

/* ===========================
   구분선
   =========================== */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 20px 0 0;
}

/* ===========================
   푸터
   레퍼런스: 다크 배경, 회사정보, 링크
   =========================== */
.site-footer {
  background: #1a1a20;
  border-top: 1px solid #2a2a3a;
  padding: 24px 20px;
  min-width: var(--page-width);
}
.site-footer__inner {
  width: var(--page-width);
  margin: 0 auto;
  text-align: center;
}
.site-footer__info {
  font-size: 10px;
  color: #5a5a70;
  line-height: 1.8;
  margin-bottom: 12px;
}
.site-footer__info a {
  color: #8888aa;
  text-decoration: none;
  font-weight: 700;
}
.site-footer__info a:hover { text-decoration: underline; }
.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 8px;
}
.site-footer__link {
  font-size: 11px;
  color: #aaaacc;
  text-decoration: none;
  padding: 0 12px;
  border-right: 1px solid #2a2a3a;
}
.site-footer__link:last-child { border-right: none; }
.site-footer__link:hover { color: var(--green); }
.site-footer__link.bold { font-weight: 700; }
.site-footer__cs {
  font-size: 10px;
  color: #5a5a70;
  margin-bottom: 6px;
}
.site-footer__copy {
  font-size: 10px;
  color: #3a3a50;
  margin-top: 4px;
}

/* ===========================
   프로토타입 배지
   =========================== */
.prototype-badge {
  position: fixed; bottom: 16px; right: 16px;
  background: rgba(20,20,32,0.92); border: 1px solid #3a3a50;
  border-radius: 4px; padding: 5px 10px; font-size: 10px; color: #8888aa;
  z-index: 999; pointer-events: none;
  display: flex; align-items: center; gap: 4px;
}

/* ── 스핀 ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fa-spin { animation: spin 0.9s linear infinite; }
