.aipsm-plans {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin: 24px 0;
}

.aipsm-plan,
.aipsm-panel {
	border: 1px solid #dcdcde;
	border-radius: 18px;
	padding: 30px;
	background: #fff;
}

.aipsm-plan {
	position: relative;
	text-align: left;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.aipsm-plan.is-popular {
	border: 2px solid #ff6b00;
	background: #fff7f0;
}

.aipsm-plan-badge {
	background: #ff6b00;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	left: 50%;
	padding: 8px 20px;
	position: absolute;
	top: -16px;
	transform: translateX(-50%);
	text-transform: uppercase;
	white-space: nowrap;
}

.aipsm-plan-head {
	align-items: center;
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
	min-width: 0;
}

.aipsm-plan-icon {
	align-items: center;
	background: #2949a6;
	border-radius: 12px;
	color: #fff;
	display: flex;
	flex: 0 0 60px;
	font-size: 28px;
	font-weight: 800;
	height: 60px;
	justify-content: center;
	line-height: 1;
	width: 60px;
}

.aipsm-plan.is-popular .aipsm-plan-icon {
	background: #f97316;
}

.aipsm-plan h3 {
	color: #13213a;
	font-size: 1.5rem;
	line-height: 1.15;
	margin: 0 0 4px;
}

.aipsm-validity {
	color: #5f6f8d;
	font-size: 1.05rem;
	margin: 0;
}

.aipsm-price {
	color: #13213a;
	font-size: 1rem;
	font-weight: 700;
	margin: 8px 0 4px;
}

.aipsm-price span {
	font-size: 3rem;
	line-height: 1;
}

.aipsm-duration {
	color: #5f6f8d;
	font-weight: 600;
	margin: 0 0 28px;
}

.aipsm-plan ul {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	text-align: left;
}

.aipsm-plan li {
	align-items: center;
	display: flex;
	color: #5b6880;
	font-size: 1.03rem;
	gap: 12px;
	margin: 16px 0;
}

.aipsm-plan li span {
	display: inline-block;
	font-weight: 700;
	width: 18px;
}

.aipsm-plan li.is-included span {
	color: #10b981;
}

.aipsm-plan li.is-excluded {
	color: #71809a;
	text-decoration: line-through;
}

.aipsm-plan li.is-excluded span {
	color: #f87171;
	text-decoration: none;
}

.aipsm-subscribe-button,
.aipsm-danger {
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	padding: 10px 14px;
}

.aipsm-subscribe-button {
	background: #2949a6;
	border-radius: 10px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	min-height: 60px;
	width: 100%;
}

.aipsm-plan:not(.is-popular) .aipsm-subscribe-button {
	background: #2949a6;
	border: 1px solid #2949a6;
	color: #fff;
}

.aipsm-plan.is-popular .aipsm-subscribe-button {
	background: linear-gradient(135deg, #ff7a1a, #f04414);
}

.aipsm-subscribe-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.aipsm-notice {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	color: #9a3412;
	margin: 20px 0;
	padding: 12px 14px;
}

.aipsm-modal-overlay {
	align-items: center;
	background: rgba(15, 23, 42, 0.58);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 99999;
}

.aipsm-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
	max-width: 460px;
	padding: 26px;
	width: min(100%, 460px);
}

.aipsm-modal h3 {
	color: #13213a;
	font-size: 1.45rem;
	margin: 0 0 12px;
}

.aipsm-modal-message {
	color: #334155;
	line-height: 1.6;
}

.aipsm-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}

.aipsm-modal-button {
	background: #fff;
	border: 1px solid #d7dce5;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	padding: 10px 16px;
}

.aipsm-modal-button.is-primary {
	background: #2d75e8;
	border-color: #2d75e8;
	color: #fff;
}

.aipsm-modal-button.is-danger {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
}

.aipsm-danger {
	background: #b91c1c;
	color: #fff;
}

.aipsm-dashboard {
	display: grid;
	gap: 18px;
	margin: 24px 0;
	max-width: 100%;
	overflow-x: hidden;
}

.aipsm-dashboard .aipsm-panel {
	min-width: 0;
	padding: 30px;
}

.aipsm-dashboard .aipsm-panel h3 {
	font-size: clamp(1.45rem, 6vw, 2.2rem);
	line-height: 1.15;
	margin: 0 0 24px;
	overflow-wrap: anywhere;
}

.aipsm-dashboard code {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
}

.aipsm-table {
	border-collapse: collapse;
	table-layout: auto;
	width: 100%;
}

.aipsm-table th,
.aipsm-table td {
	border-bottom: 1px solid #e5e7eb;
	padding: 10px;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.aipsm-plans {
		gap: 22px;
		grid-template-columns: minmax(0, 1fr);
	}

	.aipsm-plan,
	.aipsm-panel {
		padding: 28px 18px 22px;
	}

	.aipsm-dashboard {
		gap: 14px;
		margin: 16px 0;
		width: 100%;
	}

	.aipsm-dashboard .aipsm-panel {
		border-radius: 10px;
		padding: 24px 18px;
		width: 100%;
	}

	.aipsm-dashboard .aipsm-panel p {
		font-size: 1rem;
		line-height: 1.55;
		margin: 14px 0;
	}

	.aipsm-danger {
		border-radius: 999px;
		font-size: 0.95rem;
		line-height: 1.2;
		max-width: 100%;
		white-space: normal;
	}

	.aipsm-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		width: 100%;
	}

	.aipsm-table th,
	.aipsm-table td {
		font-size: 0.9rem;
		padding: 9px 10px;
	}

	.aipsm-table td {
		max-width: 190px;
		white-space: normal;
	}
}

@media (max-width: 420px) {
	.aipsm-dashboard .aipsm-panel {
		padding: 22px 14px;
	}

	.aipsm-dashboard .aipsm-panel h3 {
		font-size: 1.65rem;
	}
}
