/*
Theme Name: ResellerHub Dashboard
Theme URI: https://resellerhub.com
Author: ResellerHub
Description: A complete reseller management dashboard theme with login, dashboard, orders, products, earnings and commission tracking.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: resellerhub
Tags: dashboard, reseller, ecommerce, custom-menu, custom-logo
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --primary:       #3a0ca3;
  --primary-light: #4361ee;
  --secondary:     #7209b7;
  --success:       #4cc9f0;
  --success-dark:  #0891b2;
  --danger:        #f72585;
  --warning:       #f8961e;
  --info:          #4895ef;
  --green:         #22c55e;
  --dark:          #1a1a2e;
  --light:         #f8f9fa;
  --border:        #e9ecef;
  --text:          #2d3748;
  --text-light:    #718096;
  --shadow:        0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-sm:     0 4px 6px -1px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,.10), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius:        10px;
  --radius-sm:     6px;
  --sidebar-width: 260px;
  --header-height: 70px;
  --transition:    all 0.3s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x:hidden; max-width:100%; }
body {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  background: #f5f7fb;
  color: var(--text);
  overflow-x: hidden;
  max-width:100%;
}
a { color: inherit; text-decoration: none; }
img { max-width:100%; display:block; }
button { font-family: inherit; }
ul, ol { list-style:none; }

::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:#f1f1f1; }
::-webkit-scrollbar-thumb { background:var(--primary-light); border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background:var(--primary); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.rh-login-page {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #0f3460 100%);
  padding:20px;
  position:relative;
  overflow:hidden;
}
.rh-login-page::before {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 20% 50%, rgba(67,97,238,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(114,9,183,.12) 0%, transparent 60%);
}
.rh-login-card {
  background:white;
  border-radius:16px;
  padding:44px 40px;
  width:100%;
  max-width:420px;
  box-shadow: var(--shadow-lg);
  position:relative;
  z-index:1;
  animation: fadeInUp .5s ease;
}
.rh-login-logo {
  text-align:center;
  margin-bottom:32px;
}
.rh-login-logo .logo-icon {
  width:60px; height:60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
  box-shadow: 0 8px 20px rgba(58,12,163,.3);
}
.rh-login-logo .logo-icon i { font-size:26px; color:white; }
.rh-login-logo h1 { font-size:22px; font-weight:700; color:var(--dark); margin-bottom:4px; }
.rh-login-logo p  { font-size:13px; color:var(--text-light); }
.rh-login-tabs {
  display:flex;
  background:var(--light);
  border-radius:8px;
  padding:4px;
  margin-bottom:24px;
  gap:4px;
}
.rh-login-tab {
  flex:1; text-align:center; padding:9px;
  font-size:13px; font-weight:600;
  color:var(--text-light); border-radius:6px;
  cursor:pointer; transition:var(--transition);
}
.rh-login-tab.active {
  background:white;
  color:var(--primary);
  box-shadow:var(--shadow-sm);
}
.rh-form-group { margin-bottom:18px; }
.rh-form-group label {
  display:block; font-size:12.5px; font-weight:600;
  color:var(--text); margin-bottom:7px; letter-spacing:.02em;
}
.rh-form-group .input-wrap {
  position:relative; display:flex; align-items:center;
}
.rh-form-group .input-wrap i {
  position:absolute; left:14px;
  font-size:15px; color:var(--text-light); z-index:1;
}
.rh-form-group input, .rh-form-group select, .rh-form-group textarea {
  width:100%;
  padding:11px 14px 11px 42px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  color:var(--text);
  background:white;
  transition:var(--transition);
  outline:none;
}
.rh-form-group input:focus, .rh-form-group select:focus, .rh-form-group textarea:focus {
  border-color:var(--primary-light);
  box-shadow:0 0 0 3px rgba(67,97,238,.12);
}
.rh-form-group input.no-icon, .rh-form-group select.no-icon, .rh-form-group textarea.no-icon {
  padding-left:14px;
}
.rh-forgot { text-align:right; margin-top:-10px; margin-bottom:18px; }
.rh-forgot a { font-size:12.5px; color:var(--primary-light); }
.rh-divider {
  display:flex; align-items:center; gap:12px;
  margin:20px 0; color:var(--text-light); font-size:12px;
}
.rh-divider::before, .rh-divider::after {
  content:""; flex:1; height:1px; background:var(--border);
}
.rh-login-footer { text-align:center; font-size:12.5px; color:var(--text-light); margin-top:20px; }
.rh-login-footer a { color:var(--primary); font-weight:600; }
.rh-login-error {
  background:rgba(247,37,133,.08);
  border:1px solid rgba(247,37,133,.25);
  color:var(--danger);
  border-radius:8px; padding:10px 14px;
  font-size:13px; margin-bottom:16px;
  display:flex; align-items:center; gap:8px;
}

/* ============================================================
   APP SHELL LAYOUT
   ============================================================ */
.rh-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.5); z-index:999;
  backdrop-filter:blur(2px);
}
.rh-overlay.show { display:block; }

.rh-shell {
  display:grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  min-height:100vh;
  max-width:100vw;
  overflow-x:hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.rh-sidebar {
  grid-row: 1 / 3;
  background: linear-gradient(180deg, var(--dark) 0%, #16213e 100%);
  color:white;
  overflow-y:auto;
  transition:var(--transition);
  box-shadow:var(--shadow);
  z-index:1000;
  position:relative;
}
.rh-sidebar::before {
  content:""; position:absolute; top:0; right:0;
  height:100%; width:1px;
  background:linear-gradient(to bottom, rgba(255,255,255,.1), transparent);
}
.rh-sidebar-logo {
  padding:22px 20px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:8px;
  display:flex; align-items:center; justify-content:space-between;
}
.rh-sidebar-logo h1 {
  font-size:24px; font-weight:700; color:white;
  display:flex; align-items:center; gap:4px;
}
.rh-sidebar-logo h1 span {
  background:linear-gradient(45deg, var(--primary-light), var(--success));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
}
.rh-sidebar-close {
  display:none;
  background:rgba(255,255,255,.1);
  border:none; color:white;
  width:30px; height:30px; border-radius:50%;
  font-size:14px; cursor:pointer;
  align-items:center; justify-content:center;
  transition:var(--transition);
}
.rh-sidebar-close:hover { background:rgba(255,255,255,.2); }

.rh-nav-menu { padding:8px 0; }

.rh-menu-heading {
  padding:14px 24px 6px;
  font-size:10.5px; text-transform:uppercase;
  letter-spacing:1.2px; color:rgba(255,255,255,.45); font-weight:500;
}

.rh-nav-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 24px;
  cursor:pointer;
  transition:var(--transition);
  border-left:4px solid transparent;
  margin:2px 0;
  border-radius:0 8px 8px 0;
  position:relative;
  color:rgba(255,255,255,.75);
  font-size:14px; font-weight:400;
  text-decoration:none;
}
.rh-nav-item i {
  width:22px; text-align:center;
  font-size:17px !important;
  flex-shrink:0;
  transition:var(--transition);
  color:rgba(255,255,255,.75);
}
.rh-nav-item span { font-size:14px; line-height:1; }
.rh-nav-item:hover {
  background:rgba(255,255,255,.07);
  border-left-color:var(--primary-light);
  color:white;
}
.rh-nav-item:hover i { transform:translateY(-2px); color:white; }
.rh-nav-item.active {
  background:linear-gradient(90deg, rgba(67,97,238,.25), transparent);
  border-left-color:var(--primary-light);
  color:white; font-weight:500;
}
.rh-nav-item.active i { color:var(--success); }

.rh-sidebar-user {
  padding:16px 20px;
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:auto;
  display:flex; align-items:center; gap:12px;
}
.rh-sidebar-avatar {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg, var(--primary-light), var(--secondary));
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; color:white; flex-shrink:0;
}
.rh-sidebar-username { font-size:13px; font-weight:600; color:white; }
.rh-sidebar-userrole { font-size:11px; color:rgba(255,255,255,.5); }
.rh-sidebar-logout {
  margin-left:auto;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.6); border-radius:7px;
  cursor:pointer; font-size:15px; transition:var(--transition);
  padding:6px 8px; display:flex; align-items:center; justify-content:center;
  text-decoration:none;
}
.rh-sidebar-logout:hover { color:white; background:rgba(239,68,68,.35); border-color:rgba(239,68,68,.5); }

/* ============================================================
   TOPBAR / HEADER
   ============================================================ */
.rh-header {
  grid-column:2;
  background:white;
  display:flex; align-items:center;
  justify-content:space-between;
  padding:0 28px;
  box-shadow:var(--shadow-sm);
  z-index:100;
  position:sticky; top:0;
}
.rh-header-left { display:flex; align-items:center; gap:14px; }
.rh-hamburger {
  display:none;
  background:none; border:none; cursor:pointer;
  width:38px; height:38px; border-radius:8px;
  align-items:center; justify-content:center;
  font-size:19px; color:var(--text);
  transition:var(--transition);
}
.rh-hamburger:hover { background:var(--light); color:var(--primary); }

.rh-search {
  display:flex; align-items:center;
  background:var(--light); border-radius:50px;
  padding:8px 18px; width:320px;
  border:1px solid transparent; transition:var(--transition);
}
.rh-search:focus-within {
  box-shadow:0 0 0 2px rgba(67,97,238,.1);
  border-color:rgba(67,97,238,.3);
}
.rh-search i { font-size:15px; color:var(--text-light); }
.rh-search input {
  border:none; background:none; outline:none;
  width:100%; padding:5px 10px;
  font-size:13.5px; color:var(--text); font-family:inherit;
}
.rh-search input::placeholder { color:var(--text-light); }

.rh-header-actions { display:flex; align-items:center; gap:4px; }

.rh-header-icon {
  position:relative; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; cursor:pointer; transition:var(--transition);
  color:var(--text-light);
}
.rh-header-icon i { font-size:18px !important; transition:var(--transition); }
.rh-header-icon:hover { background:rgba(67,97,238,.08); }
.rh-header-icon:hover i { color:var(--primary); transform:translateY(-2px); }
.rh-header-badge {
  position:absolute; top:4px; right:4px;
  background:var(--danger); color:white;
  border-radius:50%; width:17px; height:17px;
  font-size:9px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  border:2px solid white;
}

.rh-user-pill {
  display:flex; align-items:center; gap:10px;
  padding:6px 12px; border-radius:var(--radius);
  cursor:pointer; transition:var(--transition); margin-left:8px;
}
.rh-user-pill:hover { background:rgba(67,97,238,.05); }
.rh-user-avatar {
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg, var(--secondary), var(--primary));
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; color:white;
  box-shadow:0 3px 8px rgba(67,97,238,.2);
}
.rh-user-name  { font-size:13.5px; font-weight:600; }
.rh-user-role  { font-size:11.5px; color:var(--text-light); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.rh-main {
  grid-column:2;
  min-width:0;
  overflow-x:hidden;
  padding:26px 28px 40px;
  overflow-y:auto;
}

.rh-page-header {
  display:flex; align-items:flex-start;
  justify-content:space-between; flex-wrap:wrap;
  gap:14px; margin-bottom:26px;
  animation:fadeIn .4s ease;
}
.rh-page-header-left {}
.rh-page-title {
  font-size:26px; font-weight:700; color:var(--dark);
  position:relative; padding-bottom:10px; margin-bottom:4px;
}
.rh-page-title::after {
  content:""; position:absolute; bottom:0; left:0;
  width:38px; height:3px;
  background:linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius:10px;
}
.rh-page-sub { font-size:13px; color:var(--text-light); }
.rh-page-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.rh-stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px; margin-bottom:24px;
  animation:fadeInUp .5s ease;
}
.rh-stat-card {
  background:white; border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow-sm);
  transition:all .4s ease; position:relative;
  overflow:hidden; border:1px solid rgba(0,0,0,.03);
}
.rh-stat-card::before {
  content:""; position:absolute; top:0; left:0;
  width:5px; height:100%; opacity:.9;
}
.rh-stat-card:nth-child(1)::before { background:linear-gradient(to bottom,var(--primary),var(--primary-light)); }
.rh-stat-card:nth-child(2)::before { background:linear-gradient(to bottom,var(--info),var(--success)); }
.rh-stat-card:nth-child(3)::before { background:linear-gradient(to bottom,var(--green),#16a34a); }
.rh-stat-card:nth-child(4)::before { background:linear-gradient(to bottom,var(--warning),#f59e0b); }
.rh-stat-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); }

.rh-stat-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.rh-stat-icon {
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; color:white;
  box-shadow:0 6px 10px rgba(0,0,0,.12); transition:var(--transition);
}
.rh-stat-card:hover .rh-stat-icon { transform:scale(1.1); }
.rh-stat-icon.ic-purple { background:linear-gradient(135deg,var(--primary),var(--secondary)); }
.rh-stat-icon.ic-blue   { background:linear-gradient(135deg,var(--info),#4cc9f0); }
.rh-stat-icon.ic-green  { background:linear-gradient(135deg,var(--green),#16a34a); }
.rh-stat-icon.ic-orange { background:linear-gradient(135deg,var(--warning),#f59e0b); }
.rh-stat-icon.ic-pink   { background:linear-gradient(135deg,var(--danger),#e11d48); }
.rh-stat-icon.ic-teal   { background:linear-gradient(135deg,var(--success),#0e7490); }

.rh-stat-value {
  font-size:28px; font-weight:700; color:var(--dark);
  transition:var(--transition); margin-bottom:4px;
}
.rh-stat-card:hover .rh-stat-value { color:var(--primary); }
.rh-stat-label { font-size:13.5px; color:var(--text-light); font-weight:500; }
.rh-stat-change {
  display:flex; align-items:center; gap:5px;
  font-size:12.5px; font-weight:600; padding-top:10px;
}
.rh-stat-change i { font-size:13px !important; }
.rh-stat-change.up   { color:var(--success-dark); }
.rh-stat-change.down { color:var(--danger); }
.rh-stat-change.neutral { color:var(--text-light); }

/* ============================================================
   CARDS
   ============================================================ */
.rh-card {
  background:white; border-radius:var(--radius);
  box-shadow:var(--shadow-sm); overflow:hidden;
  margin-bottom:22px; border:1px solid rgba(0,0,0,.03);
  animation:fadeInUp .6s ease;
}
.rh-card-header {
  padding:18px 22px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  background:rgba(248,249,250,.5);
}
.rh-card-title {
  font-size:16px; font-weight:600; color:var(--dark);
  display:flex; align-items:center; gap:9px;
}
.rh-card-title i { font-size:16px !important; color:var(--primary); }
.rh-card-body { padding:22px; }

/* ============================================================
   TABLES
   ============================================================ */
.rh-table-wrap { overflow-x:auto; }
.rh-table {
  width:100%; border-collapse:separate; border-spacing:0;
  font-size:13.5px;
}
.rh-table th {
  padding:13px 18px; text-align:left;
  font-size:12px; font-weight:600; color:var(--text);
  background:#f8f9fa; white-space:nowrap;
  border-bottom:1px solid var(--border);
}
.rh-table td {
  padding:14px 18px; border-bottom:1px solid var(--border);
  vertical-align:middle; color:var(--text);
}
.rh-table tr:last-child td { border-bottom:none; }
.rh-table tbody tr { transition:var(--transition); }
.rh-table tbody tr:hover {
  background:rgba(67,97,238,.025);
  transform:translateY(-1px);
  box-shadow:0 3px 8px rgba(0,0,0,.04);
}

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.rh-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 12px; border-radius:20px;
  font-size:12px; font-weight:600; white-space:nowrap;
}
.rh-badge i { font-size:11px !important; }
.rh-badge-green    { background:rgba(34,197,94,.12);   color:#16a34a; border:1px solid rgba(34,197,94,.25); }
.rh-badge-amber    { background:rgba(245,158,11,.12);  color:#d97706; border:1px solid rgba(245,158,11,.25); }
.rh-badge-red      { background:rgba(247,37,133,.12);  color:#db2777; border:1px solid rgba(247,37,133,.25); }
.rh-badge-blue     { background:rgba(72,149,239,.12);  color:#1d6fc4; border:1px solid rgba(72,149,239,.25); }
.rh-badge-purple   { background:rgba(58,12,163,.1);    color:var(--primary); border:1px solid rgba(58,12,163,.2); }
.rh-badge-gray     { background:rgba(113,128,150,.1);  color:var(--text-light); border:1px solid rgba(113,128,150,.2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.rh-btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:7px; padding:10px 20px;
  border-radius:var(--radius); font-weight:500; cursor:pointer;
  transition:all .3s; border:none; outline:none;
  font-size:13.5px; font-family:inherit;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  position:relative; overflow:hidden;
  text-decoration:none;
}
.rh-btn::after {
  content:""; position:absolute;
  width:100%; height:100%; top:0; left:-100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
  transition:.5s;
}
.rh-btn:hover::after { left:100%; }
.rh-btn i { font-size:14px !important; transition:var(--transition); }
.rh-btn:hover i { transform:translateX(2px); }
.rh-btn:hover { transform:translateY(-2px); }

.rh-btn-primary {
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  color:white;
}
.rh-btn-primary:hover {
  background:linear-gradient(135deg,var(--secondary),var(--primary));
  box-shadow:0 6px 15px rgba(58,12,163,.25); color:white;
}
.rh-btn-outline {
  background:transparent;
  border:2px solid var(--primary-light);
  color:var(--primary);
}
.rh-btn-outline:hover {
  background:var(--primary); color:white;
  border-color:var(--primary);
  box-shadow:0 6px 15px rgba(58,12,163,.2);
}
.rh-btn-success {
  background:linear-gradient(135deg,var(--green),#16a34a);
  color:white;
}
.rh-btn-danger {
  background:rgba(247,37,133,.1); color:var(--danger);
  border:1px solid rgba(247,37,133,.25);
}
.rh-btn-danger:hover { background:rgba(247,37,133,.2); }
.rh-btn-sm { padding:6px 14px; font-size:12.5px; border-radius:var(--radius-sm); }
.rh-btn-sm i { font-size:12px !important; }
.rh-btn-full { width:100%; justify-content:center; }

/* ============================================================
   FORMS (general)
   ============================================================ */
.rh-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.rh-form-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.rh-form-actions { display:flex; gap:12px; margin-top:22px; justify-content:flex-end; }

/* ============================================================
   COMMISSION / EARNINGS SUMMARY BAR
   ============================================================ */
.rh-earn-bar {
  background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);
  border-radius:var(--radius);
  padding:24px 28px;
  display:flex; align-items:center;
  justify-content:space-around; flex-wrap:wrap;
  gap:20px; margin-bottom:22px;
  box-shadow:0 8px 20px rgba(58,12,163,.3);
}
.rh-earn-item { text-align:center; }
.rh-earn-val  { font-size:26px; font-weight:800; color:white; font-family:monospace; }
.rh-earn-lbl  { font-size:11px; color:rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.08em; margin-top:3px; }
.rh-earn-sep  { width:1px; height:50px; background:rgba(255,255,255,.2); }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.rh-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.rh-alert {
  display:flex; align-items:flex-start; gap:10px;
  padding:13px 16px; border-radius:8px;
  font-size:13px; margin-bottom:16px;
}
.rh-alert i { font-size:16px !important; margin-top:1px; flex-shrink:0; }
.rh-alert-info    { background:rgba(72,149,239,.1);  color:#1d6fc4; border:1px solid rgba(72,149,239,.2); }
.rh-alert-success { background:rgba(34,197,94,.1);   color:#16a34a; border:1px solid rgba(34,197,94,.2); }
.rh-alert-warning { background:rgba(245,158,11,.1);  color:#d97706; border:1px solid rgba(245,158,11,.2); }
.rh-alert-danger  { background:rgba(247,37,133,.1);  color:#db2777; border:1px solid rgba(247,37,133,.2); }

/* ============================================================
   QUICK ACTION CARDS (dashboard shortcuts)
   ============================================================ */
.rh-quick-actions {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:14px; margin-bottom:22px;
}
.rh-quick-card {
  background:white; border-radius:var(--radius);
  padding:18px 16px; text-align:center;
  box-shadow:var(--shadow-sm); cursor:pointer;
  transition:var(--transition); border:1px solid rgba(0,0,0,.03);
  text-decoration:none; color:var(--text);
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.rh-quick-card:hover {
  transform:translateY(-5px); box-shadow:var(--shadow);
  color:var(--primary);
}
.rh-quick-card .rh-quick-icon {
  width:50px; height:50px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:white; transition:var(--transition);
}
.rh-quick-card:hover .rh-quick-icon { transform:scale(1.1); }
.rh-quick-card span { font-size:13px; font-weight:500; }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.rh-bottom-nav {
  display:none;
  position:fixed; bottom:0; left:0; right:0;
  background:white; border-top:1px solid var(--border);
  z-index:900; box-shadow:0 -4px 12px rgba(0,0,0,.08);
}
.rh-bottom-nav-inner {
  display:flex; align-items:center; justify-content:space-around;
  padding:8px 0 max(8px, env(safe-area-inset-bottom));
}
.rh-mob-item {
  display:flex; flex-direction:column; align-items:center;
  gap:3px; padding:6px 12px; border-radius:10px;
  cursor:pointer; transition:var(--transition); flex:1;
  color:var(--text-light); text-decoration:none;
}
.rh-mob-item:hover, .rh-mob-item.active { color:var(--primary-light); }
.rh-mob-item i { font-size:18px !important; transition:var(--transition); }
.rh-mob-item span { font-size:10px; font-weight:500; }
.rh-mob-item.active i { transform:translateY(-2px); }

/* ============================================================
   PLACEHOLDER PAGES (Analytics, Sales, etc.)
   ============================================================ */
.rh-coming-soon {
  text-align:center; padding:60px 20px;
  animation:fadeInUp .5s ease;
}
.rh-coming-soon .rh-cs-icon {
  width:80px; height:80px; border-radius:20px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  display:flex; align-items:center; justify-content:center;
  font-size:32px; color:white;
  margin:0 auto 20px;
  box-shadow:0 8px 20px rgba(58,12,163,.3);
}
.rh-coming-soon h3 { font-size:22px; font-weight:700; color:var(--dark); margin-bottom:10px; }
.rh-coming-soon p  { font-size:14px; color:var(--text-light); max-width:400px; margin:0 auto 22px; }

/* ============================================================
   SETTINGS FORM
   ============================================================ */
.rh-setting-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; border-bottom:1px solid var(--border); gap:20px;
}
.rh-setting-row:last-child { border-bottom:none; }
.rh-setting-info h4 { font-size:14px; font-weight:600; color:var(--dark); margin-bottom:3px; }
.rh-setting-info p  { font-size:12.5px; color:var(--text-light); }
.rh-toggle {
  position:relative; width:44px; height:24px; flex-shrink:0;
}
.rh-toggle input { opacity:0; width:0; height:0; }
.rh-toggle-slider {
  position:absolute; inset:0;
  background:#ccc; border-radius:24px; cursor:pointer;
  transition:var(--transition);
}
.rh-toggle-slider::before {
  content:""; position:absolute;
  width:18px; height:18px; border-radius:50%;
  background:white; left:3px; bottom:3px;
  transition:var(--transition);
  box-shadow:0 2px 4px rgba(0,0,0,.2);
}
.rh-toggle input:checked + .rh-toggle-slider { background:var(--primary-light); }
.rh-toggle input:checked + .rh-toggle-slider::before { transform:translateX(20px); }

/* ============================================================
   PROFILE AVATAR (users page)
   ============================================================ */
.rh-user-row-avatar {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:white; flex-shrink:0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1280px) {
  .rh-stats-grid { grid-template-columns:repeat(2,1fr); }
  .rh-quick-actions { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:1024px) {
  :root { --sidebar-width:230px; }
}
@media (max-width:992px) {
  :root { --sidebar-width:260px; }
  .rh-shell {
    grid-template-columns:1fr;
    grid-template-rows:var(--header-height) auto 1fr;
  }
  .rh-sidebar {
    position:fixed; top:0; left:0; height:100vh;
    transform:translateX(-100%); z-index:1001;
  }
  .rh-sidebar.open { transform:translateX(0); box-shadow:var(--shadow-lg); }
  .rh-sidebar-close { display:flex; }
  .rh-header { grid-column:1; }
  .rh-hamburger { display:flex; }
  .rh-main { grid-column:1; padding-bottom:90px; }
  .rh-bottom-nav { display:block; }
  .rh-grid-2 { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .rh-search { display:none; }
  .rh-stats-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .rh-quick-actions { grid-template-columns:repeat(2,1fr); }
  .rh-user-role { display:none; }
  .rh-main { padding:16px 14px 90px; }
  .rh-page-title { font-size:20px; }
  .rh-form-grid, .rh-form-grid-3 { grid-template-columns:1fr; }
  .rh-earn-sep { display:none; }
}
@media (max-width:576px) {
  .rh-stats-grid { grid-template-columns:1fr; }
  .rh-quick-actions { grid-template-columns:1fr 1fr; }
  .rh-page-actions { width:100%; }
  .rh-page-actions .rh-btn { flex:1; justify-content:center; }
  .rh-user-name { display:none; }
}
