/* =========================================================
   D4U Licenses – My Account styles
   ========================================================= */

.d4ul-my-account {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Service card */
.d4ul-service-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.d4ul-service-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.d4ul-service-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

/* Status badges */
.d4ul-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	white-space: nowrap;
}

.d4ul-badge--green   { background: #d1e7dd; color: #0a3622; }
.d4ul-badge--yellow  { background: #fff3cd; color: #664d03; }
.d4ul-badge--red     { background: #f8d7da; color: #58151c; }
.d4ul-badge--unknown { background: #e9ecef; color: #495057; }

/* Package tags */
.d4ul-service-card__packages {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.d4ul-pkg-tag {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 4px;
}

/* Details grid */
.d4ul-service-card__details {
	display: grid;
	grid-template-columns: minmax(120px, auto) 1fr;
	gap: 6px 16px;
	margin: 0;
	font-size: 14px;
}

.d4ul-service-card__details dt {
	color: #50575e;
	font-weight: 600;
	align-self: center;
}

.d4ul-service-card__details dd {
	margin: 0;
	align-self: center;
}

.d4ul-service-card__details code {
	background: #f6f7f7;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 13px;
}

/* Password field */
.d4ul-password-field {
	display: flex;
	align-items: center;
	gap: 8px;
}

.d4ul-password-mask {
	letter-spacing: 2px;
	font-size: 16px;
	color: #50575e;
}

/* Validity */
.d4ul-validity {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
}

.d4ul-validity--green   { background: #d1e7dd; color: #0a3622; }
.d4ul-validity--yellow  { background: #fff3cd; color: #664d03; }
.d4ul-validity--red     { background: #f8d7da; color: #58151c; }
.d4ul-validity--unknown { background: #e9ecef; color: #495057; }

/* Responsive */
@media (max-width: 480px) {
	.d4ul-service-card__details {
		grid-template-columns: 1fr;
	}
	.d4ul-service-card__details dt {
		margin-top: 8px;
	}
}
