/* WCS Public Styles - Neutral defaults, override with your theme */

/* Balance Badge */
.wcs-balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.wcs-balance-badge svg { opacity: 0.6; }

/* Balance Full */
.wcs-balance-full {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.wcs-balance-main { text-align: center; margin-bottom: 20px; }
.wcs-balance-number { font-size: 42px; font-weight: 700; color: #1e293b; display: block; }
.wcs-balance-label { font-size: 14px; color: #64748b; }

.wcs-balance-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.wcs-stat { text-align: center; }
.wcs-stat-value { display: block; font-size: 20px; font-weight: 700; color: #334155; }
.wcs-stat-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* Store */
.wcs-store { max-width: 800px; margin: 0 auto; }

.wcs-store-balance {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 24px;
}

.wcs-store-balance-label { font-size: 14px; color: #64748b; margin-right: 8px; }
.wcs-store-balance-value { font-size: 18px; font-weight: 700; color: #1e293b; }

/* Packs Grid */
.wcs-packs-grid {
    display: grid;
    grid-template-columns: repeat(var(--wcs-cols, 3), 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.wcs-store[data-columns="2"] .wcs-packs-grid { --wcs-cols: 2; }
.wcs-store[data-columns="3"] .wcs-packs-grid { --wcs-cols: 3; }
.wcs-store[data-columns="4"] .wcs-packs-grid { --wcs-cols: 4; }

.wcs-pack-card {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.wcs-pack-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.wcs-pack-popular {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59,130,246,0.12);
}

.wcs-pack-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcs-pack-credits { font-size: 36px; font-weight: 800; color: #1e293b; line-height: 1; }
.wcs-pack-credits-label { font-size: 13px; color: #94a3b8; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.wcs-pack-price { font-size: 22px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.wcs-pack-desc { font-size: 13px; color: #64748b; margin-bottom: 16px; }

.wcs-btn-buy {
    width: 100%;
    padding: 12px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wcs-btn-buy:hover { background: #334155; }
.wcs-btn-buy:disabled { opacity: 0.5; cursor: not-allowed; }

/* Coupon */
.wcs-store-coupon, .wcs-coupon-standalone {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
}

.wcs-coupon-input-group {
    display: flex;
    gap: 8px;
}

.wcs-coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.wcs-coupon-input:focus { outline: none; border-color: #94a3b8; }

.wcs-btn-coupon {
    padding: 10px 20px;
    background: #475569;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.wcs-btn-coupon:hover { background: #334155; }

.wcs-coupon-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.wcs-coupon-message.wcs-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.wcs-coupon-message.wcs-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* History */
.wcs-history { max-width: 800px; margin: 0 auto; }

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

.wcs-history-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcs-history-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.wcs-h-date { color: #94a3b8; font-size: 13px; }
.wcs-h-concept { color: #334155; }
.wcs-h-amount { font-weight: 700; }
.wcs-h-balance { color: #64748b; }

.wcs-positive { color: #16a34a; }
.wcs-negative { color: #dc2626; }

/* Pagination */
.wcs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.wcs-pagination button {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.wcs-pagination button:hover:not(:disabled) { background: #e2e8f0; }
.wcs-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.wcs-page-info { font-size: 14px; color: #64748b; }

/* Notices */
.wcs-notice, .wcs-login-notice {
    text-align: center;
    color: #64748b;
    padding: 24px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
    .wcs-packs-grid { grid-template-columns: 1fr !important; }
    .wcs-balance-stats { flex-direction: column; gap: 16px; }
    .wcs-coupon-input-group { flex-direction: column; }
}
