/* Minomog Reward Points - storefront (style A, muted/refined palette) */
.mnm-rp-page {
    --mnm-rp-accent: #b11f3a;        /* deep rose, calmer than neon */
    --mnm-rp-accent-dark: #8f1730;
    --mnm-rp-gold: #cdb789;          /* muted champagne, not neon gold */
    --mnm-rp-ink: #0f172a;
    --mnm-rp-muted: #64748b;
    --mnm-rp-line: #e8ecf3;
    color: var(--mnm-rp-ink);
}
.mnm-rp-head { margin-bottom: 1.25rem; }
.mnm-rp-title { font-size: 1.65rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.mnm-rp-subtitle { margin: .35rem 0 0; color: var(--mnm-rp-muted); font-size: .95rem; }

/* ---------- Hero balance card ---------- */
.mnm-rp-balance-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.6rem 1.75rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background:
        radial-gradient(130% 130% at 90% 6%, rgba(177, 31, 58, .22) 0%, rgba(177, 31, 58, 0) 60%),
        linear-gradient(135deg, #171a22 0%, #221b29 55%, #34202f 100%);
    box-shadow: 0 14px 34px -22px rgba(15, 23, 42, .55);
}
.mnm-rp-glow { display: none; }
.mnm-rp-balance-top {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.mnm-rp-balance-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.mnm-rp-coin {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #5c4a25;
    background: linear-gradient(145deg, #e7d8b6 0%, #cdb789 60%, #b89f6d 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22), inset 0 1px 1px rgba(255, 255, 255, .5);
}
.mnm-rp-coin svg { width: 32px; height: 32px; }
.mnm-rp-balance-main { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.mnm-rp-balance-num { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.mnm-rp-balance-label {
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: rgba(255, 255, 255, .7);
}
.mnm-rp-value-pill {
    display: inline-block;
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .85rem; font-weight: 600;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
}

/* progress to next reward */
.mnm-rp-progress { position: relative; margin-top: 1.35rem; }
.mnm-rp-progress-track { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.mnm-rp-progress-fill {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--mnm-rp-gold) 0%, #c98a93 100%);
    transition: width .5s ease;
}
.mnm-rp-progress-text { margin: .55rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .78); }
.mnm-rp-ready { color: var(--mnm-rp-gold); font-weight: 700; }

/* ---------- Redeem success banner ---------- */
.mnm-rp-success {
    position: relative;
    display: flex; align-items: flex-start; gap: .9rem;
    border: 1px solid #bbe7cf; border-left: 4px solid #2f855a;
    background: #f0fbf5; border-radius: 14px;
    padding: 1.1rem 2.4rem 1.1rem 1.2rem; margin-bottom: 1.5rem;
}
.mnm-rp-success-x {
    position: absolute; top: .5rem; right: .6rem;
    background: none; border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1;
    color: #94a3b8;
}
.mnm-rp-success-x:hover { color: #475569; }
.mnm-rp-success-icon {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    background: #2f855a; color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.mnm-rp-success-icon svg { width: 20px; height: 20px; }
.mnm-rp-success-body { min-width: 0; }
.mnm-rp-success-title { display: block; font-size: 1.05rem; font-weight: 800; color: #14532d; }
.mnm-rp-success-sub { margin: .15rem 0 .6rem; font-size: .88rem; color: #3f6b51; }
.mnm-rp-code-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mnm-rp-code {
    font-family: "Courier New", monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
    color: var(--mnm-rp-ink); background: #fff; border: 1px dashed #9fcfb4; border-radius: 8px;
    padding: .5rem .85rem;
}
.mnm-rp-copy-btn {
    background: var(--mnm-rp-ink); color: #fff; border: 0; cursor: pointer;
    font-weight: 700; font-size: .85rem; padding: .55rem 1rem; border-radius: 8px;
    transition: background .15s ease;
}
.mnm-rp-copy-btn:hover { background: #1f2937; }
.mnm-rp-copy-btn.is-copied { background: #2f855a; }
.mnm-rp-success-meta { margin: .6rem 0 0; font-size: .8rem; color: #3f6b51; }

/* ---------- Cards ---------- */
.mnm-rp-section-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 .35rem; }
.mnm-rp-redeem {
    position: relative;
    border: 1px solid var(--mnm-rp-line);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}
.mnm-rp-redeem::before {
    content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--mnm-rp-accent);
}
.mnm-rp-redeem-hint, .mnm-rp-need-more, .mnm-rp-empty { color: var(--mnm-rp-muted); font-size: .9rem; margin: .25rem 0 1rem; }
.mnm-rp-need-more, .mnm-rp-empty { margin-bottom: 0; }

.mnm-rp-form-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.1rem; }
.mnm-rp-form-label { font-weight: 700; }
.mnm-rp-input {
    width: 150px; max-width: 100%; padding: .6rem .8rem; border: 1px solid #cbd5e1; border-radius: 9px;
    font-size: 1rem; background: #fff; color: var(--mnm-rp-ink); transition: border-color .15s, box-shadow .15s;
}
.mnm-rp-input:focus { outline: none; border-color: var(--mnm-rp-accent); box-shadow: 0 0 0 3px rgba(177, 31, 58, .12); }
.mnm-rp-form-preview { font-weight: 800; color: var(--mnm-rp-accent); font-size: 1.02rem; }

.mnm-rp-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--mnm-rp-accent); color: #fff; border: 0; cursor: pointer;
    font-weight: 700; padding: .7rem 1.5rem; border-radius: 9px; font-size: 1rem;
    transition: background .15s ease, transform .12s ease;
}
.mnm-rp-btn:hover { background: var(--mnm-rp-accent-dark); transform: translateY(-1px); }
.mnm-rp-btn:active { transform: translateY(0); }
.mnm-rp-btn-sm { padding: .5rem 1rem; font-size: .9rem; }

/* ---------- History ---------- */
.mnm-rp-history { border: 1px solid var(--mnm-rp-line); border-radius: 14px; padding: 1.35rem 1.5rem; background: #fff; }
.mnm-rp-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: .5rem; }
.mnm-rp-table th, .mnm-rp-table td { padding: .7rem .5rem; text-align: left; border-bottom: 1px solid var(--mnm-rp-line); vertical-align: top; }
.mnm-rp-table tbody tr:last-child td { border-bottom: 0; }
.mnm-rp-table tbody tr:hover { background: #fafbfd; }
.mnm-rp-table thead th { font-weight: 800; color: var(--mnm-rp-muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }
.mnm-rp-num { text-align: right; white-space: nowrap; }
.mnm-rp-pos { color: #2f855a; font-weight: 800; }
.mnm-rp-neg { color: var(--mnm-rp-accent); font-weight: 800; }
.mnm-rp-type { display: inline-block; font-weight: 700; }
.mnm-rp-comment { display: block; color: var(--mnm-rp-muted); font-size: .82rem; margin-top: .1rem; }

/* ---------- Cart widget ---------- */
.mnm-rp-cart-box {
    display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .9rem;
    border-radius: 12px; padding: .95rem 1.1rem; margin: 1rem 0;
    background: #faf7f8; border: 1px solid var(--mnm-rp-line); border-left: 3px solid var(--mnm-rp-accent);
}
.mnm-rp-cart-info { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--mnm-rp-ink); }
.mnm-rp-cart-icon { color: var(--mnm-rp-gold); font-size: 1.1rem; }
.mnm-rp-cart-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mnm-rp-cart-input { width: 110px; }
.mnm-rp-cart-link { margin-left: auto; font-size: .85rem; color: var(--mnm-rp-accent); font-weight: 600; text-decoration: none; }
.mnm-rp-cart-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .mnm-rp-balance-card { padding: 1.4rem 1.3rem; }
    .mnm-rp-balance-num { font-size: 2.7rem; }
}
@media (max-width: 560px) {
    .mnm-rp-title { font-size: 1.45rem; }
    .mnm-rp-balance-card { padding: 1.25rem 1.15rem; border-radius: 16px; }
    .mnm-rp-balance-top { gap: .75rem; }
    .mnm-rp-balance-num { font-size: 2.4rem; }
    .mnm-rp-coin { width: 48px; height: 48px; }
    .mnm-rp-coin svg { width: 26px; height: 26px; }
    .mnm-rp-value-pill { margin-left: 70px; }       /* align under the number, past the coin */
    .mnm-rp-redeem, .mnm-rp-history { padding: 1.15rem 1.15rem; }
    .mnm-rp-input { width: 100%; }
    .mnm-rp-form-preview { width: 100%; }
    .mnm-rp-btn { width: 100%; justify-content: center; }

    .mnm-rp-table thead { display: none; }
    .mnm-rp-table, .mnm-rp-table tbody, .mnm-rp-table tr, .mnm-rp-table td { display: block; width: 100%; }
    .mnm-rp-table tr { border: 1px solid var(--mnm-rp-line); border-radius: 10px; margin-bottom: .6rem; padding: .25rem .5rem; }
    .mnm-rp-table td { border: 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .mnm-rp-table td::before { content: attr(data-th); font-weight: 700; color: var(--mnm-rp-muted); text-align: left; }
    .mnm-rp-table tbody tr:hover { background: none; }

    .mnm-rp-cart-form { width: 100%; }
    .mnm-rp-cart-input { flex: 1; width: auto; }
    .mnm-rp-cart-link { margin-left: 0; }

    .mnm-rp-code { flex: 1 1 auto; text-align: center; }
    .mnm-rp-copy-btn { flex: 0 0 auto; }
}
@media (max-width: 380px) {
    .mnm-rp-value-pill { margin-left: 0; }
}
