/* ===== MEMBER / RUNNER ID (checkrace.com) =====
   Themed to Checkrace: Prompt font, --cr-* vars, white navbar.
   Self-contained — only needs the site's :root vars. */
:root{ --rid-gold:#F5A623; }

/* nav button — sits on the WHITE navbar → red text, fills red on hover */
.rid-member-nav{display:inline-flex;align-items:center;gap:7px;background:transparent;border:1.5px solid var(--cr-red);color:var(--cr-red);font-family:var(--font-primary);font-weight:600;font-size:13px;padding:7px 16px;border-radius:50px;cursor:pointer;transition:all .25s;white-space:nowrap;line-height:1}
.rid-member-nav:hover{background:var(--cr-red);color:#fff}
.rid-member-nav svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rid-member-nav .rid-pts{font-family:var(--font-primary);background:var(--rid-gold);color:#1a1a1a;border-radius:50px;padding:1px 9px;font-size:12px;font-weight:800}
.nav-links .rid-member-nav{font-size:14px}

.rid-mb-overlay{position:fixed;inset:0;z-index:2000;background:rgba(26,26,26,.6);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:1.2rem}
.rid-mb-overlay.active{display:flex}
.rid-mb{position:relative;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.35);width:100%;max-width:430px;max-height:90vh;overflow-y:auto;animation:ridIn .25s ease;font-family:var(--font-primary)}
@keyframes ridIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.rid-mb__close{position:absolute;top:12px;right:12px;width:34px;height:34px;border:none;background:#F1F1F4;border-radius:50%;cursor:pointer;display:grid;place-items:center;color:#555;transition:all .25s;z-index:2}
.rid-mb__close:hover{background:var(--cr-red);color:#fff}
.rid-mb__close svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
.rid-mb__hd{background:linear-gradient(135deg,var(--cr-red),var(--cr-red-dark));color:#fff;padding:2rem 1.6rem 1.5rem;border-radius:18px 18px 0 0}
.rid-mb__hd h3{color:#fff;font-size:1.4rem;margin-bottom:.25rem;font-weight:800}
.rid-mb__hd p{font-size:.9rem;opacity:.92}
.rid-mb__bd{padding:1.5rem 1.6rem 1.8rem}
.rid-mb__bd .muted{color:var(--cr-gray-500)}

.rid-pts-card{background:linear-gradient(135deg,var(--cr-black),#3a1414);color:#fff;border-radius:14px;padding:1.3rem 1.4rem;margin-bottom:1.1rem}
.rid-pts-card .lbl{font-size:.78rem;text-transform:uppercase;letter-spacing:1px;opacity:.7;display:flex;align-items:center;gap:6px}
.rid-pts-card .val{font-family:var(--font-primary);font-size:2.6rem;font-weight:800;line-height:1.1;margin-top:.2rem}
.rid-pts-card .baht{font-size:.85rem;opacity:.75;margin-top:.1rem}
.rid-row{display:flex;gap:.8rem;margin-bottom:1.1rem}
.rid-stat{flex:1;border:1px solid var(--cr-gray-100);border-radius:12px;padding:.85rem 1rem}
.rid-stat .lbl{font-size:.72rem;color:var(--cr-gray-500);text-transform:uppercase;letter-spacing:.5px}
.rid-stat .v{font-weight:800;font-size:1.15rem;margin-top:.15rem}
.rid-tier-bar{height:7px;border-radius:50px;background:#eee;overflow:hidden;margin-top:.6rem}
.rid-tier-bar i{display:block;height:100%;background:var(--rid-gold);border-radius:50px}
.rid-id-chip{display:inline-flex;align-items:center;gap:7px;background:#F4F4F6;border-radius:50px;padding:.4rem .9rem;font-size:.85rem;color:#444;margin-bottom:1rem}
.rid-id-chip b{font-family:var(--font-primary)}
.rid-led{border:1px solid var(--cr-gray-100);border-radius:12px;overflow:hidden}
.rid-led__row{display:flex;align-items:center;gap:10px;padding:.7rem 1rem;border-bottom:1px solid #f0f0f2}
.rid-led__row:last-child{border-bottom:none}
.rid-led__row .r-l{flex:1}
.rid-led__row .r-l .t{font-size:.9rem}
.rid-led__row .r-l .d{font-size:.72rem;color:var(--cr-gray-500)}
.rid-led__row .r-v{font-family:var(--font-primary);font-weight:800}
.rid-led__row .r-v.pos{color:#16a34a}
.rid-led__row .r-v.neg{color:var(--cr-red)}
.rid-earn{list-style:none;margin:.4rem 0 1.2rem;padding:0}
.rid-earn li{display:flex;align-items:center;gap:11px;padding:.6rem 0;border-bottom:1px solid #f2f2f4}
.rid-earn li:last-child{border-bottom:none}
.rid-earn .ic{width:36px;height:36px;border-radius:10px;background:rgba(229,57,53,.08);color:var(--cr-red);display:grid;place-items:center;flex-shrink:0}
.rid-earn .ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rid-earn .tx{flex:1;font-size:.92rem}
.rid-earn .pt{font-weight:800;color:var(--cr-red)}
.rid-btn{display:flex;width:100%;align-items:center;justify-content:center;gap:8px;background:var(--cr-red);color:#fff;border:none;border-radius:50px;font-family:var(--font-primary);font-weight:600;font-size:1rem;padding:.9rem;cursor:pointer;transition:all .25s}
.rid-btn:hover{background:var(--cr-red-dark)}
.rid-btn--ghost{background:transparent;color:var(--cr-gray-500);border:1px solid var(--cr-gray-300)}
.rid-btn--ghost:hover{background:#f4f4f6;color:var(--cr-black)}
.rid-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rid-spin{width:26px;height:26px;border:3px solid #eee;border-top-color:var(--cr-red);border-radius:50%;animation:ridSpin .8s linear infinite;margin:1.5rem auto}
@keyframes ridSpin{to{transform:rotate(360deg)}}
