/* Aether Affiliate – Frontend (Porto-compatible, uses CSS variables) */
:root {
	--aether-primary: #4f46e5;
	--aether-primary-hover: #4338ca;
	--aether-success: #10b981;
	--aether-warning: #f59e0b;
	--aether-danger: #ef4444;
	--aether-bg: #f8fafc;
	--aether-card: #ffffff;
	--aether-border: #e2e8f0;
	--aether-text: #1e293b;
	--aether-muted: #64748b;
	--aether-radius: 12px;
	--aether-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.aether-dashboard {
	font-family: inherit;
	color: var(--aether-text);
}

.aether-dash-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.aether-dash-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.aether-status {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.aether-status-approved { background: #d1fae5; color: #065f46; }
.aether-status-pending  { background: #fef3c7; color: #92400e; }
.aether-status-reject   { background: #fee2e2; color: #991b1b; }

.aether-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.aether-stat-card {
	background: var(--aether-card);
	border: 1px solid var(--aether-border);
	border-radius: var(--aether-radius);
	padding: 1.25rem;
	box-shadow: var(--aether-shadow);
}

.aether-stat-label {
	font-size: 0.8rem;
	color: var(--aether-muted);
	margin-bottom: 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.aether-stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--aether-text);
}

.aether-stat-value code {
	background: #f1f5f9;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	font-size: 1.1rem;
}

.aether-link-box {
	background: var(--aether-bg);
	border: 1px solid var(--aether-border);
	border-radius: var(--aether-radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.aether-link-box label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.aether-share-row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.aether-share-input {
	flex: 1;
	min-width: 200px;
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--aether-border);
	border-radius: 8px;
	font-size: 0.9rem;
	background: #fff;
}

.aether-share-copy {
	background: var(--aether-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0.6rem 1.1rem !important;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.aether-share-copy:hover {
	background: var(--aether-primary-hover) !important;
}

.aether-share-block {
	margin: 1.5rem 0;
	padding: 1.25rem;
	background: var(--aether-bg);
	border: 1px solid var(--aether-border);
	border-radius: var(--aether-radius);
}

.aether-share-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.aether-share-hint {
	font-size: 0.85rem;
	color: var(--aether-muted);
	margin: 0.5rem 0 0;
}

.aether-register {
	max-width: 480px;
	padding: 1.5rem;
	background: var(--aether-card);
	border: 1px solid var(--aether-border);
	border-radius: var(--aether-radius);
	box-shadow: var(--aether-shadow);
}

.aether-actions {
	margin-top: 1rem;
}

.aether-payout-toggle {
	display: inline-flex;
	border: 1px solid var(--aether-border);
	border-radius: 9999px;
	overflow: hidden;
	margin: 0.75rem 0 1rem;
	background: #fff;
}

.aether-payout-opt {
	margin: 0 !important;
	cursor: pointer;
}

.aether-payout-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aether-payout-opt span {
	display: block;
	padding: 0.45rem 1.15rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--aether-muted);
}

.aether-payout-opt input:checked + span {
	background: var(--aether-primary);
	color: #fff;
}

.aether-payout-fields label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.aether-payout-fields input[type="email"],
.aether-payout-fields input[type="text"],
.aether-payout-fields input[type="tel"] {
	width: min(100%, 320px);
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--aether-border);
	border-radius: 8px;
	background: #fff;
}

/* Porto theme compatibility – reduce conflicts */
.porto-woocommerce .aether-dashboard,
.theme-porto .aether-dashboard {
	font-size: 15px;
}
