/* ═══════════════════════════════════════════════════════
   Reseller BD — Premium Design System v2.0
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── CSS VARIABLES ── */
:root {
	--rb-primary:        #6366f1;
	--rb-primary-rgb:    99, 102, 241;
	--rb-primary-dark:   #4f46e5;
	--rb-primary-light:  #a5b4fc;
	--rb-secondary:      #ec4899;
	--rb-accent:         #10b981;
	--rb-accent-rgb:     16, 185, 129;
	--rb-danger:         #ef4444;
	--rb-warning:        #f59e0b;
	--rb-info:           #0ea5e9;
	--rb-gold:           #f59e0b;

	--rb-bg:             #f1f5f9;
	--rb-card:           #ffffff;
	--rb-border:         #e2e8f0;
	--rb-text:           #0f172a;
	--rb-muted:          #64748b;
	--rb-light:          #f8fafc;

	--rb-radius-xs:      6px;
	--rb-radius-sm:      10px;
	--rb-radius:         16px;
	--rb-radius-lg:      24px;

	--rb-sidebar-w:      260px;
	--rb-header-h:       72px;

	--rb-shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
	--rb-shadow:         0 4px 20px rgba(0,0,0,0.06);
	--rb-shadow-md:      0 8px 30px rgba(0,0,0,0.10);
	--rb-shadow-pop:     0 20px 60px rgba(0,0,0,0.14);

	--rb-transition:     all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
:where(body.rb-canvas-body) * { box-sizing: border-box; }
:where(body.rb-canvas-body) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, hr, fieldset, legend) {
	margin: 0;
	padding: 0;
}
:where(body.rb-canvas-body) :where(ul, ol) {
	list-style: none;
}
:where(body.rb-canvas-body a) {
	text-decoration: none;
	box-shadow: none;
	color: inherit;
}
:where(body.rb-canvas-body) :where(button, input, textarea, select) {
	font-family: inherit;
	margin: 0;
}

/* FORCE FONT AWESOME 6 FOR PLUGIN ICONS (Theme Overrides Protection) */
.rb-canvas-body i.fas, .rb-canvas-body i.fa-solid, .rb-canvas-body i.fa-regular,
.rb-bottom-nav i.fas, .rb-bottom-nav i.fa-solid, .rb-bottom-nav i.fa-regular,
.rb-stat-icon i, .nav-item i {
	font-family: 'Font Awesome 6 Free' !important;
	font-weight: 900 !important;
}
.rb-canvas-body i.fa-regular, .rb-bottom-nav i.fa-regular {
	font-weight: 400 !important;
}

/* ── THEME ISOLATION — canvas body ── */
body.rb-canvas-body {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--rb-bg) !important;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	max-width: none !important;
	width: 100% !important;
}
/* Kill any theme wrapper max-width or padding */
body.rb-canvas-body > .site,
body.rb-canvas-body > #page,
body.rb-canvas-body > .wrap,
body.rb-canvas-body > #content,
body.rb-canvas-body > .container,
body.rb-canvas-body > .wrapper {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

/* ── BASE DASHBOARD ── */
.rb-page, .rb-dashboard {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--rb-text);
	background: var(--rb-bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* ── PREVENT THEME LINK COLOR OVERRIDE ── */
.rb-dashboard a,
.rb-page a {
	color: inherit;
	text-decoration: none;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.rb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: var(--rb-radius-sm);
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: var(--rb-transition);
	white-space: nowrap;
	line-height: 1;
	letter-spacing: 0.2px;
}
.rb-btn-primary {
	background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-dark));
	color: #fff;
	box-shadow: 0 4px 14px rgba(var(--rb-primary-rgb), 0.35);
}
.rb-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(var(--rb-primary-rgb), 0.45);
	color: #fff;
}
.rb-btn-secondary { background: var(--rb-accent); color: #fff; }
.rb-btn-secondary:hover { background: #0ea471; color: #fff; transform: translateY(-2px); }
.rb-btn-outline { background: transparent; border: 2px solid var(--rb-primary); color: var(--rb-primary); }
.rb-btn-outline:hover { background: var(--rb-primary); color: #fff; }
.rb-btn-ghost { background: var(--rb-light); color: var(--rb-text); }
.rb-btn-ghost:hover { background: var(--rb-border); }
.rb-btn-danger { background: var(--rb-danger); color: #fff; }
.rb-btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-2px); }
.rb-btn-full { width: 100%; }
.rb-btn-sm { padding: 8px 16px; font-size: 13px; }
.rb-btn-xs { padding: 6px 12px; font-size: 12px; }
.rb-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.rb-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rbSpin 0.7s linear infinite;
}
@keyframes rbSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   BADGES & STATUS
═══════════════════════════════════════════════ */
.rb-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.rb-badge-active, .rb-badge-complete, .rb-badge-approved { background: #dcfce7; color: #166534; }
.rb-badge-pending   { background: #fef9c3; color: #854d0e; }
.rb-badge-expired, .rb-badge-rejected, .rb-badge-cancelled { background: #fee2e2; color: #991b1b; }
.rb-badge-processing { background: #dbeafe; color: #1e40af; }
.rb-badge-inactive  { background: #f1f5f9; color: #475569; }
.rb-badge-credit    { background: #dcfce7; color: #166534; }
.rb-badge-debit     { background: #fee2e2; color: #991b1b; }
.rb-badge-on-hold   { background: #fef9c3; color: #854d0e; }

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.rb-form { display: flex; flex-direction: column; gap: 18px; }
.rb-form-row { display: flex; flex-direction: column; gap: 6px; }
.rb-form-row label { font-size: 13px; font-weight: 700; color: var(--rb-text); }
.rb-form-row small { font-size: 12px; color: var(--rb-muted); margin-top: 2px; }
.rb-form-row input,
.rb-form-row select,
.rb-form-row textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--rb-border);
	border-radius: var(--rb-radius-sm);
	font-family: inherit;
	font-size: 14px;
	background: #fff;
	color: var(--rb-text);
	transition: var(--rb-transition);
	outline: none;
}
.rb-form-row input:focus,
.rb-form-row select:focus,
.rb-form-row textarea:focus {
	border-color: var(--rb-primary);
	box-shadow: 0 0 0 3px rgba(var(--rb-primary-rgb), 0.12);
}
.rb-form-row input:disabled,
.rb-form-row input.rb-input-readonly {
	background: var(--rb-light);
	color: var(--rb-muted);
	cursor: not-allowed;
}
.rb-form-message {
	padding: 12px 16px;
	border-radius: var(--rb-radius-sm);
	font-size: 13px;
	display: none;
	align-items: center;
	gap: 8px;
}
.rb-form-message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; display: flex; }
.rb-form-message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: flex; }
.rb-pass-wrap { position: relative; }
.rb-pass-wrap input { padding-right: 44px; }
.rb-eye-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--rb-muted); font-size: 16px; }
.rb-eye-toggle:hover { color: var(--rb-primary); }
.rb-strength-meter { height: 4px; background: var(--rb-border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.rb-strength-bar { height: 100%; border-radius: 4px; transition: width .3s, background .3s; width: 0; }
.rb-strength-bar.weak   { width: 25%; background: var(--rb-danger); }
.rb-strength-bar.fair   { width: 50%; background: var(--rb-warning); }
.rb-strength-bar.good   { width: 75%; background: var(--rb-info); }
.rb-strength-bar.strong { width: 100%; background: var(--rb-accent); }
.required { color: var(--rb-danger); }
.optional  { color: var(--rb-muted); font-size: 11px; }
.rb-field-feedback { font-size: 12px; margin-top: 3px; }
.rb-field-feedback.success { color: var(--rb-accent); }
.rb-field-feedback.error   { color: var(--rb-danger); }

/* ═══════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════ */
.rb-auth-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
	padding: 40px 20px;
}
.rb-auth-card {
	background: var(--rb-card);
	border-radius: var(--rb-radius-lg);
	padding: 44px 40px;
	width: 100%;
	max-width: 460px;
	box-shadow: var(--rb-shadow-pop);
	animation: rbFadeUp 0.5s ease-out;
}
@keyframes rbFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.rb-auth-logo { text-align: center; margin-bottom: 32px; }
.rb-auth-logo h1 {
	font-size: 28px; font-weight: 800; margin: 8px 0 4px;
	background: linear-gradient(135deg, var(--rb-primary), var(--rb-secondary));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rb-auth-logo p { color: var(--rb-muted); font-size: 14px; margin: 0; }
.rb-auth-link  { text-align: center; font-size: 13px; color: var(--rb-muted); margin-top: 16px; }
.rb-auth-link a { color: var(--rb-primary); font-weight: 600; text-decoration: none; }
.rb-auth-divider { text-align: center; color: var(--rb-muted); font-size: 13px; margin: 16px 0; }
.rb-forgot-link { font-size: 13px; color: var(--rb-primary); text-decoration: none; }
.rb-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.rb-logo-preview { max-width: 100px; max-height: 64px; border-radius: 8px; margin-top: 8px; }

/* ═══════════════════════════════════
   NOTICE BAR
════════════════════════════════════ */
.rb-notice-bar {
	background: linear-gradient(90deg, #fffbeb, #fef3c7);
	border-bottom: 2px solid #fcd34d;
	padding: 9px 50px 9px 16px;
	position: relative;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	color: #92400e;
}
.rb-notice-scroll {
	display: inline-block;
	white-space: nowrap;
	animation: rbScroll 30s linear infinite;
}
@keyframes rbScroll {
	from { transform: translateX(100vw); }
	to   { transform: translateX(-100%); }
}
.rb-notice-dismiss {
	position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
	background: rgba(0,0,0,0.08); border: none; border-radius: 50%;
	width: 22px; height: 22px; cursor: pointer; color: #92400e;
	display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ══════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════ */
.rb-reseller-dashboard,
.rb-affiliate-dashboard { background: var(--rb-bg); min-height: 100vh; }

.rb-dashboard-layout {
	display: flex;
	min-height: 100vh;
}

/* ─ SIDEBAR (desktop: sticky column) ─ */
.rb-sidebar {
	width: var(--rb-sidebar-w); /* 260px from :root */
	background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
	color: #fff;
	height: 100vh;
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	z-index: 200;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.rb-sidebar::-webkit-scrollbar { width: 4px; }
.rb-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.rb-sidebar-header {
	padding: 28px 20px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	text-align: center;
	flex-shrink: 0;
}
.rb-sidebar-logo {
	width: 72px; height: 72px;
	border-radius: 20px;
	object-fit: cover;
	margin: 0 auto 12px;
	border: 3px solid rgba(255,255,255,0.12);
	box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.rb-sidebar-name { font-size: 15px; font-weight: 800; color: #f8fafc; margin-bottom: 6px; line-height: 1.3; }
.rb-sidebar-badge {
	display: inline-block;
	padding: 3px 12px; border-radius: 100px;
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.5px;
}
.rb-sidebar-badge.rb-badge-active   { background: rgba(16,185,129,0.2);  color: #6ee7b7; }
.rb-sidebar-badge.rb-badge-pending  { background: rgba(245,158,11,0.2);  color: #fcd34d; }
.rb-sidebar-badge.rb-badge-inactive { background: rgba(255,255,255,0.08); color: #94a3b8; }
.rb-sidebar-badge.rb-badge-expired  { background: rgba(239,68,68,0.2);   color: #fca5a5; }

.rb-nav-menu { list-style: none; padding: 16px 12px; margin: 0; flex: 1; }
.rb-nav-menu li { margin-bottom: 2px; }
.rb-nav-menu li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 12px;
	color: #94a3b8;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: var(--rb-transition);
}
.rb-nav-menu li a span { flex: 1; white-space: nowrap; }
.rb-nav-menu li a i { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.rb-nav-menu li a:hover { background: rgba(255,255,255,0.07); color: #e2e8f0; }
.rb-nav-menu li.active > a {
	background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(99,102,241,0.15));
	color: #fff;
	border: 1px solid rgba(99,102,241,0.3);
	box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}
.rb-nav-menu li.active > a i { color: var(--rb-primary-light); }
.rb-nav-menu li a.rb-logout-link { color: #f87171; }
.rb-nav-menu li a.rb-logout-link:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }
.rb-nav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 14px; }
.rb-nav-badge {
	background: var(--rb-danger); color: #fff;
	font-size: 10px; font-weight: 800;
	padding: 2px 6px; border-radius: 100px; min-width: 18px; text-align: center;
}

/* ─ MOBILE HEADER (hidden on desktop >1024px) ─ */
.rb-dash-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	position: sticky; top: 0; z-index: 350;
	width: 100%; min-height: 50px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.rb-hdr-brand {
	display: flex; align-items: center; gap: 8px;
	flex: 1; justify-content: center;
}
.rb-hdr-logo { object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.18); }
.rb-hdr-name  { font-size: 16px; font-weight: 800; white-space: nowrap; }
.rb-hamburger-btn {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	font-size: 19px; background: none; border: none; cursor: pointer;
	border-radius: 8px; flex-shrink: 0;
	transition: var(--rb-transition);
}
.rb-hamburger-btn:hover { background: rgba(255,255,255,0.15); }
.rb-hdr-spacer { width: 36px; flex-shrink: 0; }

/* ─ SIDEBAR OVERLAY (mobile) ─ */
.rb-sidebar-overlay {
	display: none;
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 440;
	backdrop-filter: blur(2px);
}

/* ─ MAIN CONTENT AREA ─ */
.rb-dashboard-main {
	flex: 1; min-width: 0;
	padding: 36px 32px;
	min-height: 100vh;
}

/* Header area inside main */
.rb-page-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--rb-text);
	margin: 0 0 24px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.rb-page-title i { color: var(--rb-primary); font-size: 20px; }

/* ═══════════════════════════════════════════════
   SECTIONS / CARDS
═══════════════════════════════════════════════ */
.rb-section {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	padding: 28px;
	margin-bottom: 24px;
	box-shadow: var(--rb-shadow);
	border: 1px solid rgba(226,232,240,0.8);
}
.rb-section h2 {
	font-size: 18px;
	font-weight: 800;
	color: var(--rb-text);
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--rb-bg);
	display: flex;
	align-items: center;
	gap: 10px;
}
.rb-section h2 i { color: var(--rb-primary); }
.rb-section h3 { font-size: 15px; font-weight: 700; color: var(--rb-text); margin: 24px 0 14px; }
.rb-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--rb-bg);
	flex-wrap: wrap;
	gap: 12px;
}
.rb-section-header h2 { margin: 0; padding: 0; border: none; }

/* ═══════════════════════════════════════════════
   DASHBOARD HOME — STATS
═══════════════════════════════════════════════ */
.rb-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.rb-stat-card {
	background: var(--rb-card);
	padding: 20px;
	border-radius: var(--rb-radius);
	box-shadow: var(--rb-shadow);
	border: 1px solid rgba(226,232,240,0.8);
	transition: var(--rb-transition);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.rb-stat-card::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 3px;
	background: var(--rb-border);
	transition: var(--rb-transition);
}
.rb-stat-earning::after { background: linear-gradient(90deg, var(--rb-primary), var(--rb-primary-light)); }
.rb-stat-balance::after { background: linear-gradient(90deg, var(--rb-accent), #34d399); }
.rb-stat-coins::after   { background: linear-gradient(90deg, var(--rb-gold), #fbbf24); }
.rb-stat-pending::after { background: linear-gradient(90deg, var(--rb-warning), #fbbf24); }
.rb-stat-cancelled::after { background: linear-gradient(90deg, var(--rb-danger), #f87171); }
.rb-stat-pending-wd::after { background: linear-gradient(90deg, var(--rb-info), #38bdf8); }

.rb-stat-card:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow-md); }

.rb-stat-icon {
	width: 46px; height: 46px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px;
	margin-bottom: 14px;
}
.rb-stat-earning .rb-stat-icon { background: rgba(var(--rb-primary-rgb),0.1); color: var(--rb-primary); }
.rb-stat-balance .rb-stat-icon { background: rgba(var(--rb-accent-rgb),0.1); color: var(--rb-accent); }
.rb-stat-coins .rb-stat-icon   { background: rgba(245,158,11,0.1); color: var(--rb-gold); }
.rb-stat-pending .rb-stat-icon { background: rgba(245,158,11,0.1); color: var(--rb-warning); }
.rb-stat-cancelled .rb-stat-icon { background: rgba(239,68,68,0.1); color: var(--rb-danger); }
.rb-stat-pending-wd .rb-stat-icon { background: rgba(14,165,233,0.1); color: var(--rb-info); }
.rb-stat-card:not([class*="rb-stat-"]) .rb-stat-icon { background: #f1f5f9; color: var(--rb-muted); }

.rb-stat-label { font-size: 11px; font-weight: 700; color: var(--rb-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.rb-stat-value { font-size: 24px; font-weight: 800; color: var(--rb-text); margin-top: 4px; letter-spacing: -0.5px; }
.rb-stat-earning .rb-stat-value { color: var(--rb-primary); }
.rb-stat-balance .rb-stat-value { color: var(--rb-accent); }
.rb-stat-coins .rb-stat-value   { color: var(--rb-gold); }

/* ── TIME FILTERS ── */
.rb-time-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rb-filter-btn {
	padding: 7px 16px;
	border-radius: 100px;
	border: 1.5px solid var(--rb-border);
	background: var(--rb-card);
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	color: var(--rb-muted);
	transition: var(--rb-transition);
}
.rb-filter-btn.active, .rb-filter-btn:hover {
	border-color: var(--rb-primary);
	background: var(--rb-primary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(var(--rb-primary-rgb),0.25);
}

/* ── CHART ── */
.rb-chart-container {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	padding: 24px;
	box-shadow: var(--rb-shadow);
	border: 1px solid rgba(226,232,240,0.8);
}
.rb-chart-container h3 { font-size: 15px; font-weight: 700; margin: 0 0 20px; }

/* ═══════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════ */
.rb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--rb-radius-sm); }
.rb-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.rb-table th {
	background: var(--rb-bg);
	padding: 11px 14px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--rb-muted);
	border-bottom: 2px solid var(--rb-border);
	white-space: nowrap;
}
.rb-table th:first-child { border-radius: var(--rb-radius-xs) 0 0 0; }
.rb-table th:last-child  { border-radius: 0 var(--rb-radius-xs) 0 0; }
.rb-table td { padding: 13px 14px; border-bottom: 1px solid var(--rb-border); color: var(--rb-text); vertical-align: middle; }
.rb-table tr:last-child td { border-bottom: none; }
.rb-table tbody tr { transition: background 0.15s; }
.rb-table tbody tr:hover td { background: #f8fafc; }
.rb-empty { text-align: center; padding: 52px 20px !important; color: var(--rb-muted); font-size: 14px; }
.rb-commission-earned { color: var(--rb-accent) !important; font-weight: 700; }

/* ── ORDER CARDS ── */
.rb-order-cards-list { display: flex; flex-direction: column; gap: 16px; }
.rb-order-card {
	background: #fff;
	border-radius: var(--rb-radius-sm);
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	border: 1px solid var(--rb-border);
	transition: var(--rb-transition);
}
.rb-order-card:hover { transform: translateY(-2px); box-shadow: var(--rb-shadow); }
.rb-order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.rb-order-product-title { font-size: 16px; font-weight: 800; color: var(--rb-text); margin: 0; line-height: 1.3; }
.rb-order-id-date { display: flex; justify-content: space-between; font-size: 13px; color: var(--rb-muted); margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.rb-order-commission-box {
	background: #f8fafc;
	border-radius: var(--rb-radius-sm);
	padding: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 16px;
}
.rb-commission-col { display: flex; flex-direction: column; gap: 4px; }
.rb-commission-col.text-right { text-align: right; }
.rb-commission-col .rb-col-label { font-size: 12px; color: var(--rb-muted); font-weight: 600; }
.rb-commission-col .rb-col-val { font-size: 20px; font-weight: 800; color: var(--rb-text); }
.rb-commission-col .rb-col-val.earned { color: var(--rb-accent); }
.rb-order-card-footer {
	display: flex; justify-content: space-between; align-items: center; padding-top: 16px;
	border-top: 1px solid var(--rb-border); font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.rb-comm-status { color: var(--rb-muted); }
.rb-comm-status strong { color: var(--rb-text); font-weight: 700; margin-left: 4px; }

/* ── FILTERS BAR ── */
.rb-filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.rb-select-filter, .rb-search-input {
	padding: 9px 14px;
	border: 1.5px solid var(--rb-border);
	border-radius: var(--rb-radius-sm);
	font-size: 13px;
	font-family: inherit;
	background: #fff;
	color: var(--rb-text);
	outline: none;
	transition: var(--rb-transition);
}
.rb-select-filter:focus, .rb-search-input:focus { border-color: var(--rb-primary); box-shadow: 0 0 0 3px rgba(var(--rb-primary-rgb),0.1); }
.rb-search-input { min-width: 200px; }

/* ── PAGINATION ── */
.rb-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.rb-pagination a, .rb-pagination span {
	padding: 8px 14px;
	border-radius: var(--rb-radius-sm);
	border: 1.5px solid var(--rb-border);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: var(--rb-text);
	transition: var(--rb-transition);
}
.rb-pagination a:hover { border-color: var(--rb-primary); color: var(--rb-primary); }
.rb-pagination span.current { background: var(--rb-primary); color: #fff; border-color: var(--rb-primary); }

/* ═══════════════════════════════════════════════
   BALANCE DISPLAY
═══════════════════════════════════════════════ */
.rb-balance-display {
	background: linear-gradient(135deg, rgba(var(--rb-primary-rgb),0.06), rgba(var(--rb-accent-rgb),0.06));
	border: 1px solid rgba(var(--rb-primary-rgb),0.15);
	border-radius: var(--rb-radius);
	padding: 22px 28px;
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.rb-balance-display span { font-size: 14px; font-weight: 600; color: var(--rb-muted); display: flex; align-items: center; gap: 8px; }
.rb-balance-display strong { font-size: 32px; font-weight: 800; color: var(--rb-accent); letter-spacing: -0.5px; }

/* ── NOTICE BOX ── */
.rb-notice-box { border-radius: var(--rb-radius-sm); padding: 14px 18px; font-size: 13px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.rb-notice-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.rb-notice-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ═══════════════════════════════════════════════
   MEMBERSHIP / TIMER
═══════════════════════════════════════════════ */
.rb-membership-timer {
	text-align: center;
	border-radius: var(--rb-radius);
	padding: 32px;
	margin-bottom: 24px;
}
.rb-timer-green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 2px solid #86efac; }
.rb-timer-orange { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 2px solid #fcd34d; }
.rb-timer-red    { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 2px solid #fca5a5; }
.rb-timer-label  { font-size: 11px; font-weight: 700; color: var(--rb-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.rb-timer-days   { font-size: 64px; font-weight: 900; line-height: 1; margin: 8px 0 4px; }
.rb-timer-green  .rb-timer-days { color: #16a34a; }
.rb-timer-orange .rb-timer-days { color: #d97706; }
.rb-timer-red    .rb-timer-days { color: #dc2626; }
.rb-timer-unit   { font-size: 16px; font-weight: 600; color: var(--rb-muted); }
.rb-timer-date   { font-size: 13px; color: var(--rb-muted); margin-top: 8px; }

/* ═══════════════════════════════════════════════
   PLANS PAGE
═══════════════════════════════════════════════ */
.rb-plans-page { padding: 40px 20px; max-width: 1100px; margin: auto; }
.rb-renewal-banner {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 1px solid #fcd34d;
	border-radius: var(--rb-radius);
	padding: 16px 20px;
	margin-bottom: 24px;
	font-weight: 600;
	color: #92400e;
	display: flex;
	align-items: center;
	gap: 10px;
}
.rb-plans-header { text-align: center; margin-bottom: 48px; }
.rb-plans-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.rb-plans-header p  { color: var(--rb-muted); font-size: 16px; }
.rb-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.rb-plan-card {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	border: 2px solid var(--rb-border);
	padding: 32px 24px;
	text-align: center;
	transition: var(--rb-transition);
	position: relative;
	overflow: hidden;
}
.rb-plan-card.rb-plan-featured {
	border-color: var(--rb-primary);
	box-shadow: 0 0 0 4px rgba(var(--rb-primary-rgb),0.08);
}
.rb-plan-card:hover { border-color: var(--rb-primary); box-shadow: var(--rb-shadow-md); transform: translateY(-4px); }
.rb-plan-name     { font-size: 20px; font-weight: 800; }
.rb-plan-subtitle { font-size: 13px; color: var(--rb-muted); margin: 4px 0 20px; }
.rb-plan-price    { font-size: 48px; font-weight: 900; color: var(--rb-primary); line-height: 1; }
.rb-plan-price .rb-currency { font-size: 22px; vertical-align: top; line-height: 2; }
.rb-plan-duration { font-size: 13px; color: var(--rb-muted); margin: 8px 0 16px; }
.rb-plan-desc     { font-size: 13px; color: var(--rb-muted); line-height: 1.8; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════
   PAYMENT PAGE
═══════════════════════════════════════════════ */
.rb-payment-page { padding: 40px 20px; max-width: 640px; margin: auto; }
.rb-payment-page h1 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.rb-payment-summary-card {
	background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-dark));
	color: #fff;
	border-radius: var(--rb-radius);
	padding: 24px;
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.rb-payment-plan-name { font-size: 18px; font-weight: 700; }
.rb-payment-amount strong { font-size: 28px; font-weight: 800; }
.rb-payment-section {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	border: 1px solid var(--rb-border);
	padding: 22px 24px;
	margin-bottom: 16px;
}
.rb-payment-section h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.rb-gateway-list { display: flex; flex-direction: column; gap: 10px; }
.rb-gateway-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--rb-border);
	border-radius: var(--rb-radius-sm);
	cursor: pointer;
	transition: var(--rb-transition);
}
.rb-gateway-option:has(input:checked) { border-color: var(--rb-primary); background: rgba(var(--rb-primary-rgb),0.04); }
.rb-gateway-name    { font-weight: 700; flex: 1; }
.rb-gateway-account { color: var(--rb-muted); font-size: 13px; }
.rb-coupon-row { display: flex; gap: 10px; }
.rb-coupon-row input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--rb-border); border-radius: var(--rb-radius-sm); font-family: inherit; font-size: 14px; outline: none; }
.rb-coupon-row input:focus { border-color: var(--rb-primary); }

/* ═══════════════════════════════════════════════
   REFERRAL
═══════════════════════════════════════════════ */
.rb-referral-link-card { background: var(--rb-light); border: 1px solid var(--rb-border); border-radius: var(--rb-radius-sm); padding: 20px; margin-bottom: 20px; }
.rb-referral-link-card label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 8px; }
.rb-referral-link-row { display: flex; gap: 10px; margin-bottom: 12px; }
.rb-referral-link-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--rb-border); border-radius: var(--rb-radius-sm); font-family: monospace; font-size: 13px; background: #fff; min-width: 0; }
.rb-social-share { display: flex; gap: 10px; flex-wrap: wrap; }
.rb-share-btn { padding: 9px 16px; border-radius: var(--rb-radius-sm); font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: 8px; transition: var(--rb-transition); }
.rb-share-btn:hover { transform: translateY(-2px); color: #fff; }
.rb-share-whatsapp { background: #25d366; }
.rb-share-facebook { background: #1877f2; }
.rb-share-telegram { background: #0088cc; }
.rb-referral-rule { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--rb-radius-sm); padding: 14px 16px; font-size: 13px; margin-top: 16px; }

/* ═══════════════════════════════════════════════
   COINS PAGE
═══════════════════════════════════════════════ */
.rb-coins-balance-card {
	text-align: center;
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border: 2px solid #fde68a;
	border-radius: var(--rb-radius);
	padding: 40px 36px;
	margin-bottom: 20px;
}
.rb-coins-icon   { font-size: 48px; margin-bottom: 8px; }
.rb-coins-amount { font-size: 56px; font-weight: 900; color: #92400e; line-height: 1.1; }
.rb-coins-label  { font-weight: 700; color: #b45309; font-size: 15px; margin-top: 4px; }
.rb-coin-rate-note { font-size: 12px; color: #a16207; margin-top: 8px; }
.rb-coins-convert-card { background: var(--rb-light); border: 1px solid var(--rb-border); border-radius: var(--rb-radius-sm); padding: 20px; margin-bottom: 20px; }
.rb-coins-convert-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rb-coins-convert-row input { flex: 1; min-width: 120px; padding: 11px 14px; border: 1.5px solid var(--rb-border); border-radius: var(--rb-radius-sm); font-family: inherit; font-size: 14px; outline: none; }
.rb-coins-convert-row input:focus { border-color: var(--rb-primary); }
.rb-convert-preview { font-weight: 800; color: var(--rb-accent); font-size: 18px; }

/* ═══════════════════════════════════════════════
   PRODUCT PRICING UI
═══════════════════════════════════════════════ */
.rb-pricing-ui {
	background: #fff;
	border-radius: var(--rb-radius);
	padding: 28px;
	box-shadow: var(--rb-shadow-md);
	border: 1px solid var(--rb-border);
	margin: 24px 0;
}
.rb-pricing-label { font-weight: 800; font-size: 15px; color: var(--rb-primary); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.rb-pricing-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.rb-tier-card { display: block; position: relative; cursor: pointer; }
.rb-tier-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rb-tier-content {
	border: 2px solid var(--rb-border);
	border-radius: 14px;
	padding: 18px 12px;
	transition: var(--rb-transition);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fbfcff;
	min-height: 110px;
	justify-content: center;
}
.rb-tier-card:hover .rb-tier-content { border-color: var(--rb-primary-light); transform: translateY(-2px); }
.rb-tier-card input[type="radio"]:checked + .rb-tier-content {
	border-color: var(--rb-primary);
	background: rgba(var(--rb-primary-rgb), 0.04);
	box-shadow: 0 0 0 3px rgba(var(--rb-primary-rgb), 0.12);
}
.rb-tier-title { font-size: 11px; font-weight: 700; color: var(--rb-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.rb-tier-price { font-size: 22px; font-weight: 800; color: var(--rb-text); }
.rb-tier-card input[type="radio"]:checked + .rb-tier-content .rb-tier-price { color: var(--rb-primary); }
.rb-tier-profit { font-size: 12px; color: var(--rb-muted); margin-top: 6px; }
.rb-custom-price-wrap {
	background: var(--rb-light);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-sm);
	padding: 18px;
	margin-bottom: 18px;
}
.rb-price-slider { width: 100%; accent-color: var(--rb-primary); margin-bottom: 12px; height: 6px; }
.rb-price-input-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.rb-price-input-row span { font-weight: 800; font-size: 20px; color: var(--rb-primary); }
.rb-price-number-input { width: 120px; padding: 9px 12px; border: 2px solid var(--rb-border); border-radius: var(--rb-radius-sm); font-size: 18px; font-weight: 800; text-align: center; font-family: inherit; outline: none; }
.rb-price-number-input:focus { border-color: var(--rb-primary); }
.rb-price-range-note { font-size: 11px; color: var(--rb-muted); text-align: center; margin: 0; }
.rb-commission-preview-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--rb-border); }
.rb-commission-info { display: flex; flex-direction: column; gap: 2px; }
.rb-commission-info .rb-label { font-size: 12px; color: var(--rb-muted); font-weight: 600; }
#rb_commission_preview { font-size: 22px; font-weight: 800; color: var(--rb-accent); }
.rb-commission-preview-box .rb-btn { margin-left: auto; }
#rb_price_save_status { font-size: 13px; font-weight: 600; color: var(--rb-accent); }

/* ── WOOCOMMERCE form.cart ── */
.woocommerce div.product form.cart {
	background: #fff !important;
	padding: 20px !important;
	border-radius: 16px !important;
	box-shadow: var(--rb-shadow) !important;
	border: 1px solid var(--rb-border) !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px !important;
	align-items: center !important;
	margin: 0 !important;
}
.woocommerce div.product form.cart .quantity {
	margin: 0 !important;
	background: #f8fafc !important;
	border: 1.5px solid var(--rb-border) !important;
	border-radius: 10px !important;
	height: 48px !important;
	display: flex !important;
	align-items: center !important;
	overflow: hidden;
}
.woocommerce div.product form.cart .quantity input.qty {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 14px !important;
	height: 100% !important;
	width: 70px !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-align: center;
}
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .rb-buy-now-btn {
	flex: 1 !important;
	min-width: 130px !important;
	margin: 0 !important;
	float: none !important;
	height: 48px !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: var(--rb-transition) !important;
}
.woocommerce div.product form.cart .rb-buy-now-btn {
	background: var(--rb-primary) !important;
	color: #fff !important;
}
.woocommerce div.product form.cart button:hover { transform: translateY(-2px) !important; }

/* ── MODALS ── */
.rb-modal-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 9998;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rb-modal {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	max-width: 500px; width: 100%;
	box-shadow: var(--rb-shadow-pop);
	animation: rbFadeUp 0.3s ease;
}
.rb-modal-header { padding: 20px 24px; border-bottom: 1px solid var(--rb-border); display: flex; justify-content: space-between; align-items: center; }
.rb-modal-header h3 { margin: 0; font-size: 18px; font-weight: 800; }
.rb-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--rb-muted); line-height: 1; padding: 0; }
.rb-modal-body { padding: 24px; }
.rb-modal-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rb-border); font-size: 14px; }
.rb-modal-amount { font-size: 28px; font-weight: 800; color: var(--rb-primary); }
.rb-modal-instructions ol { margin: 12px 0; padding-left: 20px; color: var(--rb-muted); font-size: 13px; line-height: 2; }

/* ── ORDER DETAILS MODAL ── */
.rb-modal-order-details { font-size: 14px; }
.rb-mod-header-card { background: var(--rb-bg); padding: 16px; border-radius: var(--rb-radius-sm); margin-bottom: 20px; text-align: center; }
.rb-mod-status { margin-bottom: 10px; }
.rb-mod-header-card h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--rb-text); }
.rb-mod-date { margin: 0; font-size: 12px; color: var(--rb-muted); }
.rb-mod-products, .rb-mod-customer, .rb-mod-financials { margin-bottom: 20px; }
.rb-modal-order-details h5 { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--rb-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--rb-border); padding-bottom: 8px; }
.rb-mod-item-list { list-style: none; padding: 0; margin: 0; }
.rb-mod-item-list li { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.rb-mod-item-qty { color: var(--rb-muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.rb-mod-customer p { margin: 4px 0; font-size: 13px; }
.rb-mod-fin-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--rb-muted); }
.rb-mod-fin-row strong { color: var(--rb-text); }
.rb-mod-fin-comm { border-top: 1px solid var(--rb-border); padding-top: 12px; margin-top: 4px; font-size: 16px; }
.rb-mod-fin-comm strong { color: var(--rb-accent); }
.rb-comm-status-pending strong, .rb-comm-status-processing strong, .rb-comm-status-on-hold strong { color: var(--rb-warning); }
.rb-comm-status-cancelled strong, .rb-comm-status-failed strong, .rb-comm-status-refunded strong { color: var(--rb-danger); }

/* ── PROMO / AFFILIATE ── */
.rb-promo-card { background: var(--rb-light); border: 1px solid var(--rb-border); border-radius: var(--rb-radius-sm); padding: 20px; margin-top: 20px; }
.rb-promo-code-display { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.rb-promo-code { font-size: 24px; font-weight: 800; font-family: monospace; color: var(--rb-primary); letter-spacing: 3px; background: rgba(var(--rb-primary-rgb),0.06); padding: 10px 20px; border-radius: 8px; }

/* ═══════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════ */
.rb-empty-state { text-align: center; padding: 60px 20px; color: var(--rb-muted); }
.rb-empty-state i { font-size: 52px; margin-bottom: 16px; color: var(--rb-border); display: block; }
.rb-empty-state p { font-size: 15px; margin: 0; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {

	/* Show mobile header */
	.rb-dash-header { display: flex; }

	/* Sidebar becomes a fixed overlay drawer */
	.rb-sidebar {
		position: fixed;
		left: -270px;
		top: 0; bottom: 0;
		width: 260px;
		transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
		z-index: 450;
		height: 100%;
	}
	.rb-sidebar.open { left: 0; box-shadow: 4px 0 40px rgba(0,0,0,0.3); }
	.rb-sidebar-overlay.open { display: block; }

	/* Main area fills full width since sidebar is an overlay */
	.rb-dashboard-main { padding: 20px 16px; min-height: 100vh; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

	.rb-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.rb-stat-card { padding: 16px 14px; }
	.rb-stat-value { font-size: 20px; }
	.rb-stat-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 10px; border-radius: 10px; }

	.rb-section { padding: 18px 16px; }
	.rb-section h2 { font-size: 16px; }
	.rb-section h3 { font-size: 14px; }

	.rb-section-header { gap: 10px; }
	.rb-time-filters { gap: 4px; }
	.rb-filter-btn { padding: 6px 12px; font-size: 11px; }

	.rb-balance-display { flex-direction: column; text-align: center; padding: 18px; }
	.rb-balance-display strong { font-size: 28px; }

	.rb-membership-timer { padding: 24px 16px; }
	.rb-timer-days { font-size: 48px; }

	.rb-pricing-tiers { grid-template-columns: 1fr; gap: 10px; }
	.rb-auth-card { padding: 28px 20px; }
	.rb-plans-grid { grid-template-columns: 1fr; }

	.rb-balance-display { flex-direction: column; text-align: center; }
	.rb-commission-preview-box { flex-direction: column; align-items: flex-start; }
	.rb-commission-preview-box .rb-btn { margin-left: 0; width: 100%; }

	.rb-filters-bar { gap: 8px; }
	.rb-search-input { min-width: 0; flex: 1; }

	.rb-woocommerce div.product form.cart .quantity { width: 100% !important; justify-content: center; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
	.rb-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.rb-stat-value { font-size: 18px; }
	.rb-stat-card { padding: 14px 12px; }

	.rb-pricing-tiers { grid-template-columns: 1fr; }
	.rb-referral-link-row { flex-direction: column; }
	.rb-social-share { flex-direction: column; }
	.rb-coupon-row { flex-direction: column; }
	.rb-payment-summary-card { flex-direction: column; text-align: center; }
	.rb-coins-convert-row { flex-direction: column; align-items: stretch; }
	.rb-coins-convert-row input { min-width: unset; }

	.rb-pagination a, .rb-pagination span { padding: 7px 11px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════
   NOTIFICATIONS
═══════════════════════════════════════════════ */
.rb-notification-list { display: flex; flex-direction: column; gap: 1rem; }
.rb-notif-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: #fff;
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius);
	padding: 1rem 1.25rem;
	transition: var(--rb-transition);
}
.rb-notif-card.unread { background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.rb-notif-card:hover { transform: translateY(-2px); box-shadow: var(--rb-shadow-sm); }
.rb-notif-icon {
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f1f5f9;
	flex-shrink: 0;
}
.rb-notif-content { flex: 1; min-width: 0; }
.rb-notif-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.rb-notif-meta strong { color: var(--rb-text); font-size: 1rem; font-weight: 600; }
.rb-notif-time { font-size: 0.8rem; color: var(--rb-muted); white-space: nowrap; margin-left: 1rem; }
.rb-notif-body { color: var(--rb-muted); font-size: 0.95rem; line-height: 1.5; }
.rb-notif-body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.rb-notif-card { flex-direction: column; gap: 0.75rem; }
	.rb-notif-meta { flex-direction: column; align-items: flex-start; }
	.rb-notif-time { margin-left: 0; margin-top: 4px; }
}

/* ═══════════════════════════════════════════════
   ORDER CARDS
═══════════════════════════════════════════════ */
.rb-order-cards-list { display: flex; flex-direction: column; gap: 1rem; }
.rb-order-card {
	background: #fff;
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: var(--rb-transition);
}
.rb-order-card:hover { transform: translateY(-2px); box-shadow: var(--rb-shadow-sm); }
.rb-order-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.rb-order-product-title { font-size: 1.1rem; font-weight: 700; color: var(--rb-text); margin: 0; line-height: 1.3; }
.rb-order-id-date { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--rb-muted); padding-bottom: 0.5rem; border-bottom: 1px solid var(--rb-border); }
.rb-order-commission-box {
	background: #f8fafc;
	border-radius: var(--rb-radius-sm);
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.rb-commission-col { display: flex; flex-direction: column; gap: 0.25rem; }
.rb-commission-col.text-right { text-align: right; align-items: flex-end; }
.rb-col-label { font-size: 0.8rem; color: var(--rb-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.rb-col-val { font-size: 1.1rem; font-weight: 800; color: var(--rb-text); }
.rb-col-val.earned { color: #10b981; }
.rb-col-val.pending { color: #f59e0b; }
.rb-order-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.5rem; }
.rb-comm-status { font-size: 0.9rem; color: var(--rb-muted); }
.rb-comm-status strong { color: var(--rb-text); }
@media (max-width: 480px) {
	.rb-order-commission-box { flex-direction: column; align-items: flex-start; gap: 1rem; }
	.rb-commission-col.text-right { text-align: left; align-items: flex-start; }
	.rb-order-card-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
	.rb-order-card-footer .rb-btn { width: 100%; text-align: center; }
}
