/* The resellers' portal (/reseller): phone first, on top of the admin's style.css */
body.rp { padding-bottom: 76px; }
.rpTop { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 10px 16px; background: rgba(14, 11, 22, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rpTop .brand { padding: 0; }
.rpNav { display: none; gap: 4px; margin-inline-start: 8px; }
.rpNav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.rpNav a svg { width: 18px; height: 18px; }
.rpNav a.on, .rpNav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.rpBal { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; color: var(--text); }
.rpBal b { font-size: 1.15rem; }
.rpBal small { color: var(--muted); font-size: 0.72rem; }
.rpMain { max-width: 980px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rpTabs { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(14, 11, 22, 0.95); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); z-index: 5; }
.rpTabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 7px; color: var(--muted); font-size: 0.7rem; }
.rpTabs a svg { width: 21px; height: 21px; }
.rpTabs a.on { color: var(--primary-2, #a78bfa); }
@media (min-width: 861px) { .rpTabs { display: none; } .rpNav { display: flex; } body.rp { padding-bottom: 24px; } }

.rpHero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 2px; }
.rpBig { font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin: 2px 0; }
.rpBig small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.rpStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rpStats .card { padding: 12px 14px; display: flex; flex-direction: column; }
.rpStats b { font-size: 1.35rem; }
.rpStats span { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 600px) { .rpStats { grid-template-columns: 1fr 1fr; } }
.rpPromo { padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(192, 38, 211, 0.18)); border: 1px solid rgba(167, 139, 250, 0.35); }

.rpPlans { display: flex; flex-wrap: wrap; gap: 8px; }
.rpPlan { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.rpPlan b { font-size: 1.05rem; }
.rpPlan i { font-style: normal; color: var(--ok); font-size: 0.8rem; }

.rpRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--line); cursor: pointer; }
.rpRow:first-of-type { border-top: 0; }
.rpRow:hover { background: rgba(255, 255, 255, 0.03); }
.rpRow > div > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rpPick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rpPick form { display: contents; }
.rpOpt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; width: 100%; color: var(--text); font: inherit; text-align: start; transition: border-color 0.12s, background 0.12s, transform 0.1s; }
.rpOpt input { width: auto; margin: 0; accent-color: var(--primary); }
.rpOpt span { display: flex; flex-direction: column; min-width: 0; }
.rpOpt small { color: var(--muted); font-size: 0.78rem; }
.rpOpt:has(input:checked), .rpOpt-btn:hover, .rpOpt-btn:focus { border-color: var(--primary); background: rgba(139, 92, 246, 0.12); outline: none; }
.rpOpt-btn:active { transform: scale(0.98); }
.rpOpt-trial { border-style: dashed; }

.rpCreds { border-color: var(--ok); }
.rpCreds pre { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 9px; margin: 0 0 10px; font: 0.95rem/1.6 var(--mono); }
.rpTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .rpTwo { grid-template-columns: 1fr; } .rpHero { flex-wrap: wrap; } }
.rp .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp .filters .search { flex: 1; min-width: 160px; }
.rp .btn.on { border-color: var(--primary); color: var(--text); }
[dir="rtl"] .rpBal { align-items: flex-start; }
