/* MLM for WooCommerce Pro — front-end */

.mlm-dashboard { max-width: 920px; }

.mlm-rank-block {
	display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
	background: linear-gradient(135deg, #0e5e54, #14796b);
	color: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 22px;
}
.mlm-rank-current { display: flex; flex-direction: column; gap: 6px; }
.mlm-rank-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.mlm-rank-badge { font-size: 24px; font-weight: 800; }
.mlm-rank-next { border-left: 1px solid rgba(255,255,255,.3); padding-left: 20px; }
.mlm-rank-reqs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.mlm-rank-reqs li { margin: 2px 0; }

.mlm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.mlm-dashboard .mlm-card { background: rgba(128,128,128,0.10) !important; border: 1px solid rgba(128,128,128,0.28) !important; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: none; }
.mlm-dashboard .mlm-card-label { font-size: 12px; color: inherit !important; opacity: .65; text-transform: uppercase; letter-spacing: .04em; }
.mlm-dashboard .mlm-card-value { font-size: 22px; font-weight: 700; color: inherit !important; opacity: 1; }

.mlm-referral { display: flex; gap: 8px; margin-bottom: 24px; }
.mlm-referral input { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; }

.mlm-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.mlm-dashboard .mlm-table th, .mlm-dashboard .mlm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(128,128,128,.22); font-size: 14px; color: inherit; }
.mlm-dashboard .mlm-table th { background: rgba(128,128,128,.10); font-weight: 600; }

.mlm-dashboard .mlm-withdraw-form { background: rgba(128,128,128,.08); border: 1px solid rgba(128,128,128,.22); border-radius: 10px; padding: 18px; max-width: 480px; }
.mlm-withdraw-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.mlm-withdraw-form input, .mlm-withdraw-form textarea, .mlm-withdraw-form select { width: 100%; padding: 9px 11px; border: 1px solid #ccc; border-radius: 8px; }
.mlm-help { font-size: 13px; color: #666; }

.mlm-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.mlm-notice-success { background: #e7f6ec; border: 1px solid #1a9d52; color: #15692f; }
.mlm-notice-error { background: #fdecec; border: 1px solid #d63638; color: #a52327; }

.mlm-status { padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mlm-status-pending, .mlm-status-credited { background: #fff4e0; color: #9a6700; }
.mlm-status-credited { background: #e7f6ec; color: #15692f; }
.mlm-status-approved { background: #e0eefe; color: #1a5fb4; }
.mlm-status-paid { background: #e7f6ec; color: #15692f; }
.mlm-status-rejected, .mlm-status-reversed { background: #fdecec; color: #a52327; }

.mlm-inline-ref { font-family: monospace; background: #f3f3f3; padding: 2px 6px; border-radius: 4px; }

.mlm-sponsor-block {
	display: flex; align-items: center; gap: 14px;
	background: rgba(128,128,128,0.10);
	border: 1px solid rgba(128,128,128,0.25);
	border-left: 3px solid #14796b;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 24px;
}
.mlm-sponsor-avatar {
	width: 44px; height: 44px; flex: 0 0 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #14796b, #0e5e54);
	color: #fff !important;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; font-weight: 800;
}
.mlm-sponsor-info { display: flex; flex-direction: column; gap: 2px; }
.mlm-sponsor-name { font-size: 16px; font-weight: 700; color: inherit; }
.mlm-sponsor-meta { font-size: 12px; color: inherit; opacity: .65; }

@media (max-width: 600px) {
	.mlm-rank-next { border-left: none; padding-left: 0; }
}
