/* RH Reseller Program - client area styles. Self-contained (no Bootstrap JS/classes needed) so it renders the same in Six and Twenty-One. */
.rhrp { --rh-primary:#2563eb; --rh-primary-d:#1d4ed8; --rh-ink:#81a2f0; --rh-muted:#64748b; --rh-line:#e2e8f0; --rh-soft:#f8fafc; --rh-ok:#16a34a; --rh-warn:#d97706; --rh-bad:#dc2626; color:var(--rh-ink); font-size:14.5px; line-height:1.55; }
.rhrp *, .rhrp *::before, .rhrp *::after { box-sizing:border-box; }
.rhrp h1,.rhrp h2,.rhrp h3,.rhrp h4 { color:var(--rh-ink); margin:0 0 .5em; line-height:1.25; }
.rhrp a { color:var(--rh-primary); }
.rhrp-hidden { display:none !important; }

/* buttons */
.rhrp-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 18px; border-radius:10px; border:1px solid var(--rh-line); background:#fff; color:var(--rh-ink) !important; font-weight:600; font-size:14px; text-decoration:none !important; cursor:pointer; transition:transform .12s, box-shadow .12s, background .12s; line-height:1.2; }
.rhrp-btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(15,23,42,.12); }
.rhrp-btn-primary { background:var(--rh-primary); border-color:var(--rh-primary); color:#fff !important; }
.rhrp-btn-primary:hover { background:var(--rh-primary-d); }
.rhrp-btn-danger { background:var(--rh-bad); border-color:var(--rh-bad); color:#fff !important; }
.rhrp-btn-ghost { background:transparent; }
.rhrp-btn-sm { padding:6px 12px; font-size:12.5px; border-radius:8px; }
.rhrp-btn-lg { padding:14px 26px; font-size:16px; border-radius:12px; }
.rhrp-btn[disabled], .rhrp-btn.is-disabled { opacity:.5; pointer-events:none; }

/* hero */
.rhrp-hero { background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 55%,#2563eb 100%); color:#fff; border-radius:18px; padding:48px 32px; margin-bottom:22px; position:relative; overflow:hidden; }
.rhrp-hero::after { content:""; position:absolute; right:-80px; top:-80px; width:280px; height:280px; border-radius:50%; background:rgba(255,255,255,.07); }
.rhrp-hero h1 { color:#fff; font-size:34px; max-width:760px; }
.rhrp-hero p { color:#fff; font-size:17px; max-width:720px; margin-bottom:22px; }
.rhrp-hero .rhrp-cta { display:flex; flex-wrap:wrap; gap:12px; position:relative; z-index:1; }
.rhrp-hero .rhrp-btn-ghost { color:#fff !important; border-color:rgba(255,255,255,.5); }
.rhrp-banner { background:#fef3c7; border:1px solid #fde68a; color:#92400e; padding:12px 16px; border-radius:12px; margin-bottom:18px; font-weight:500; }

/* sections / cards */
.rhrp-section { margin:34px 0; }
.rhrp-section > h2 { font-size:22px; text-align:center; margin-bottom:6px; }
.rhrp-section > .rhrp-sub { text-align:center; color:var(--rh-muted); margin-bottom:20px; }
.rhrp-grid { display:grid; gap:16px; }
.rhrp-grid-2 { grid-template-columns:repeat(2,1fr); }
.rhrp-grid-3 { grid-template-columns:repeat(3,1fr); }
.rhrp-grid-4 { grid-template-columns:repeat(4,1fr); }
.rhrp-card { background:#fff; border:1px solid var(--rh-line); border-radius:14px; padding:20px; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.rhrp-card h3 { font-size:16px; }
.rhrp-card p { color:var(--rh-muted); margin:0; }
.rhrp-icon { width:46px; height:46px; border-radius:12px; background:#eff6ff; display:inline-flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:12px; }
.rhrp-step-no { width:34px; height:34px; border-radius:50%; background:var(--rh-primary); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:10px; }

/* badges */
.rhrp-badge { display:inline-block; padding:2px 10px; border-radius:99px; font-size:12px; font-weight:600; background:#e2e8f0; color:#334155; white-space:nowrap; }
.rhrp-badge-active, .rhrp-badge-success { background:#dcfce7; color:#166534; }
.rhrp-badge-pending, .rhrp-badge-warning { background:#fef9c3; color:#854d0e; }
.rhrp-badge-suspended, .rhrp-badge-error { background:#fee2e2; color:#991b1b; }
.rhrp-badge-Domain { background:#dbeafe; color:#1e40af; } .rhrp-badge-Hosting { background:#dcfce7; color:#166534; }
.rhrp-badge-Addon { background:#ede9fe; color:#5b21b6; } .rhrp-badge-Documentation { background:#f1f5f9; color:#475569; }

/* alerts */
.rhrp-alert { padding:12px 16px; border-radius:10px; margin-bottom:16px; border:1px solid; }
.rhrp-alert-success { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.rhrp-alert-danger { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.rhrp-alert-info { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.rhrp-alert-warning { background:#fffbeb; border-color:#fde68a; color:#92400e; }

/* status pages */
.rhrp-status { max-width:680px; margin:30px auto; text-align:center; }
.rhrp-status .rhrp-bigicon { font-size:54px; margin-bottom:6px; }
.rhrp-dl { text-align:left; margin:20px 0; }
.rhrp-dl div { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--rh-line); }
.rhrp-dl span:first-child { color:var(--rh-muted); }

/* forms */
.rhrp-form label { display:block; font-weight:600; margin:0 0 4px; }
.rhrp-form .rhrp-field { margin-bottom:14px; }
.rhrp-form small { color:var(--rh-muted); font-weight:400; }
.rhrp input[type=text], .rhrp input[type=url], .rhrp input[type=password], .rhrp input[type=search], .rhrp textarea, .rhrp select { width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:var(--rh-ink); font-size:14.5px; height:auto; }
.rhrp input:focus, .rhrp textarea:focus, .rhrp select:focus { outline:none; border-color:var(--rh-primary); box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.rhrp-inline { display:flex; gap:8px; }
.rhrp-inline input { flex:1; min-width:0; }
.rhrp-mono { font-family:SFMono-Regular,Consolas,Menlo,monospace; }

/* dashboard */
.rhrp-tabs { display:flex; gap:4px; border-bottom:2px solid var(--rh-line); margin:20px 0; overflow-x:auto; }
.rhrp-tab { padding:11px 18px; border:0; background:none; font-weight:600; color:var(--rh-muted); cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-2px; white-space:nowrap; font-size:14.5px; }
.rhrp-tab:hover { color:var(--rh-ink); }
.rhrp-tab.is-active { color:var(--rh-primary); border-bottom-color:var(--rh-primary); }
.rhrp-panel { display:none; } .rhrp-panel.is-active { display:block; }
.rhrp-stat .rhrp-stat-label { color:var(--rh-muted); font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; font-weight:600; }
.rhrp-stat .rhrp-stat-value { font-size:28px; font-weight:700; margin:4px 0 8px; }
.rhrp-copyrow { display:flex; gap:8px; align-items:center; }
.rhrp-copyrow input { flex:1; min-width:0; background:var(--rh-soft); }
.rhrp-kv { margin-bottom:16px; } .rhrp-kv > label { display:block; font-weight:600; margin-bottom:5px; }
.rhrp-ip { display:inline-flex; align-items:center; gap:8px; background:var(--rh-soft); border:1px solid var(--rh-line); border-radius:8px; padding:5px 6px 5px 12px; margin:0 8px 8px 0; }
.rhrp-ip form { margin:0; } .rhrp-ip button { border:0; background:#fee2e2; color:#991b1b; border-radius:6px; width:24px; height:24px; cursor:pointer; line-height:1; }
.rhrp-toolbar { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; align-items:center; }
.rhrp-toolbar input[type=search] { max-width:320px; } .rhrp-toolbar select { max-width:200px; }
.rhrp-toolbar .rhrp-spacer { flex:1; }
.rhrp-tablewrap { overflow-x:auto; border:1px solid var(--rh-line); border-radius:12px; background:#fff; }
.rhrp-table { width:100%; border-collapse:collapse; font-size:13.5px; margin:0; }
.rhrp-table th { text-align:left; background:var(--rh-soft); padding:10px 14px; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--rh-muted); white-space:nowrap; border-bottom:1px solid var(--rh-line); }
.rhrp-table td { padding:10px 14px; border-bottom:1px solid #f1f5f9; vertical-align:middle; }
.rhrp-table tr:last-child td { border-bottom:0; }
.rhrp-table .num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rhrp-pos { color:var(--rh-ok); font-weight:600; } .rhrp-neg { color:var(--rh-bad); font-weight:600; }
.rhrp-empty { padding:28px; text-align:center; color:var(--rh-muted); }
.rhrp-dlcard { display:flex; gap:16px; align-items:flex-start; justify-content:space-between; }
.rhrp-dlcard h3 { margin-bottom:4px; } .rhrp-dlcard .rhrp-meta { display:flex; gap:8px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.rhrp-dlactions { display:flex; flex-direction:column; gap:8px; min-width:150px; }
.rhrp-guide ol { padding-left:20px; margin:8px 0 0; } .rhrp-guide li { margin-bottom:6px; }
.rhrp-guide code, .rhrp code { background:#f1f5f9; padding:1px 6px; border-radius:5px; font-size:12.5px; }

/* modal */
.rhrp-modal { position:fixed; inset:0; z-index:100000; background:rgba(15,23,42,.55); display:none; align-items:center; justify-content:center; padding:18px; }
.rhrp-modal.is-open { display:flex; }
.rhrp-modal-box { background:#fff; border-radius:16px; width:100%; max-width:560px; max-height:90vh; overflow:auto; padding:24px; box-shadow:0 30px 70px rgba(0,0,0,.35); }
.rhrp-modal-box.wide { max-width:820px; }
.rhrp-modal-box h3 { font-size:18px; }
.rhrp-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.rhrp-pre { background:#0f172a; color:#e2e8f0; padding:14px; border-radius:10px; overflow:auto; max-height:280px; font-size:12px; white-space:pre-wrap; word-break:break-all; margin:6px 0 14px; }

@media (max-width:860px) { .rhrp-grid-3, .rhrp-grid-4 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) {
  .rhrp-grid-2, .rhrp-grid-3, .rhrp-grid-4 { grid-template-columns:1fr; }
  .rhrp-hero { padding:30px 20px; } .rhrp-hero h1 { font-size:26px; }
  .rhrp-dlcard { flex-direction:column; } .rhrp-dlactions { flex-direction:row; width:100%; }
  .rhrp-inline { flex-direction:column; }
}
