/* ====================================================================
   NoSoloRol Rewards – Front CSS
   Gamekout dark theme — #ffb303 accent, no border-radius, no purple
   ==================================================================== */

/* ------------------------------------------------------------------ */
/* Balance bar (catalog page header)                                   */
/* ------------------------------------------------------------------ */
.nsr-balance-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #ffb303;
    padding: 12px 20px;
    margin-bottom: 28px;
    color: #ccc;
    font-size: 0.9rem;
}

.nsr-balance-bar .material-icons {
    color: #ffb303;
    font-size: 1.1rem;
}

.nsr-balance-bar strong {
    color: #ffb303;
}

.nsr-balance-link {
    margin-left: auto;
    font-size: 0.82rem;
    color: #888;
    text-decoration: underline;
}

.nsr-balance-link:hover {
    color: #ffb303;
}

/* ------------------------------------------------------------------ */
/* Catalog grid                                                         */
/* ------------------------------------------------------------------ */
.nsr-rewards-catalog {
    padding: 10px 0;
}

.nsr-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.nsr-catalog-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.nsr-catalog-card:hover {
    border-color: #ffb303;
}

.nsr-card-image-wrap {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #111;
}

.nsr-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nsr-catalog-card:hover .nsr-card-image {
    transform: scale(1.04);
}

.nsr-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nsr-card-name {
    color: #ddd;
    font-size: 0.88rem;
    line-height: 1.3;
    text-decoration: none;
    font-weight: 600;
}

.nsr-card-name:hover {
    color: #ffb303;
}

.nsr-card-price {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffb303;
    font-size: 0.95rem;
    font-weight: 700;
}

.nsr-card-price .material-icons {
    font-size: 1rem;
    color: #ffb303;
}

.nsr-card-action {
    margin-top: auto;
}

.nsr-btn-redeem {
    width: 100%;
    background: #ffb303;
    border: none;
    color: #000;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.nsr-btn-redeem:hover {
    background: #e6a000;
}

.nsr-insufficient {
    font-size: 0.78rem;
    color: #666;
    display: block;
    text-align: center;
}

.nsr-btn-login {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
}

/* ------------------------------------------------------------------ */
/* Modal                                                                */
/* ------------------------------------------------------------------ */
.nsr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.nsr-modal-overlay.nsr-open {
    display: flex !important;
}

.nsr-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #ffb303;
    padding: 28px 32px;
    min-width: 340px;
    max-width: 480px;
    width: 90%;
    color: #ddd;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.nsr-modal h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.1rem;
}

.nsr-modal-table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
}

.nsr-modal-table th,
.nsr-modal-table td {
    padding: 6px 10px;
    font-size: 0.9rem;
}

.nsr-modal-table th {
    color: #888;
    font-weight: normal;
    text-align: left;
    width: 50%;
}

.nsr-modal-table td {
    color: #eee;
    font-weight: 600;
}

.nsr-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.nsr-modal-actions .btn-primary {
    background: #ffb303;
    border: none;
    color: #000;
    font-weight: 700;
    flex: 1;
}

.nsr-modal-actions .btn-primary:hover {
    background: #e6a000;
}

.nsr-address-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.nsr-address-modal-overlay.nsr-open {
    display: flex;
}

.nsr-address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.nsr-address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #ccc;
}

.nsr-address-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #ffb303;
}

/* ------------------------------------------------------------------ */
/* Pagination                                                           */
/* ------------------------------------------------------------------ */
.nsr-pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.nsr-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0 !important;
    color: #777;
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.nsr-page-link.active {
    background: #ffb303;
    border-color: #ffb303;
    color: #000;
    font-weight: 700;
}

.nsr-page-link:hover:not(.active) {
    border-color: #555;
    color: #ddd;
    background: #222;
}

/* ------------------------------------------------------------------ */
/* Product info widget                                                  */
/* ------------------------------------------------------------------ */

.nsr-product-earn-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
}

.nsr-product-earn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e8e8e8;
    font-weight: 600;
    font-size: 0.85rem;
}

.nsr-product-earn .material-icons {
    color: #ffb303;
    font-size: 1rem;
}

.nsr-product-earn strong {
    color: #ffb303;
}

.nsr-product-rewards {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #ffb303;
    font-size: 0.85rem;
    color: #ccc;
}

.nsr-btn-wrap form {
    display: flex;
    flex: 1;
}

.nsr-btn-wrap form .btn,
.nsr-btn-wrap > .btn {
    flex: 1;
    width: 100% !important;
    min-width: 0;
}

grid-column: 1 / -1;
}

.nsr-product-earn .nsr-vip-badge,
.nsr-pts-note .nsr-vip-badge,
.nsr-vip-badge {
    font-size: 0.5rem !important;
    background: transparent;
    color: #ffb303;
    font-weight: 700 !important;
    padding: 0 3px;
    letter-spacing: 1px;
    border: 1px solid #ffb303;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.6;
    text-transform: uppercase;
}

.nsr-product-points-price {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 0.82rem;
}

.nsr-product-points-price.nsr-with-separator {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #2a2a2a;
}

.nsr-product-points-price .material-icons {
    color: #666;
    font-size: 0.95rem;
}

.nsr-product-points-price strong {
    color: #ccc;
}

.nsr-product-balance {
    margin-top: 5px;
    color: #888;
    font-size: 0.8rem;
}

.nsr-catalog-link {
    margin-left: 8px;
    font-size: 0.78rem;
    color: #888;
    text-decoration: underline;
}

.nsr-catalog-link:hover {
    color: #ffb303;
}

.nsr-only-points-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #aaa;
    font-size: 0.82rem;
}

.nsr-only-points-notice .material-icons {
    font-size: 0.95rem;
    color: #666;
}

.nsr-only-points-notice a {
    color: #ffb303;
    text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* My Account link widget                                               */
/* ------------------------------------------------------------------ */
.nsr-account-block-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    text-decoration: none;
    padding: 8px 0;
}

.nsr-account-block-link:hover {
    color: #ffb303;
}

/* ------------------------------------------------------------------ */
/* Empty state                                                          */
/* ------------------------------------------------------------------ */
.nsr-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.nsr-empty .material-icons {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    color: #444;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 576px) {
    .nsr-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .nsr-modal {
        padding: 20px;
    }
}
