/* Renvue Estates Affiliate Program Frontend Styles */

.reap-referrer-signup-form,
.reap-referral-code-entry {
	max-width: 600px;
	margin: 50px auto;
	padding: 24px;
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Payment details block */
.reap-payment-details-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-top: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reap-payment-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.reap-payment-header h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.reap-payment-helper {
	margin: 4px 0 0;
	color: #475569;
	font-size: 14px;
	line-height: 1.5;
}

.reap-lock-pill {
	align-self: center;
	background: #f8fafc;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.reap-payment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.reap-payment-details-card input[disabled] {
	background: #f8fafc;
	color: #475569;
	cursor: not-allowed;
}

/* Signup cards */
.reap-card-block {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reap-card-block-header h3 {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.reap-card-block-header .description {
	margin: 0;
	color: #475569;
	font-size: 14px;
}

.reap-vehicle-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.reap-vehicle-card {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reap-vehicle-card input {
	margin: 0;
}

.reap-vehicle-card .reap-vehicle-icon {
	font-size: 20px;
	color: #7d1128;
}

.reap-vehicle-card .reap-vehicle-label {
	font-weight: 600;
	color: #0f172a;
}

.reap-vehicle-card:hover {
	border-color: #7d1128;
	box-shadow: 0 4px 10px rgba(125, 17, 40, 0.12);
}

.reap-vehicle-card input:checked + .reap-vehicle-icon,
.reap-vehicle-card input:checked ~ .reap-vehicle-label {
	color: #7d1128;
}

.reap-vehicle-details {
	margin-top: 12px;
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

.reap-legal-ack {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 5px;
}

/* Signature Step Styles */
.reap-signature-container {
	margin-top: 24px;
}

.reap-pdf-preview-wrapper {
	margin-bottom: 24px;
}

.reap-signature-options {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.reap-signature-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 2px solid #E2E8F0;
}

.reap-signature-tab {
	flex: 1;
	padding: 12px 20px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: #475569;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: -2px;
}

.reap-signature-tab:hover {
	color: #7d1128;
	background: #F8FAFC;
}

.reap-signature-tab.active {
	color: #7d1128;
	border-bottom-color: #7d1128;
	font-weight: 600;
}

.reap-signature-tab-content {
	display: none;
}

.reap-signature-tab-content.active {
	display: block;
}

.reap-signature-pad-wrapper {
	text-align: center;
}

#reap-signature-canvas {
	border: 2px solid #E2E8F0;
	border-radius: 8px;
	background: #FFFFFF;
	cursor: crosshair;
	width: 100%;
	max-width: 600px;
	height: 200px;
	touch-action: none;
}

.reap-signature-actions {
	margin-top: 16px;
	text-align: center;
}

.reap-signature-actions .button {
	margin: 0 8px;
}

@media (max-width: 768px) {
	#reap-signature-canvas {
		height: 150px;
	}
	
	.reap-pdf-preview-wrapper iframe {
		height: 400px !important;
	}
}

.reap-legal-ack label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 14px;
	color: #0f172a;
}

.reap-legal-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px;
	margin: 8px 0 12px;
	color: #0f172a;
	font-size: 14px;
	line-height: 1.5;
}

.reap-id-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 12px;
}

.reap-referrer-signup-form h2,
.reap-referral-code-entry h2 {
	font-size: 24px;
	font-weight: 600;
	color: #0F172A;
	margin-bottom: 8px;
	text-align: center;
}

.reap-referrer-signup-form p,
.reap-referral-code-entry p {
	color: #475569;
	margin-bottom: 24px;
	text-align: center;
}

.reap-form-row {
	margin-bottom: 20px;
}

.reap-form-row label {
	display: block;
	font-weight: 500;
	color: #0F172A;
	margin-bottom: 8px;
}

.reap-form-row .required {
	color: #EF4444;
}

.reap-form-row input[type="text"],
.reap-form-row input[type="email"],
.reap-form-row input[type="tel"],
.reap-form-row input[type="number"],
.reap-form-row select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	font-size: 14px;
}

.reap-form-row input:focus,
.reap-form-row select:focus {
	outline: none;
	border-color: #7d1128;
	box-shadow: 0 0 0 3px rgba(125, 17, 40, 0.1);
}

.reap-file-upload-wrapper {
	position: relative;
}

.reap-file-upload-wrapper input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.reap-file-upload-label {
	display: inline-block;
	padding: 12px 24px;
	background: #F8FAFC;
	border: 2px dashed #E2E8F0;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
	width: 100%;
}

.reap-file-upload-label:hover {
	background: #F1F5F9;
	border-color: #7d1128;
}

.reap-upload-icon {
	font-size: 24px;
	display: block;
	margin-bottom: 8px;
}

.reap-image-preview {
	margin-top: 16px;
	text-align: center;
}

.reap-image-preview img {
	max-width: 100%;
	max-height: 300px;
	border-radius: 8px;
	border: 2px solid #E2E8F0;
}

.reap-remove-image {
	margin-top: 12px;
	padding: 8px 16px;
	background: #EF4444;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.reap-remove-image:hover {
	background: #DC2626;
}

.reap-signup-step {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.reap-otp-inputs {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin: 24px 0;
}

.reap-otp-digit {
	width: 50px;
	height: 50px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	border: 2px solid #E2E8F0;
	border-radius: 6px;
	transition: all 0.2s;
}

.reap-otp-digit:focus {
	outline: none;
	border-color: #7d1128;
	box-shadow: 0 0 0 3px rgba(125, 17, 40, 0.1);
}

.reap-link-btn {
	background: none;
	border: none;
	color: #7d1128;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
}

.reap-link-btn:hover {
	color: #5d0d1e;
}

.reap-submit-btn {
	background-color: #7d1128;
	color: #FFFFFF;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.reap-submit-btn:hover {
	background-color: #5d0d1e;
}

.reap-referrer-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

/* Dashboard Header */
.reap-dashboard-header {
	background: #FFFFFF;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.reap-dashboard-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.reap-profile-picture {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 3px solid #E2E8F0;
}

.reap-profile-picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reap-profile-picture-placeholder {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #7D1128;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-size: 28px;
	font-weight: 700;
	flex-shrink: 0;
	border: 3px solid #E2E8F0;
}

.reap-dashboard-user-info h2 {
	font-size: 24px;
	font-weight: 600;
	color: #0F172A;
	margin: 0 0 4px 0;
}

.reap-user-email {
	font-size: 14px;
	color: #475569;
	margin: 0;
}

.reap-dashboard-header-right {
	display: flex;
	align-items: center;
}

.reap-logout-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	color: #475569;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 150ms ease-in-out;
}

.reap-logout-btn:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
	color: #0F172A;
}

.reap-logout-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Tab Navigation */
.reap-dashboard-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #E2E8F0;
	overflow-x: auto;
}

.reap-tab-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	color: #475569;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease-in-out;
	white-space: nowrap;
	margin-bottom: -2px;
}

.reap-tab-btn:hover {
	color: #7D1128;
	background: rgba(125, 17, 40, 0.05);
}

.reap-tab-btn.active {
	color: #7D1128;
	border-bottom-color: #7D1128;
	font-weight: 600;
}

.reap-tab-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Tab Content */
.reap-dashboard-content {
	position: relative;
}

.reap-tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in;
}

.reap-tab-content.active {
	display: block;
}

.reap-dashboard-welcome {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.reap-welcome-text {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #0F172A;
}

/* Tier Badge (legacy) */
.reap-tier-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

.reap-tier-standard {
	background-color: #E2E8F0;
	color: #475569;
}

.reap-tier-senior {
	background-color: #DBEAFE;
	color: #1E40AF;
}

.reap-tier-vip {
	background-color: #FEF3C7;
	color: #92400E;
}

.reap-tier-label {
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.reap-tier-rate {
	font-size: 12px;
	opacity: 0.8;
}

/* Plan Badge */
.reap-plan-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	background-color: #E2E8F0;
	color: #475569;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reap-plan-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Trophy Icon */
.reap-plan-trophy {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Bronze Tier */
.reap-plan-bronze {
	background: linear-gradient(135deg, #CD7F32 0%, #A0522D 50%, #8B4513 100%);
	color: #FFFFFF;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(139, 69, 19, 0.3);
}

.reap-plan-bronze .reap-plan-trophy {
	color: #FFE4B5;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.reap-plan-bronze .reap-plan-rate {
	color: rgba(255, 255, 255, 0.9);
}

/* Silver Tier */
.reap-plan-silver {
	background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 50%, #A8A8A8 100%);
	color: #1F2937;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(128, 128, 128, 0.3);
}

.reap-plan-silver .reap-plan-trophy {
	color: #6B7280;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.reap-plan-silver .reap-plan-rate {
	color: rgba(31, 41, 55, 0.8);
}

/* Gold Tier */
.reap-plan-gold {
	background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF8C00 100%);
	color: #5D4037;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(255, 140, 0, 0.3);
	box-shadow: 0 2px 12px rgba(255, 193, 7, 0.4);
}

.reap-plan-gold .reap-plan-trophy {
	color: #5D4037;
	filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
	animation: goldGlow 2s ease-in-out infinite;
}

.reap-plan-gold .reap-plan-rate {
	color: rgba(93, 64, 55, 0.9);
}

@keyframes goldGlow {
	0%, 100% {
		filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
	}
	50% {
		filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
	}
}

/* Legacy tier names (Standard/Senior/VIP) mapped to new style */
.reap-plan-standard {
	background: linear-gradient(135deg, #CD7F32 0%, #A0522D 50%, #8B4513 100%);
	color: #FFFFFF;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(139, 69, 19, 0.3);
}

.reap-plan-standard .reap-plan-trophy {
	color: #FFE4B5;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.reap-plan-senior {
	background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 50%, #A8A8A8 100%);
	color: #1F2937;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(128, 128, 128, 0.3);
}

.reap-plan-senior .reap-plan-trophy {
	color: #6B7280;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.reap-plan-vip {
	background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF8C00 100%);
	color: #5D4037;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(255, 140, 0, 0.3);
	box-shadow: 0 2px 12px rgba(255, 193, 7, 0.4);
}

.reap-plan-vip .reap-plan-trophy {
	color: #5D4037;
	filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
	animation: goldGlow 2s ease-in-out infinite;
}

.reap-plan-label {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
}

.reap-plan-rate {
	font-size: 12px;
	opacity: 0.9;
}

/* Plan Progress */
.reap-plan-progress {
	background: #FFFFFF;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Plan Progress Header */
.reap-plan-progress-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 24px;
	padding: 16px;
	background: #F8FAFC;
	border-radius: 12px;
	border: 1px solid #E2E8F0;
}

.reap-plan-current,
.reap-plan-next {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.reap-plan-progress-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748B;
}

.reap-plan-progress-arrow {
	color: #94A3B8;
	font-size: 24px;
}

.reap-plan-progress-arrow .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

/* Mini Plan Badge for Progress Header */
.reap-plan-mini-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: #E2E8F0;
	color: #475569;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.reap-plan-mini-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Mini Badge Bronze */
.reap-plan-mini-badge.reap-plan-bronze,
.reap-plan-mini-badge.reap-plan-standard {
	background: linear-gradient(135deg, #CD7F32 0%, #A0522D 50%, #8B4513 100%);
	color: #FFFFFF;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mini Badge Silver */
.reap-plan-mini-badge.reap-plan-silver,
.reap-plan-mini-badge.reap-plan-senior {
	background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 50%, #A8A8A8 100%);
	color: #1F2937;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Mini Badge Gold */
.reap-plan-mini-badge.reap-plan-gold,
.reap-plan-mini-badge.reap-plan-vip {
	background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF8C00 100%);
	color: #5D4037;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
	box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.reap-plan-progress h3 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #0F172A;
}

.reap-progress-item {
	margin-bottom: 24px;
	position: relative;
}

.reap-progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 14px;
	color: #475569;
}

.reap-progress-value {
	font-weight: 600;
	color: #0F172A;
}

.reap-progress-bar-container {
	height: 12px;
	background-color: #E2E8F0;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.reap-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #7D1128 0%, #B91C3F 100%);
	border-radius: 6px;
	transition: width 0.5s ease-in-out;
}

/* Threshold Indicators */
.reap-threshold-indicator {
	position: absolute;
	top: -8px;
	transform: translateX(-50%);
	z-index: 1;
}

.reap-threshold-marker {
	display: block;
	width: 2px;
	height: 28px;
	background-color: #F59E0B;
}

.reap-threshold-auto .reap-threshold-marker {
	background-color: #10B981;
}

.reap-threshold-label {
	display: none;
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	background: #0F172A;
	color: #FFFFFF;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 11px;
	white-space: nowrap;
	text-align: center;
	z-index: 10;
}

.reap-threshold-indicator:hover .reap-threshold-label {
	display: block;
}

/* Manual Upgrade Section */
.reap-manual-upgrade-section {
	background: #F8FAFC;
	border-radius: 8px;
	padding: 16px;
	margin-top: 16px;
	border: 1px solid #E2E8F0;
}

.reap-manual-upgrade-text {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #475569;
}

.reap-request-upgrade-btn {
	display: inline-block;
	padding: 10px 20px;
	background: linear-gradient(135deg, #7D1128 0%, #9d1a3a 100%);
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.reap-request-upgrade-btn:hover {
	background: linear-gradient(135deg, #5d0d1e 0%, #7d1128 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(125, 17, 40, 0.3);
}

.reap-request-upgrade-btn:disabled {
	background: #CBD5E1;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Tier Progress (legacy) */
.reap-tier-progress {
	background: #FFFFFF;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reap-tier-progress h3 {
	margin: 0 0 16px 0;
	font-size: 18px;
	font-weight: 600;
	color: #0F172A;
}

.reap-tier-progress-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.reap-tier-progress-details p {
	margin: 0;
	font-size: 14px;
	color: #475569;
}

.reap-total-referrals-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, #7D1128 0%, #9d1a3a 100%);
	color: #FFFFFF;
	padding: 12px 24px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(125, 17, 40, 0.2);
}

.reap-total-referrals-label {
	font-size: 14px;
	font-weight: 500;
	opacity: 0.9;
}

.reap-total-referrals-value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.reap-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.reap-stat-card {
	background: #F8FAFC;
	padding: 24px;
	border-radius: 8px;
	border: 1px solid #E2E8F0;
	text-align: center;
}

.reap-stat-label {
	font-size: 14px;
	color: #475569;
	margin-bottom: 12px;
}

.reap-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #0F172A;
}

.reap-referral-code {
	color: #7d1128;
	font-size: 36px;
	letter-spacing: 3px;
}

.reap-stat-description {
	font-size: 12px;
	color: #94A3B8;
	margin-top: 8px;
}

.reap-dashboard-section {
	background: #FFFFFF;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 24px;
}

.reap-dashboard-section h3 {
	font-size: 20px;
	font-weight: 600;
	color: #0F172A;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #E2E8F0;
}

/* Table Wrapper for Responsive Scrolling */
.reap-table-wrapper {
	width: 100%;
	overflow-x: scroll;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 24px;
}

.reap-table-wrapper::-webkit-scrollbar {
	height: 8px;
}

.reap-table-wrapper::-webkit-scrollbar-track {
	background: #F8FAFC;
	border-radius: 4px;
}

.reap-table-wrapper::-webkit-scrollbar-thumb {
	background: #CBD5E1;
	border-radius: 4px;
}

.reap-table-wrapper::-webkit-scrollbar-thumb:hover {
	background: #94A3B8;
}

.reap-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px; /* Minimum width to ensure readability */
}

.reap-table thead {
	background: #F8FAFC;
}

.reap-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #0F172A;
	border-bottom: 2px solid #E2E8F0;
}

.reap-table td {
	padding: 12px;
	border-bottom: 1px solid #E2E8F0;
}

.reap-table tbody tr:hover {
	background: #F8FAFC;
}

/* Earnings Table Progress Bars */
.reap-earnings-table td {
	vertical-align: middle;
}

.reap-progress-bar-container {
	width: 100%;
	height: 8px;
	background-color: #E2E8F0;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 4px;
	position: relative;
}

.reap-progress-bar {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease, background-color 0.3s ease;
	min-width: 2px;
}

.reap-progress-text {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	display: inline-block;
	margin-top: 2px;
}

.reap-days-text {
	font-size: 13px;
	color: #475569;
	font-weight: 500;
}

.reap-earnings-table .status-pending {
	background-color: #F59E0B;
	color: #FFFFFF;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

.reap-earnings-table .status-approved {
	background-color: #7D1128;
	color: #FFFFFF;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

.reap-earnings-table .status-paid {
	background-color: #10B981;
	color: #FFFFFF;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

.reap-request-payment-btn {
	background-color: #7D1128;
	color: #FFFFFF;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.reap-request-payment-btn:hover:not(:disabled) {
	background-color: #5d0d1e;
}

.reap-request-payment-btn:disabled,
.reap-request-payment-btn.reap-btn-disabled {
	background-color: #CBD5E1;
	color: #64748B;
	opacity: 0.7;
	cursor: not-allowed;
}

.reap-request-payment-btn:disabled:hover,
.reap-request-payment-btn.reap-btn-disabled:hover {
	background-color: #CBD5E1;
}

.reap-no-action {
	font-size: 13px;
}

/* Login Form Styles */
.reap-login-container {
	max-width: 450px;
	margin: 40px auto;
	padding: 24px;
}

.reap-login-card {
	background: #FFFFFF;
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reap-login-card h2 {
	font-size: 28px;
	font-weight: 700;
	color: #0F172A;
	margin-bottom: 8px;
	text-align: center;
}

.reap-login-description {
	color: #475569;
	margin-bottom: 32px;
	text-align: center;
	font-size: 14px;
}

.reap-login-error {
	background: #FEF2F2;
	border: 1px solid #FEE2E2;
	color: #EF4444;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 24px;
	font-size: 14px;
}

.reap-login-success {
	background: #F0FDF4;
	border: 1px solid #BBF7D0;
	color: #10B981;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 24px;
	font-size: 14px;
}

.reap-form-group {
	margin-bottom: 24px;
}

.reap-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #0F172A;
	margin-bottom: 8px;
}

.reap-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	font-size: 14px;
	color: #0F172A;
	background: #FFFFFF;
	transition: all 150ms ease-in-out;
}

.reap-input:focus {
	outline: none;
	border-color: #7D1128;
	box-shadow: 0 0 0 3px rgba(125, 17, 40, 0.1);
}

.reap-remember-me {
	margin-bottom: 24px;
}

.reap-remember-me label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.reap-remember-me input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.reap-submit-btn {
	width: 100%;
	background-color: #7D1128;
	color: #FFFFFF;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 150ms ease-in-out;
}

.reap-submit-btn:hover {
	background-color: #5d0d1e;
}

.reap-login-links {
	margin-top: 24px;
	text-align: center;
}

.reap-login-links a {
	color: #7D1128;
	text-decoration: none;
	font-size: 14px;
	transition: color 150ms ease-in-out;
}

.reap-login-links a:hover {
	color: #5d0d1e;
	text-decoration: underline;
}

.reap-link-separator {
	color: #94A3B8;
	margin: 0 8px;
}

@media (max-width: 768px) {
	.reap-dashboard-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	
	/* Plan Progress Header Mobile */
	.reap-plan-progress-header {
		flex-direction: column;
		gap: 16px;
		padding: 12px;
	}
	
	.reap-plan-progress-arrow {
		transform: rotate(90deg);
	}
	
	.reap-plan-mini-badge {
		padding: 6px 12px;
		font-size: 12px;
	}
	
	.reap-plan-badge {
		padding: 8px 14px;
		font-size: 12px;
	}
	
	.reap-stat-card {
		padding: 10px;
	}
	
	.reap-stat-value {
		font-size: 24px;
		font-weight: 700;
		color: #0F172A;
	}
	
	.reap-referral-code {
		color: #7d1128;
		font-size: 24px;
		letter-spacing: 3px;
	}
	
	.reap-table-wrapper {
		margin-left: -24px;
		margin-right: -24px;
		padding: 0 24px;
		width: calc(100% + 48px);
	}
	
	.reap-table {
		font-size: 13px;
		min-width: 700px;
	}
	
	.reap-table th,
	.reap-table td {
		padding: 8px 6px;
		white-space: nowrap;
	}
	
	.reap-table th:first-child,
	.reap-table td:first-child {
		padding-left: 12px;
	}
	
	.reap-table th:last-child,
	.reap-table td:last-child {
		padding-right: 12px;
	}
	
	.reap-login-container {
		margin: 20px auto;
		padding: 16px;
	}
	
	.reap-login-card {
		padding: 24px;
	}
}

/* Profile Picture Upload */
.reap-profile-picture-upload {
	margin-bottom: 32px;
	text-align: center;
}

.reap-profile-picture-preview {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 120px;
	margin: 0 auto;
}

.reap-profile-picture-preview img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #E2E8F0;
}

.reap-profile-picture-preview .reap-profile-picture-placeholder {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: #7D1128;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-size: 40px;
	font-weight: 700;
	border: 4px solid #E2E8F0;
}

.reap-profile-picture-upload-label {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 40px;
	background: #7D1128;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	cursor: pointer;
	transition: all 150ms ease-in-out;
	border: 3px solid #FFFFFF;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reap-profile-picture-upload-label:hover {
	background: #5d0d1e;
	transform: scale(1.1);
}

.reap-profile-picture-upload-label .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.reap-profile-picture-upload-label span:not(.dashicons) {
	display: none;
}

/* Status Badges */
.status-pending {
	color: #F59E0B;
	font-weight: 600;
}

.status-confirmed {
	color: #3B82F6;
	font-weight: 600;
}

.status-paid {
	color: #10B981;
	font-weight: 600;
}

.status-approved {
	color: #10B981;
	font-weight: 600;
}

/* Form Description */
.reap-form-row .description {
	font-size: 12px;
	color: #94A3B8;
	margin-top: 4px;
	margin-bottom: 0;
}

.reap-form-row input:disabled {
	background: #F8FAFC;
	color: #94A3B8;
	cursor: not-allowed;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
	.reap-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.reap-dashboard-header-right {
		width: 100%;
	}

	.reap-logout-btn {
		width: 100%;
		justify-content: center;
	}

	.reap-dashboard-tabs {
		gap: 4px;
	}

	.reap-tab-btn {
		padding: 10px 12px;
		font-size: 13px;
	}

	.reap-tab-btn .dashicons {
		display: none;
	}

	.reap-profile-picture,
	.reap-profile-picture-placeholder {
		width: 60px;
		height: 60px;
		font-size: 20px;
	}

	.reap-profile-picture-preview {
		width: 100px;
		height: 100px;
	}

	.reap-profile-picture-preview img,
	.reap-profile-picture-preview .reap-profile-picture-placeholder {
		width: 100px;
		height: 100px;
		font-size: 32px;
	}
}
