* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--acp-bg-1: #f4f7ff;
	--acp-bg-2: #eefaf6;
	--acp-card: #ffffff;
	--acp-text: #1f2937;
	--acp-muted: #6b7280;
	--acp-primary: #4f46e5;
	--acp-primary-hover: #4338ca;
	--acp-secondary: #10b981;
	--acp-danger: #ef4444;
	--acp-border: #e5e7eb;
	--acp-shadow: 0 18px 45px rgba(79, 70, 229, 0.12);
	--acp-radius: 18px;
}

.acp-container {
	width: 100%;
	max-width: 850px;
	margin: 30px auto;
	padding: 0 15px;
}

.acp-card {
	background: var(--acp-card);
	border-radius: var(--acp-radius);
	box-shadow: var(--acp-shadow);
	overflow: hidden;
}

.acp-card-header {
	padding: 28px 28px 18px;
	background: linear-gradient(135deg, #eef2ff, #ecfeff);
	border-bottom: 1px solid var(--acp-border);
}

.acp-card-header h2 {
	font-size: 30px;
	line-height: 1.2;
	margin-bottom: 8px;
	color: #111827;
}

.acp-card-header p {
	color: var(--acp-muted);
	font-size: 15px;
}

.acp-card-body {
	padding: 28px;
}

.acp-form-group {
	margin-bottom: 18px;
}

.acp-form-group label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 15px;
	color: var(--acp-text);
}

#acp-dob {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--acp-border);
	border-radius: 12px;
	font-size: 16px;
	outline: none;
	transition: 0.25s ease;
	background: #fff;
	color: var(--acp-text);
}

#acp-dob:focus {
	border-color: var(--acp-primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.acp-button-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.acp-btn {
	border: none;
	border-radius: 12px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: 0.25s ease;
}

.acp-btn-primary {
	background: var(--acp-primary);
	color: #fff;
}

.acp-btn-primary:hover {
	background: var(--acp-primary-hover);
	transform: translateY(-1px);
}

.acp-btn-secondary {
	background: #f3f4f6;
	color: #111827;
}

.acp-btn-secondary:hover {
	background: #e5e7eb;
}

.acp-btn-share {
	background: var(--acp-secondary);
	color: #fff;
}

.acp-btn-share:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

.acp-error-message {
	display: none;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fef2f2;
	color: var(--acp-danger);
	border: 1px solid #fecaca;
	font-size: 14px;
	font-weight: 600;
}

.acp-results {
	margin-top: 26px;
	display: none;
}

.acp-result-highlight {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: white;
	border-radius: 18px;
	padding: 22px;
	margin-bottom: 20px;
	box-shadow: 0 14px 35px rgba(79, 70, 229, 0.22);
}

.acp-result-highlight h3 {
	font-size: 18px;
	margin-bottom: 10px;
	font-weight: 700;
}

.acp-age-main {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.acp-age-box {
	flex: 1 1 150px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	padding: 16px;
	text-align: center;
}

.acp-number {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 8px;
}

.acp-label {
	font-size: 14px;
	opacity: 0.95;
}

.acp-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.acp-stat-card {
	background: #f9fafb;
	border: 1px solid var(--acp-border);
	border-radius: 16px;
	padding: 18px;
}

.acp-stat-card h4 {
	font-size: 14px;
	color: var(--acp-muted);
	margin-bottom: 8px;
	font-weight: 700;
}

.acp-stat-card p {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	word-break: break-word;
}

.acp-footer-note {
	margin-top: 18px;
	font-size: 13px;
	color: var(--acp-muted);
	text-align: center;
}

@media (max-width: 640px) {
	.acp-card-header h2 {
		font-size: 24px;
	}

	.acp-card-body,
	.acp-card-header {
		padding: 20px;
	}

	.acp-stats-grid {
		grid-template-columns: 1fr;
	}

	.acp-number {
		font-size: 26px;
	}

	.acp-btn {
		width: 100%;
	}
}