/* =========================================
   사주ON — 요금 충전 CSS
   ========================================= */

.my-point-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  color: var(--white);
  margin-bottom: 60px;
  box-shadow: var(--shadow-lg);
}
.my-point-label { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.my-point-label i { color: var(--accent); margin-right: 4px; }
.my-point-val { font-size: 2.5rem; font-weight: 800; color: var(--white); }

.pricing-section-header { text-align: center; margin-bottom: 36px; }
.pricing-section-header h2 { font-size: 1.7rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.pricing-section-header p { font-size: 0.9rem; color: var(--text-muted); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.28s;
}
.plan-card:hover, .plan-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.plan-card--best {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
.plan-card--best:hover { transform: translateY(-18px); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 20px;
}
.plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-card--best .plan-name { color: rgba(255,255,255,0.7); }
.plan-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-card--best .plan-amount { color: var(--white); }
.plan-point {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.plan-card--best .plan-point { color: var(--accent-light); }
.plan-bonus-tag {
  display: inline-block;
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.plan-bonus-tag--plus {
  background: var(--accent-pale);
  color: var(--accent-dark);
}
.plan-card--best .plan-bonus-tag--plus {
  background: rgba(212,175,55,0.2);
  color: var(--accent-light);
}
.plan-features {
  text-align: left;
  margin-bottom: 28px;
}
.plan-features li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li i { color: var(--primary); font-size: 0.75rem; }
.plan-card--best .plan-features li { color: rgba(255,255,255,0.85); }
.plan-card--best .plan-features li i { color: var(--accent-light); }
.plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.plan-btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(44,95,79,0.35); }
.plan-btn--white {
  background: var(--white);
  color: var(--primary);
}
.plan-btn--white:hover { background: var(--accent); color: var(--text-dark); }
.free-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 16px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44,95,79,0.15);
}
.free-note strong { color: var(--primary); }
.free-note i { color: var(--accent-dark); margin-right: 4px; }

/* 차감 표 */
.cost-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
}
.cost-table th {
  padding: 14px 20px;
  background: var(--bg-base);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cost-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.cost-pt { font-size: 1.05rem; font-weight: 800; color: var(--primary); }

/* 이용 내역 */
.history-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.history-table-wrap { overflow-x: auto; }
.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table th {
  padding: 14px 20px;
  background: var(--bg-base);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.history-table tr:last-child td { border-bottom: none; }
.history-plus { color: #2e7d32; font-weight: 700; }
.history-minus { color: #c62828; font-weight: 700; }
.empty-row { text-align: center; color: var(--text-light); padding: 40px; }

@media (max-width: 768px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 24px; }
  .plan-card--best { transform: none; }
  .my-point-card { flex-direction: column; gap: 20px; text-align: center; padding: 24px 20px; }
}
