.mvap-dashboard, .mvap-register-card, .mvap-login-card, .mvap-register-standalone, .mvap-login-standalone {
	--mvap-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a2e;
	box-sizing: border-box;
	width: 100%;
}
.mvap-dashboard *, .mvap-register-card *, .mvap-login-card *, .mvap-register-standalone *, .mvap-login-standalone * {
	box-sizing: border-box; /* Prevents input padding from pushing fields wider than their
	                            card on desktop — the cause of the misaligned signup form. */
}

.mvap-dashboard { max-width: 1000px; margin: 0 auto; }

.mvap-login-standalone { max-width: 440px; margin: 0 auto; }
.mvap-register-standalone { max-width: 520px; margin: 0 auto; }

.mvap-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}
.mvap-dash-header h2 { margin: 0 0 4px; font-size: 24px; }
.mvap-affiliate-code { margin: 0; color: #6b7280; font-size: 14px; }
.mvap-affiliate-code strong { color: var(--mvap-primary, #1a1a2e); letter-spacing: 0.5px; }

.mvap-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.mvap-stat-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--mvap-radius);
	padding: 20px;
	text-align: left;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mvap-stat-card.mvap-stat-highlight {
	background: linear-gradient(135deg, var(--mvap-primary, #1a1a2e), var(--mvap-accent, #e94560));
	border: none;
	color: #fff;
}
.mvap-stat-value { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.mvap-stat-label { display: block; font-size: 13px; opacity: 0.75; margin-top: 4px; }

.mvap-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--mvap-radius);
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mvap-card h3 { margin-top: 0; font-size: 17px; }

.mvap-link-copy { display: flex; gap: 8px; }
.mvap-link-copy input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	background: #f9fafb;
}
.mvap-link-copy-small input { font-size: 12px; padding: 6px 8px; }
.mvap-link-prefix {
	display: flex;
	align-items: center;
	padding: 0 10px;
	background: #f0f0f1;
	border: 1px solid #d1d5db;
	border-right: none;
	border-radius: 8px 0 0 8px;
	color: #6b7280;
	font-size: 13px;
	white-space: nowrap;
}
.mvap-link-copy:has(.mvap-link-prefix) input { border-radius: 0 8px 8px 0; }
.mvap-input-with-prefix { border-radius: 0 8px 8px 0 !important; }
.mvap-hint { color: #6b7280; font-size: 13px; margin: 10px 0 0; }
.mvap-form .description { color: #6b7280; font-size: 12px; margin: 6px 0 0; }

.mvap-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}
.mvap-btn:hover { opacity: 0.9; }
.mvap-btn-primary { background: var(--mvap-primary, #1a1a2e); color: #fff; }
.mvap-btn-small { padding: 6px 12px; font-size: 12px; background: var(--mvap-accent, #e94560); color: #fff; }

.mvap-creatives-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}
.mvap-creative-item {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px;
}
.mvap-creative-item img { width: 100%; height: auto; border-radius: 6px; display: block; }
.mvap-creative-text { background: #f9fafb; border-radius: 6px; padding: 10px; font-size: 13px; max-height: 140px; overflow-y: auto; }
.mvap-creative-title { font-weight: 600; font-size: 13px; margin: 8px 0 6px; }

.mvap-frontend-table { width: 100%; border-collapse: collapse; }
.mvap-frontend-table th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #6b7280;
	padding: 8px 10px;
	border-bottom: 2px solid #f0f0f0;
}
.mvap-frontend-table td { padding: 10px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }

.mvap-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}
.mvap-badge-pending, .mvap-badge-queued { background: #fff4e5; color: #b25e00; }
.mvap-badge-active, .mvap-badge-approved, .mvap-badge-paid { background: #e6f7ed; color: #16794a; }
.mvap-badge-rejected, .mvap-badge-failed, .mvap-badge-suspended, .mvap-badge-reversed { background: #fde8e8; color: #c0262a; }

.mvap-form { position: relative; } /* Contains the honeypot field's absolute positioning so it
                                       can't push the page's scrollable area sideways on mobile. */
.mvap-form .mvap-field { margin-bottom: 16px; }
.mvap-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.mvap-form input[type=text], .mvap-form input[type=email], .mvap-form input[type=url],
.mvap-form input[type=password], .mvap-form select, .mvap-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px; /* 16px avoids the automatic zoom-in iOS Safari triggers on focus
	                     when an input's font-size is under 16px. */
	box-sizing: border-box;
}
.mvap-form input:focus, .mvap-form select:focus, .mvap-form textarea:focus {
	outline: none;
	border-color: var(--mvap-primary, #1a1a2e);
	box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}
.mvap-checkbox-field label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.mvap-checkbox-field input, .mvap-inline-checkbox input { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }
.mvap-inline-checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }

.mvap-terms-box { background: #f9fafb; border-radius: 8px; padding: 14px; font-size: 13px; max-height: 160px; overflow-y: auto; margin-bottom: 16px; }

.mvap-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.mvap-alert-success { background: #e6f7ed; color: #16794a; }
.mvap-alert-error { background: #fde8e8; color: #c0262a; }

.mvap-notice { padding: 16px; background: #f9fafb; border-radius: 10px; }

@media (max-width: 600px) {
	.mvap-dash-header { flex-direction: column; align-items: flex-start; gap: 10px; }
	.mvap-two-col { flex-direction: column; }
	.mvap-card, .mvap-register-card, .mvap-login-card { padding: 18px; }
	.mvap-form .mvap-btn-primary { width: 100%; text-align: center; }
	.mvap-link-copy { flex-direction: column; }
}
