@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

.affyaba-frontend {
	--affyaba-ink: #0f172a;
	--affyaba-muted: #64748b;
	--affyaba-border: #e2e8f0;
	--affyaba-card: #ffffff;
	--affyaba-bg: #f8fafc;
	--affyaba-accent: #0ea5e9;
	--affyaba-accent-dark: #0369a1;
	--affyaba-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
	color: var(--affyaba-ink);
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(45, 212, 191, 0.08));
	border-radius: 18px;
	padding: 24px;
	position: relative;
	overflow: hidden;
}
.affyaba-frontend * {
	box-sizing: border-box;
}

.affyaba-frontend::after {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
	pointer-events: none;
}

.affyaba-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
}

.affyaba-hero h2 {
	margin: 0 0 6px;
	font-size: 24px;
}

.affyaba-hero p {
	margin: 0;
	color: var(--affyaba-muted);
}

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

.affyaba-card {
	background: var(--affyaba-card);
	border: 1px solid var(--affyaba-border);
	border-radius: 18px;
	padding: 18px;
	box-shadow: var(--affyaba-shadow);
	animation: affyabaFadeUp 0.5s ease both;
	animation-delay: var(--delay, 0s);
}

.affyaba-card-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}

.affyaba-card-header h3 {
	margin: 0;
	font-size: 18px;
}

.affyaba-card-header span {
	font-size: 12px;
	color: var(--affyaba-muted);
}

.affyaba-link-url {
	font-size: 14px;
	background: var(--affyaba-bg);
	padding: 10px 12px;
	border-radius: 10px;
	word-break: break-all;
	margin: 0 0 12px;
}

.affyaba-link-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.affyaba-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 8px 16px;
	border: 1px solid var(--affyaba-accent);
	background: var(--affyaba-accent);
	color: #fff;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	appearance: none;
}

.affyaba-button img {
	width: 16px;
	height: 16px;
}

.affyaba-button:hover,
.affyaba-button:focus {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(14, 165, 233, 0.3);
}

.affyaba-button--ghost {
	background: transparent;
	color: var(--affyaba-accent-dark);
}

.affyaba-inline-link {
	color: var(--affyaba-accent-dark);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(14, 165, 233, 0.4);
}

.affyaba-inline-link:hover,
.affyaba-inline-link:focus {
	color: var(--affyaba-accent);
	border-bottom-color: rgba(14, 165, 233, 0.8);
}

.affyaba-notice {
	border-radius: 14px;
	padding: 12px 16px;
	margin-bottom: 16px;
	background: var(--affyaba-card);
	border: 1px solid var(--affyaba-border);
	box-shadow: var(--affyaba-shadow);
}

.affyaba-notice--success {
	border-color: rgba(14, 165, 233, 0.4);
	background: rgba(14, 165, 233, 0.08);
}

.affyaba-notice--error {
	border-color: rgba(239, 68, 68, 0.4);
	background: rgba(239, 68, 68, 0.08);
}

.affyaba-form {
	display: grid;
	gap: 12px;
}

.affyaba-form-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.affyaba-form-row label,
.affyaba-form-grid label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	color: var(--affyaba-muted);
}

.affyaba-input {
	border-radius: 10px;
	border: 1px solid var(--affyaba-border);
	padding: 8px 10px;
	font-family: inherit;
}

.affyaba-details-list p {
	margin: 0 0 6px;
}

.affyaba-coupon-wrap {
	margin-top: 18px;
}

.affyaba-coupon-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px dashed rgba(14, 165, 233, 0.5);
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(45, 212, 191, 0.08));
}

.affyaba-coupon-label {
	margin: 0;
	font-size: 12px;
	color: var(--affyaba-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.affyaba-coupon-code {
	margin: 6px 0 0;
	font-size: 20px;
	font-weight: 600;
}

.affyaba-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.affyaba-stat-card {
	background: var(--affyaba-card);
	border: 1px solid var(--affyaba-border);
	border-radius: 14px;
	padding: 12px 14px;
	box-shadow: var(--affyaba-shadow);
	animation: affyabaFadeUp 0.4s ease both;
	animation-delay: var(--delay, 0s);
}

.affyaba-stat-label {
	margin: 0;
	font-size: 12px;
	color: var(--affyaba-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.affyaba-stat-value {
	margin: 6px 0 0;
	font-size: 18px;
	font-weight: 600;
}

.affyaba-muted {
	color: var(--affyaba-muted);
	margin: 0;
}

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

@media (max-width: 720px) {
	.affyaba-hero {
		flex-direction: column;
		align-items: flex-start;
	}
}
