/* Lash Insiders MLM - Affiliate Dashboard Styling */
/* SCOPED: Only applies to .lash-mlm-dashboard container and its children */

.lash-mlm-dashboard {
	--primary-color: #d4a373;
	--secondary-color: #8b6f47;
	--dark-bg: #f8f7f5;
	--border-color: #e5ddd3;
	--text-primary: #333;
	--text-secondary: #666;
	--success-color: #27ae60;
	--warning-color: #f39c12;
	--danger-color: #e74c3c;
	--shadow: 0 2px 8px rgba(0,0,0,0.08);
	--shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-sizing: border-box;
}

.lash-mlm-dashboard * {
	box-sizing: border-box;
}

.lash-mlm-dashboard h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary); 
	margin-bottom: 30px;
	border-bottom: 3px solid var(--primary-color);
	padding-bottom: 15px;
	margin-top: 0;
}

.lash-mlm-dashboard .mlm-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
	margin: 0;
	padding: 0;
}

.lash-mlm-dashboard .stat-card {
	background: linear-gradient(135deg, #fff 0%, #fafaf8 100%);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 28px;
	box-shadow: var(--shadow);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.lash-mlm-dashboard .stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary-color);
}

.lash-mlm-dashboard .stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.lash-mlm-dashboard .stat-card h3 {
	margin: 0 0 12px 0;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lash-mlm-dashboard .stat-value {
	font-size: 36px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 8px 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lash-mlm-dashboard .power-seller-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: #fff;
	padding: 8px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	margin-top: 10px;
	box-shadow: 0 2px 6px rgba(212, 163, 115, 0.3);
}

.lash-mlm-dashboard .mlm-downline,
.lash-mlm-dashboard .mlm-commissions {
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 28px;
	margin-bottom: 28px;
	box-shadow: var(--shadow);
	margin-top: 0;
}

.lash-mlm-dashboard .mlm-downline h3,
.lash-mlm-dashboard .mlm-commissions h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: var(--text-primary);
	font-size: 18px;
	font-weight: 700;
	border-bottom: 3px solid var(--primary-color);
	padding-bottom: 12px;
}

.lash-mlm-dashboard .downline-table,
.lash-mlm-dashboard .commissions-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	margin-bottom: 0;
}

.lash-mlm-dashboard .downline-table th,
.lash-mlm-dashboard .commissions-table th {
	background: linear-gradient(135deg, #f5f3f0 0%, #ede9e4 100%);
	padding: 14px 16px;
	text-align: left;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--border-color);
}

.lash-mlm-dashboard .downline-table td,
.lash-mlm-dashboard .commissions-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
	font-size: 14px;
}

.lash-mlm-dashboard .downline-table tr:hover,
.lash-mlm-dashboard .commissions-table tr:hover {
	background: #fafaf8;
}

.lash-mlm-dashboard .downline-table tr:last-child td,
.lash-mlm-dashboard .commissions-table tr:last-child td {
	border-bottom: none;
}

.lash-mlm-dashboard .status-pending {
	display: inline-block;
	padding: 4px 10px;
	background: #fff3cd;
	color: #856404;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.lash-mlm-dashboard .status-approved {
	display: inline-block;
	padding: 4px 10px;
	background: #d4edda;
	color: #155724;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.lash-mlm-dashboard .status-paid {
	display: inline-block;
	padding: 4px 10px;
	background: #d1ecf1;
	color: #0c5460;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

/* Registration Form */
.lash-mlm-registration {
	max-width: 700px;
	margin: 40px auto;
	padding: 40px;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: var(--shadow);
	box-sizing: border-box;
	overflow: visible;
	display: block;
	width: 100%;
}

.registration-header {
	text-align: center;
	margin-bottom: 30px;
}

.registration-header h2 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: var(--text-primary);
	border: none;
}

.registration-subtitle {
	color: var(--text-secondary);
	font-size: 16px;
	margin: 0;
}

.lash-mlm-registration h2 {
	color: var(--text-primary);
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
	margin-top: 0;
	border: none;
	padding: 0;
}

.lash-mlm-registration p {
	color: var(--text-secondary);
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
	margin-top: 0;
}

.lash-mlm-registration .mlm-form {
	margin-top: 30px;
	margin-bottom: 20px;
	overflow: visible;
}

.lash-mlm-registration .form-group {
	margin-bottom: 22px;
}

.lash-mlm-registration .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.lash-mlm-registration .form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-primary);
	font-size: 14px;
}

.lash-mlm-registration .form-control {
	display: block;
}

.lash-mlm-registration .form-group input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	transition: all 0.2s;
	font-family: inherit;
}

.lash-mlm-registration .form-group input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.lash-mlm-registration .form-group small {
	display: block;
	color: var(--text-secondary);
	font-size: 12px;
	margin-top: 6px;
}

.lash-mlm-registration .required {
	color: #e74c3c;
	font-weight: bold;
	margin-left: 2px;
}

.lash-mlm-registration p {
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
}

.lash-mlm-registration a {
	color: #d4a373;
	text-decoration: none;
	font-weight: 600;
}

.lash-mlm-registration a:hover {
	text-decoration: underline;
}

.error-message {
	display: none;
	color: #e74c3c;
	font-size: 12px;
	margin-top: 6px;
	font-weight: 500;
}

.lash-mlm-registration .form-control.has-error {
	border-color: #e74c3c !important;
	background-color: #fff5f5;
}

.lash-mlm-registration .form-help {
	display: block;
	color: var(--text-secondary);
	font-size: 12px;
	margin-top: 6px;
}

.terms-group {
	margin: 30px 0 25px 0;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	border-left: 4px solid #d4a373;
}

.checkbox-wrapper {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.checkbox-wrapper input[type="checkbox"] {
	margin-top: 4px;
	cursor: pointer;
	width: 18px;
	height: 18px;
}

.checkbox-wrapper label {
	margin-bottom: 0;
	cursor: pointer;
	font-weight: 400;
	font-size: 14px;
}

.lash-mlm-registration .btn-register,
.lash-mlm-registration .btn-submit {
	width: 100% !important;
	padding: 14px 20px !important;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3) !important;
	box-sizing: border-box !important;
	margin-top: 30px !important;
	margin-bottom: 0 !important;
	display: block !important;
	clear: both !important;
	overflow: visible !important;
	visibility: visible !important;
	height: auto !important;
	min-height: 45px !important;
}

.lash-mlm-registration .btn-register:hover,
.lash-mlm-registration .btn-submit:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}

.lash-mlm-registration .btn-register:active,
.lash-mlm-registration .btn-submit:active {
	transform: translateY(-1px);
}

.lash-mlm-registration .btn-register:disabled,
.lash-mlm-registration .btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.login-link {
	text-align: center;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e5ddd3;
}

.login-link p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 14px;
}

#registration-message {
	padding: 15px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	border-left: 4px solid var(--border-color);
	margin-top: 20px;
}

#registration-message.success {
	background: #d4edda;
	color: #155724;
	border-left-color: var(--success-color);
}

#registration-message.error {
	background: #f8d7da;
	color: #721c24;
	border-left-color: var(--danger-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.lash-mlm-dashboard {
		padding: 20px 15px;
	}

	.lash-mlm-dashboard .mlm-stats {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 16px;
	}

	.lash-mlm-dashboard .stat-card {
		padding: 20px;
	}

	.lash-mlm-dashboard .stat-value {
		font-size: 28px;
	}

	.lash-mlm-dashboard .downline-table,
	.lash-mlm-dashboard .commissions-table {
		font-size: 13px;
	}

	.lash-mlm-dashboard .downline-table th,
	.lash-mlm-dashboard .commissions-table th {
		padding: 10px 12px;
	}

	.lash-mlm-dashboard .downline-table td,
	.lash-mlm-dashboard .commissions-table td {
		padding: 10px 12px;
	}

	.lash-mlm-dashboard .mlm-downline,
	.lash-mlm-dashboard .mlm-commissions {
		padding: 20px;
	}

	.lash-mlm-registration {
		padding: 25px;
		margin: 20px 10px;
	}

	.lash-mlm-registration .form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.lash-mlm-registration .form-group input {
		padding: 10px 12px;
		font-size: 16px;
	}

	.lash-mlm-registration .btn-register,
	.lash-mlm-registration .btn-submit {
		padding: 12px;
		font-size: 16px;
	}

	.registration-header h2 {
		font-size: 24px;
	}

	.registration-subtitle {
		font-size: 14px;
	}
}
