/* =============================================
   Page layout
   ============================================= */
.point-page {
  padding-top: 172px;
  padding-bottom: 60px;
  min-height: 100vh;
  background: #fff;
}

@media (max-width: 768px) {
  .point-page {
    padding-bottom: 126px;
  }
}

.mypage-sub-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0 44px;
}

.mypage-sub-aside {
  min-width: 0;
}

.point-wrap {
  display: grid;
  gap: 18px;
}

/* =============================================
   Breadcrumb (mirrors mypage-learning.css)
   ============================================= */
.point-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 800;
}

.point-breadcrumb a {
  color: var(--millie-deep);
}

.point-breadcrumb span::before {
  content: ">";
  margin-right: 8px;
  color: var(--muted);
}

/* =============================================
   Summary section
   ============================================= */
.point-summary-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 14px;
}

.point-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.point-summary-copy {
  display: grid;
  gap: 6px;
}

.point-summary-copy strong {
  color: var(--millie-deep);
  font-size: 20px;
  font-weight: 900;
}

.point-summary-copy span {
  color: var(--sub);
  font-size: 14px;
  font-weight: 800;
}

.point-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.point-stat-card {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f0ebe3;
  display: grid;
  gap: 6px;
}

.point-stat-card.card-remaining {
  background: linear-gradient(135deg, #fff9dc 0%, #fff 100%);
  border-color: rgba(162, 135, 0, .18);
}

.point-stat-card.card-expiring .point-stat-value {
  color: #e65100;
}

.point-stat-label {
  display: block;
  color: var(--sub);
  font-size: 12px;
  font-weight: 800;
}

.point-stat-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.point-stat-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
}

.point-expiry-badge {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #e65100;
  background: #fff0e8;
  padding: 2px 8px;
  border-radius: 999px;
}

.point-progress-row {
  display: grid;
  gap: 8px;
}

.point-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.point-progress-labels span {
  font-size: 12px;
  font-weight: 800;
  color: var(--sub);
}

.point-progress-labels strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--millie-deep);
}

/* =============================================
   Filter section
   ============================================= */
.point-filter {
  padding: 20px 24px;
  border-radius: 14px;
  display: grid;
  gap: 14px;
}

.point-filter .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.point-filter .filter-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--sub);
  min-width: 36px;
}

.point-filter .sort-label {
  margin-left: 0;
}

.point-filter .filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.point-filter .chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: #f3ede4;
  color: var(--sub);
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.point-filter .chip.active {
  background: var(--millie-deep);
  color: #fff;
}

.point-filter .filter-select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid #e0d8cc;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

/* =============================================
   Transaction list
   ============================================= */
.point-list {
  display: grid;
  gap: 0;
}

.point-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.point-month-group {
  margin-bottom: 0;
}

.point-month-label {
  padding: 14px 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--sub);
  border-bottom: 2px solid #f0ebe3;
  letter-spacing: -.02em;
}

.point-tx-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f8f4ed;
  align-items: center;
}

.point-tx-row:last-child {
  border-bottom: none;
}

.point-tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.point-tx-icon.icon-earn {
  background: #e8f5e9;
  color: #2e7d32;
}

.point-tx-icon.icon-use {
  background: #e3f2fd;
  color: #1565c0;
}

.point-tx-icon.icon-expire {
  background: #fff0e8;
  color: #e65100;
}

.point-tx-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.point-tx-desc {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-tx-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.point-tx-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.badge-pt {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.badge-pt-earn {
  background: #e8e0d4;
  color: var(--millie-deep);
}

.badge-pt-use-paper {
  background: #e8e0d4;
  color: var(--millie-deep);
}

.badge-pt-use-subscription {
  background: #ede9fb;
  color: #5e35b1;
}

.badge-pt-expire {
  background: #fff0e8;
  color: #e65100;
}

.point-tx-right {
  text-align: right;
  display: grid;
  gap: 4px;
  flex-shrink: 0;
}

.point-tx-amount {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.point-tx-amount.amount-earn {
  color: #2e7d32;
}

.point-tx-amount.amount-use {
  color: #1565c0;
}

.point-tx-amount.amount-expire {
  color: #e65100;
}

.point-tx-balance {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 780px) {
  .mypage-sub-shell {
    display: block;
    padding: 0;
  }

  .mypage-sub-aside .sidebar-block {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .mypage-sub-aside .lnb-list {
    margin-top: 6px;
  }

  .point-wrap {
    padding-top: 6px;
  }

  .point-page {
    padding-top: 150px;
  }

  .point-filter {
    padding: 18px;
  }

  .point-summary-head {
    flex-direction: column;
  }

  .point-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .point-tx-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 0;
  }

  .point-tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
  }

  .point-filter .filter-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .point-stat-grid {
    grid-template-columns: 1fr;
  }
}
