/* Hubicx Partners styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0f1118;
  --card: #171a24;
  --line: #262a36;
  --ink: #eaeaef;
  --muted: #8b8fa3;
  --accent: #6c5ce7;
  --accent-ink: #fff;
  --green: #2ed573;
  --red: #ff4757;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(0,0,0,.28);
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; }
.pr-load, .pr-load-sm { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--muted); font-size: 15px; }
.pr-error { padding: 40px; color: var(--red); text-align: center; }

/* Login */
.pr-login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.pr-login-card { background: var(--card); border-radius: 20px; padding: 36px 28px; width: 100%; max-width: 380px; border: 1px solid var(--line); text-align: center; }
.pr-login-logo { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.pr-login-logo span { color: var(--accent); }
.pr-login-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.pr-input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; padding: 0 14px; margin-bottom: 10px; }
.pr-input:focus { outline: none; border-color: var(--accent); }
.pr-err { color: var(--red); font-size: 12px; margin-bottom: 8px; }
.pr-btn { width: 100%; height: 48px; border-radius: 12px; border: none; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.pr-btn:disabled { opacity: .5; cursor: not-allowed; }
.pr-btn-sm { width: auto; height: 36px; padding: 0 16px; font-size: 13px; }

/* Layout */
.pr-app { min-height: 100vh; display: flex; flex-direction: column; }
.pr-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.pr-logo { font-size: 18px; font-weight: 800; }
.pr-logo span { color: var(--accent); }
.pr-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pr-partner-name { font-weight: 600; font-size: 13px; }
.pr-logout { background: none; border: 1px solid var(--line); color: var(--muted); padding: 5px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.pr-nav { display: flex; gap: 4px; width: 100%; margin-top: 4px; }
.pr-nav a { padding: 7px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: none; }
.pr-nav a.on { background: var(--accent); color: var(--accent-ink); }
.pr-body { flex: 1; padding: 20px; max-width: 960px; margin: 0 auto; width: 100%; }

/* Cards */
.pr-sect { margin-bottom: 24px; }
.pr-sect h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.pr-sect h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pr-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pr-stat-val { font-size: 24px; font-weight: 800; }
.pr-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pr-stat-sub { font-size: 11px; color: var(--green); margin-top: 4px; }

/* Table */
.pr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pr-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.pr-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.pr-empty { color: var(--muted); font-size: 13px; padding: 20px 0; }
.pr-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Links */
.pr-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pr-link-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pr-link-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pr-link-desc { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.pr-link-url { font-size: 11px; font-family: monospace; color: var(--accent); word-break: break-all; margin-bottom: 8px; }
.pr-link-stats { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }

/* Chart */
.pr-chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
