/* ==========================================================
   온카판 포인트샵 스타일시트
   ========================================================== */

/* ==========================================================
   공통 안내 영역
   ========================================================== */
.ps-notice {
  background: linear-gradient(135deg, #eef4ff, #e2ecfc);
  border: 1px solid #c9dcfa;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 12px;
  line-height: 1.6;
}

.ps-notice p {
  margin: 2px 0;
  font-size: 13px;
  color: #45577a;
}

.ps-notice .notice-title {
  font-weight: 700;
  color: #2a4d9b;
  margin-bottom: 6px;
}

.info-empty {
  text-align: center;
  color: #999;
  padding: 20px 0;
  font-size: 14px;
}

/* 공통 헤더의 페이지 타이틀 숨김 (포인트샵 전용) */
#container_title {
  display: none;
}

/* ==========================================================
   공용 버튼
   ========================================================== */
.btn-detail {
  display: inline-block;
  padding: 8px 20px;
  background: #011f6a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-detail:hover {
  background: #013a9d;
}

.btn-detail:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-detail-sm {
  padding: 8px 20px;
  font-size: 13px;
  background: #fff;
  color: #011f6a;
}

.btn-detail-sm:hover {
  background: #eee;
}

.btn-detail-lg {
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
}

.btn-detail-highlight {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  background: #f5a623;
  color: #011f6a;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.4);
}

.btn-detail-highlight:hover {
  background: #ffb638;
}

/* ==========================================================
   등급/전환율 바 (pointshop_use.php 상단)
   ========================================================== */
.ps-grade-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1a2744, #2a3f6b);
  border-radius: 10px;
  color: #fff;
}

.ps-grade-bar-label {
  font-size: 13px;
  color: #9fb0d0;
}

.ps-grade-bar-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffd76a;
}

.ps-grade-bar-rate {
  margin-left: auto;
  font-size: 13px;
  color: #c9d4ea;
}

/* 등급/전환율 박스 (pointshop_list.php) */
.ps-grade-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f0f4ff;
  border: 1px solid #d6e0ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ps-grade-label {
  font-size: 13px;
  color: #666;
}

.ps-grade-value {
  font-size: 16px;
  font-weight: 700;
  color: #011f6a;
}

.ps-grade-rate {
  margin-left: auto;
  font-size: 13px;
  color: #666;
}

/* ==========================================================
   이용 상태 바
   ========================================================== */
.ps-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ps-status-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ps-status-bar-text {
  flex: 1;
}

.ps-status-bar-btn {
  flex-shrink: 0;
  margin-left: 12px;
}

.ps-status-bar-reset {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.8;
  margin-left: 4px;
}

.ps-status-bar-approved {
  background: #16233f;
  color: #fff;
}
.ps-status-bar-approved .ps-status-bar-dot {
  background: #3ddc84;
}

.ps-status-bar-pending {
  background: #fff8e6;
  color: #8a6300;
  border: 1px solid #f5dd93;
}
.ps-status-bar-pending .ps-status-bar-dot {
  background: #e8b800;
}

.ps-status-bar-rejected {
  background: #fdecec;
  color: #a12727;
  border: 1px solid #f3b8b8;
}
.ps-status-bar-rejected .ps-status-bar-dot {
  background: #e04545;
}

.ps-status-bar-none {
  background: #f2f3f5;
  color: #555;
  border: 1px solid #dcdfe4;
}
.ps-status-bar-none .ps-status-bar-dot {
  background: #999;
}

.ps-status-box {
  margin-bottom: 12px;
}

.ps-status-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}

/* ==========================================================
   이용 가능 포인트 잔액 박스
   ========================================================== */
.ps-balance-box {
  margin-top: 20px;
  padding: 24px;
  background: #011f6a;
  border-radius: 8px;
  text-align: center;
  color: #fff;
}

.ps-balance-label {
  font-size: 13px;
  opacity: 0.8;
}

.ps-balance-value {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 700;
}

.ps-balance-actions {
  margin-top: 16px;
}

/* 지난주 이월금 표기 */
.ps-balance-carried {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: #cdd8f5;
}

.ps-balance-carried span:first-child {
  opacity: 0.85;
}

.ps-balance-carried span:last-child {
  font-weight: 600;
  color: #fff;
}

/* 쿠폰/기프티콘 분리 표시 (좌우 배치 행) */
.ps-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
}

.ps-balance-row + .ps-balance-row {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ps-balance-row .ps-balance-label {
  font-size: 13px;
  opacity: 0.8;
}

.ps-balance-row .ps-balance-value {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
}

/* 신규/이월 상세 breakdown */
.ps-balance-breakdown {
  margin-top: -4px;
  margin-bottom: 8px;
  font-size: 12px;
  opacity: 0.75;
  text-align: right;
}

/* 한도 소멸 예정 안내 */
.ps-balance-expire {
  margin-top: 8px;
  font-size: 12px;
  color: #ffd54f;
}

.ps-balance-sub {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
}

.ps-info-box {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f5dd93;
  border-radius: 8px;
  color: #8a6300;
  font-size: 13px;
}

/* ==========================================================
   신청 버튼 영역
   ========================================================== */
.ps-action-area {
  margin: 20px 0;
  text-align: center;
}

.ps-week-label {
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}

/* ==========================================================
   신청 이력 목록 (테이블형)
   ========================================================== */
.ps-history-list {
  margin-top: 24px;
}

.ps-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.ps-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ps-history-table th {
  padding: 10px 8px;
  background: #f8f9fa;
  color: #666;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid #ddd;
  white-space: nowrap;
}

.ps-history-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
  color: #333;
}

.ps-row-main {
  cursor: pointer;
  transition: background 0.15s;
}

.ps-row-main:hover {
  background: #f8f9fa;
}

.ps-td-point {
  font-weight: 700;
  color: #011f6a;
  font-variant-numeric: tabular-nums;
}

.ps-td-date {
  color: #999;
  font-size: 13px;
  white-space: nowrap;
}

.ps-td-total {
  font-weight: 700;
  color: #011f6a;
  font-variant-numeric: tabular-nums;
}

.ps-td-breakdown {
  margin-top: 2px;
  font-size: 11px;
  color: #999;
  font-variant-numeric: tabular-nums;
}

.ps-row-detail td {
  background: #fafafa;
  text-align: left;
  padding: 12px 16px;
}

/* 신청 상세 (펼침 영역) */
.ps-detail-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.ps-detail-label {
  width: 90px;
  flex-shrink: 0;
  color: #666;
}

.ps-detail-value {
  color: #333;
  font-variant-numeric: tabular-nums;
}

.reject-reason {
  margin-top: 4px;
  padding: 8px 10px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  font-size: 13px;
}

/* 페이백 지급 안내 (승인 row 바로 아래, 항상 노출되는 인라인 줄) */
.ps-row-payback td {
  background: #f0faf3;
  padding: 8px 16px;
}

.payback-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #155724;
}

.payback-badge {
  flex-shrink: 0;
  padding: 2px 9px;
  background: #28a745;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.payback-text strong {
  font-variant-numeric: tabular-nums;
}

/* 상태 뱃지 */
.status-pill {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.status-none {
  background: #e9ecef;
  color: #6c757d;
}

/* ==========================================================
   신청 폼 페이지 (pointshop_form.php)
   ========================================================== */
.ps-form-container {
  max-width: 100%;
  margin: 20px 0 auto;
  padding: 5px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #011f6a;
}

.form-header h2 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.btn-back {
  padding: 8px 20px;
  background: #6c757d;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #5a6268;
}

.form-notice {
  padding: 12px 15px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.form-table {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-label {
  width: 120px;
  font-weight: 500;
  color: #333;
  flex-shrink: 0;
}

.form-input {
  flex: 1;
}

.input-text,
.input-select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.input-text {
  width: 100%;
}

.input-select {
  width: 100%;
}

.input-text:focus,
.input-select:focus {
  outline: none;
  border-color: #011f6a;
}

.form-actions {
  text-align: center;
  padding: 20px 0;
}

.btn-submit {
  padding: 12px 40px;
  background: #011f6a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 10px;
}

.btn-submit:hover {
  background: #013a9d;
}

.btn-cancel {
  padding: 12px 40px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-cancel:hover {
  background: #5a6268;
}

/* ==========================================================
   포인트샵 이용하기 - 카탈로그 탭
   ========================================================== */
.ps-catalog-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ps-tab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ps-tab:hover {
  background: #f0f4ff;
}

.ps-tab.active {
  background: #011f6a;
  color: #fff;
  border-color: #011f6a;
}

.ps-tab-locked {
  color: #999;
}

/* ==========================================================
   상품 카드 (totohot 참고 리디자인)
   ========================================================== */
.ps-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ps-item-card {
  padding: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ps-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ps-item-card.ps-item-soldout {
  opacity: 0.7;
}

.ps-item-locked {
  background: #f8f9fa;
  opacity: 0.75;
}

/* 좌상단 구분 뱃지 (기프티콘/사이트쿠폰) */
.ps-item-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.badge-gifticon {
  background: #011f6a;
}

.badge-coupon {
  background: #e0455f;
}

/* 우상단 카테고리 뱃지 (스포츠/카지노/통합) */
.ps-item-category {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #011f6a;
  background: #fff;
  border: 1px solid #d6e0ff;
  letter-spacing: -0.2px;
}

/* 썸네일 */
.ps-item-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  position: relative;
}

.ps-item-thumb-img {
  background: #fafafa;
  padding: 12px;
}

.ps-item-thumb-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ps-item-thumb-text {
  background: linear-gradient(135deg, #eef2ff, #dde6ff);
}

.ps-item-thumb-text span {
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #011f6a;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.ps-item-lock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #999;
  font-size: 14px;
}

.ps-item-soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

/* 본문 */
.ps-item-body {
  padding: 14px 16px 16px;
}

.ps-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-item-site {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.ps-item-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ps-item-price-badge {
  padding: 2px 8px;
  background: #f1f1f1;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.ps-item-point {
  font-size: 18px;
  font-weight: 800;
  color: #011f6a;
}

.ps-item-worth {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.ps-item-stock {
  font-size: 12px;
  color: #28a745;
  margin-bottom: 12px;
}

.ps-stock-out {
  color: #dc3545;
}

/* 구매 버튼 (단일) */
.ps-btn-buy {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
}

.ps-btn-locked {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #eee;
  color: #999;
  cursor: not-allowed;
}

/* 원화/달러 구매 버튼 2개 배치 */
.ps-btn-currency-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-btn-currency-row .ps-btn-buy {
  margin-top: 0;
  font-size: 13px;
  padding: 9px;
}

/* ==========================================================
   구매 확인 커스텀 모달 (pointshop_use.php)
   ========================================================== */
.ps-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.ps-confirm-box {
  background: #1c1f26;
  border-radius: 14px;
  padding: 24px;
  width: 320px;
  max-width: 90%;
  color: #fff;
}

.ps-confirm-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
}

.ps-confirm-warning {
  background: rgba(224, 69, 95, 0.12);
  border: 1px solid rgba(224, 69, 95, 0.3);
  color: #ff8a9a;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.ps-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.ps-confirm-label {
  color: #9aa3b5;
}

.ps-confirm-value {
  font-weight: 700;
  color: #fff;
}

.ps-confirm-btns {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.ps-confirm-cancel,
.ps-confirm-ok {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ps-confirm-cancel {
  background: #2a2e38;
  color: #cfd3db;
}

.ps-confirm-ok {
  background: #3a6df0;
  color: #fff;
}

/* ==========================================================
   기프티콘 발급 결과 팝업 (pointshop_storage.php, 시안)
   ========================================================== */
.gift-reveal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.gift-reveal-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: 340px;
  max-width: 90%;
  text-align: center;
}

.gift-reveal-badge {
  display: inline-block;
  background: #fff3cd;
  color: #8a6300;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.gift-reveal-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
}

.gift-reveal-product {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

.gift-reveal-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f7f8fa;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.gift-reveal-label {
  color: #888;
  font-weight: 600;
}

.gift-reveal-value {
  font-weight: 700;
  color: #011f6a;
  font-variant-numeric: tabular-nums;
}

.gift-reveal-sample {
  font-weight: 400;
  font-size: 11px;
  color: #bbb;
  margin-left: 4px;
}

.gift-reveal-url-btn {
  display: block;
  margin: 16px 0 10px;
  padding: 12px;
  background: #011f6a;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.gift-reveal-note {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 16px;
}

.gift-reveal-close {
  width: 100%;
  padding: 10px 0;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 768px) {
  .ps-balance-value {
    font-size: 26px;
  }

  .ps-balance-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .ps-balance-row .ps-balance-value {
    font-size: 20px;
  }

  .ps-history-table {
    font-size: 12px;
  }

  .ps-history-table th,
  .ps-history-table td {
    padding: 8px 4px;
  }

  .ps-grade-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ps-grade-rate {
    margin-left: 0;
  }

  .ps-grade-bar {
    flex-wrap: wrap;
  }

  .ps-grade-bar-rate {
    margin-left: 0;
    width: 100%;
  }

  .ps-form-container {
    padding: 10px;
  }

  .form-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .form-header h2 {
    font-size: 18px;
  }

  .form-table {
    padding: 20px 15px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .form-input {
    width: 100%;
  }

  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-submit,
  .btn-cancel {
    width: 100%;
    margin: 0;
  }

  .ps-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* 신청 이력 테이블 - 모바일 카드형 전환 */
  .ps-history-table thead {
    display: none;
  }

  .ps-history-table,
  .ps-history-table tbody,
  .ps-history-table tr,
  .ps-history-table td {
    display: block;
    width: 100%;
  }

  .ps-history-table tr.ps-row-main {
    padding: 12px 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
  }

  .ps-history-table td {
    text-align: right;
    padding: 6px 4px;
    border-bottom: 1px dashed #f0f0f0;
  }

  .ps-history-table td:last-child {
    border-bottom: none;
  }

  .ps-history-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: #666;
    font-size: 12px;
  }

  .ps-history-table tr.ps-row-detail td,
  .ps-history-table tr.ps-row-payback td {
    border: none;
    text-align: left;
  }

  .ps-history-table tr.ps-row-detail td::before,
  .ps-history-table tr.ps-row-payback td::before {
    content: '';
  }

  /* 페이백 줄: 바로 위 신청카드에 붙여서 하나의 카드처럼 보이도록 처리 */
  .ps-history-table tr.ps-row-main + tr.ps-row-payback {
    margin-top: -10px;
  }

  .ps-history-table tr.ps-row-payback {
    margin-bottom: 10px;
  }

  .ps-history-table tr.ps-row-payback td {
    border: 1px solid #cdebd5;
    border-radius: 8px;
    padding: 8px 10px;
  }

  .payback-info {
    font-size: 12px;
  }
}

/* ==========================================================
   잔여 한도 카드 (진행률 바) — pointshop_use.php
   기존 .ps-balance-row / .ps-balance-breakdown / .ps-balance-expire 대체
   ========================================================== */
.ps-limit-card {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ps-limit-card:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ps-limit-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 8px;
}

.ps-limit-name {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.ps-limit-value {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.ps-limit-value .unit {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 2px;
}

.ps-limit-sub {
  font-size: 11.5px;
  opacity: 0.65;
  margin-bottom: 8px;
}

.ps-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.ps-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #ffd76a, #f5a623);
  transition: width 0.4s ease;
}

.ps-bar-fill.type-gift {
  background: linear-gradient(90deg, #7ecbff, #3a9bf0);
}

.ps-bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 5px;
}

.ps-bar-legend b {
  opacity: 1;
  font-weight: 700;
}

@media (max-width: 768px) {
  .ps-limit-value {
    font-size: 19px;
  }
}

.ps-target-label {
  font-size: 13px;
  color: #666;
}