/* Salon Credit Library — frontend styles */

.scl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.scl-card { display: block; background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.scl-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.scl-card img { width: 100%; height: auto; display: block; }
.scl-card-body { padding: 10px 12px; }
.scl-card-title { font-size: 14px; margin: 0 0 6px; line-height: 1.4; }
.scl-card-meta { font-size: 12px; color: #666; margin: 0; }
.scl-credit-badge { display: inline-block; padding: 2px 8px; background: #f5f0e5; color: #8a6d2b; border-radius: 999px; font-size: 11px; font-weight: 600; }

.scl-balance { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; background: #faf7f0; border-radius: 6px; }
.scl-balance-total { font-size: 22px; font-weight: 700; }
.scl-balance-unit { font-size: 12px; color: #666; }
.scl-balance-breakdown { font-size: 12px; color: #888; }

.scl-myaccount { display: grid; gap: 24px; }
.scl-mp-balance { background: #faf7f0; padding: 20px; border-radius: 8px; }
.scl-mp-total-num { font-size: 40px; font-weight: 800; }
.scl-mp-total-unit { margin-left: 6px; color: #666; }
.scl-mp-breakdown { list-style: none; padding: 0; display: flex; gap: 16px; margin: 12px 0 0; }
.scl-mp-plan, .scl-mp-links { padding: 16px 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; }
.scl-mp-links ul { list-style: none; padding: 0; margin: 0; }
.scl-mp-links li { padding: 8px 0; border-bottom: 1px solid #f2f2f2; }

.scl-history { width: 100%; border-collapse: collapse; }
.scl-history th, .scl-history td { padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 13px; text-align: left; }
.scl-history th { background: #fafafa; }

.scl-dl-box { margin-top: 16px; padding: 16px; background: #f9f6ef; border-radius: 8px; }
.scl-dl-required { font-size: 13px; color: #555; margin-bottom: 8px; }
.scl-dl-btn { display: inline-block; padding: 12px 18px; font-weight: 700; border-radius: 6px; text-decoration: none; }
.scl-dl-buy { background: #c39a4a; color: #fff; }
.scl-dl-redownload { background: #3e8e41; color: #fff; }
.scl-dl-login { background: #333; color: #fff; }
.scl-dl-disabled { background: #ccc; color: #fff; cursor: not-allowed; }
.scl-dl-hint { margin-top: 10px; font-size: 12px; color: #666; }

.scl-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.scl-price-card { padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; text-align: center; }
.scl-price-featured { border-color: #c39a4a; box-shadow: 0 4px 12px rgba(195,154,74,.18); }
.scl-price { font-size: 28px; font-weight: 800; margin: 8px 0 12px; }
.scl-price span { font-size: 13px; font-weight: 400; color: #777; }
.scl-price-card ul { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #555; }

.scl-coupon { text-align: center; margin-top: 16px; }
.scl-coupon code { background: #333; color: #fff; padding: 2px 8px; border-radius: 4px; }

.scl-hero { padding: 60px 20px; background: linear-gradient(135deg, #faf7f0 0%, #f4ebd8 100%); }
.scl-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.scl-hero h1 { font-size: 28px; margin-bottom: 16px; }
.scl-hero p { color: #555; }
.scl-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.scl-hero-note { margin-top: 16px; font-size: 12px; color: #666; }
.scl-hero-note code { background: #333; color: #fff; padding: 2px 8px; border-radius: 4px; }
