/* Hostify Donation Manager - Public Styles */
.hdm-wrap * { box-sizing: border-box; }

.hdm-wrap {
	--hdm-primary: #2563EB;
	--hdm-primary-dark: #1D4ED8;
	--hdm-success: #16A34A;
	--hdm-danger: #DC2626;
	--hdm-bg: #F8FAFC;
	--hdm-border: #E2E8F0;
	--hdm-text: #1E293B;
	--hdm-muted: #64748B;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--hdm-text);
	max-width: 640px;
	margin: 0 auto;
}

.hdm-card {
	background: #fff;
	border: 1px solid var(--hdm-border);
	border-radius: 14px;
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
	padding: 32px;
}

.hdm-card h2 {
	margin-top: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--hdm-text);
}

.hdm-card .hdm-subtitle {
	color: var(--hdm-muted);
	margin-bottom: 24px;
	font-size: 14px;
}

.hdm-field {
	margin-bottom: 18px;
}

.hdm-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--hdm-text);
}

.hdm-field input[type="text"],
.hdm-field input[type="email"],
.hdm-field input[type="tel"],
.hdm-field input[type="number"],
.hdm-field select,
.hdm-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--hdm-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--hdm-bg);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.hdm-field input:focus,
.hdm-field select:focus,
.hdm-field textarea:focus {
	outline: none;
	border-color: var(--hdm-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	background: #fff;
}

.hdm-amount-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 12px;
}

.hdm-amount-chip {
	padding: 10px 8px;
	text-align: center;
	border: 1.5px solid var(--hdm-border);
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	background: var(--hdm-bg);
	transition: all .15s ease;
}

.hdm-amount-chip.active,
.hdm-amount-chip:hover {
	border-color: var(--hdm-primary);
	background: rgba(37, 99, 235, 0.08);
	color: var(--hdm-primary-dark);
}

.hdm-checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--hdm-muted);
}

.hdm-btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	background: var(--hdm-primary);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 20px;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease;
}

.hdm-btn:hover {
	background: var(--hdm-primary-dark);
	color: #fff;
}

.hdm-gateway-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
	font-size: 12px;
	color: var(--hdm-muted);
}

.hdm-gateway-badge .hdm-jc-logo {
	font-weight: 800;
	color: #E4032E;
	letter-spacing: -0.5px;
}

.hdm-progress-wrap {
	margin-bottom: 20px;
}

.hdm-progress-bar {
	width: 100%;
	height: 10px;
	background: var(--hdm-border);
	border-radius: 6px;
	overflow: hidden;
}

.hdm-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--hdm-primary), #60A5FA);
	border-radius: 6px;
}

.hdm-progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--hdm-muted);
	margin-top: 6px;
}

.hdm-notice {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 18px;
}

.hdm-notice-warning {
	background: #FEF3C7;
	color: #92400E;
	border: 1px solid #FDE68A;
}

.hdm-notice-error {
	background: #FEE2E2;
	color: #991B1B;
	border: 1px solid #FCA5A5;
}

/* Result page (JazzCash return) */
.hdm-result-body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	background: #F1F5F9;
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hdm-result-card {
	background: #fff;
	border-radius: 16px;
	max-width: 460px;
	width: 100%;
	padding: 40px 32px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

.hdm-result-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	margin: 0 auto 20px;
	font-size: 28px;
	color: #fff;
}

.hdm-success .hdm-result-icon { background: #16A34A; }
.hdm-failed .hdm-result-icon { background: #DC2626; }

.hdm-result-details {
	text-align: left;
	background: #F8FAFC;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 20px 0;
}

.hdm-result-details div {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
	border-bottom: 1px dashed #E2E8F0;
}

.hdm-result-details div:last-child { border-bottom: none; }
.hdm-result-details span { color: #64748B; }

/* User dashboard */
.hdm-dash-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}

.hdm-stat-box {
	background: #fff;
	border: 1px solid var(--hdm-border);
	border-radius: 12px;
	padding: 18px;
	text-align: center;
}

.hdm-stat-box .hdm-stat-value {
	font-size: 22px;
	font-weight: 800;
	color: var(--hdm-primary-dark);
}

.hdm-stat-box .hdm-stat-label {
	font-size: 12px;
	color: var(--hdm-muted);
	margin-top: 4px;
}

.hdm-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--hdm-border);
	border-radius: 10px;
	overflow: hidden;
}

.hdm-table th,
.hdm-table td {
	padding: 12px 14px;
	text-align: left;
	font-size: 13px;
	border-bottom: 1px solid var(--hdm-border);
}

.hdm-table th {
	background: var(--hdm-bg);
	font-weight: 700;
	color: var(--hdm-muted);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.03em;
}

.hdm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: capitalize;
}

.hdm-badge-success { background: #DCFCE7; color: #166534; }
.hdm-badge-pending { background: #FEF9C3; color: #854D0E; }
.hdm-badge-failed { background: #FEE2E2; color: #991B1B; }

@media (max-width: 600px) {
	.hdm-amount-grid { grid-template-columns: repeat(2, 1fr); }
	.hdm-dash-stats { grid-template-columns: 1fr; }
}
