/* Pending plan change notice */
.aab-pending-change-warning {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 24px 0;
	color: #7f1d1d;
	text-align: center;
}

.aab-pending-change-warning-title {
	display: block;
	margin-bottom: 8px;
	font-size: 1.05rem;
}

.aab-pending-change-warning-text {
	font-weight: 500;
}

.aab-plan-button-disabled {
	opacity: 0.55;
	cursor: not-allowed !important;
}

/* Modal (plans page; self-contained) */
.aab-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.45);
}

.aab-modal-dialog {
	max-width: 440px;
	width: 100%;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
	padding: 24px 28px;
}

.aab-modal-body {
	margin: 0 0 20px 0;
	line-height: 1.5;
	color: #334155;
}

.aab-modal-actions {
	display: flex;
	justify-content: flex-end;
}

.aab-modal-close {
	cursor: pointer;
	padding: 8px 18px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	font-weight: 600;
}

.aab-modal-close:hover {
	background: #e2e8f0;
}

/* Plans Wrapper */
.aab-plans-wrapper {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 3rem 1rem;
	background: linear-gradient(to bottom, #e8f4fd 0%, transparent 20%, transparent 80%, #e8f4fd 100%);
	position: relative;
}

.aab-plans-wrapper::before,
.aab-plans-wrapper::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 100px;
	background-image: 
		radial-gradient(circle at 2px 2px, rgba(0,0,0,0.08) 1px, transparent 0);
	background-size: 30px 30px;
	pointer-events: none;
}

.aab-plans-wrapper::before {
	top: 0;
}

.aab-plans-wrapper::after {
	bottom: 0;
}

/* Toggle Switch */
.aab-plans-toggle-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 3rem;
}

.aab-plans-toggle {
	display: inline-flex;
	background: #e8e8e8;
	border-radius: 10px;
	position: relative;
	gap: 0;
}

.aab-toggle-option {
	position: relative;
	padding: 0.75rem 2rem;
	padding-top: 1.1rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	color: #999;
	transition: all 0.3s ease;
	outline: none;
	min-width: 120px;
	text-align: center;
}
.aab-toggle-option:first-child {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}
.aab-toggle-option:last-child {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

.aab-toggle-option.active {
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.aab-toggle-option:hover:not(.active) {
	color: #333;
}

.aab-discount-badge {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: #2e72d2;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba(46, 114, 210, 0.35);
	pointer-events: none;
}

/* Plans Container */
.aab-plans-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

@media (min-width: 1200px) {
	.aab-plans-container {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Plan Card */
.aab-plan-card {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 2rem;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}

.aab-plan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Plan Header */
.aab-plan-header {
	margin-bottom: 1.5rem;
}

.aab-plan-name {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0 0 0.5rem 0;
	color: #333;
	line-height: 1.2;
}

.aab-plan-description {
	color: #666;
	font-size: 0.95rem;
	margin: 0 0 1rem 0;
	line-height: 1.5;
}

/* Price Section */
.aab-plan-price-wrapper {
	margin: 1.5rem 0;
}

.aab-plan-price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.aab-price-amount {
	font-size: 3rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}

.aab-plan-period {
	font-size: 1rem;
	color: #666;
	font-weight: normal;
}

/* Benefits Section */
.aab-plan-features-heading {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.75rem 0;
	line-height: 1.4;
}

.aab-plan-benefits-wrapper {
	margin: 0;
	margin-top: 1.25rem;
	flex-grow: 1;
}

.aab-plan-benefits {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aab-plan-benefits li {
	padding: 0.75rem 0;
	padding-left: 1.75rem;
	position: relative;
	color: #333;
	font-size: 0.95rem;
	line-height: 1.5;
}

.aab-plan-benefits li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #1a1a1a;
	font-weight: bold;
	font-size: 1rem;
	top: 0.75rem;
}

/* CTA sits above feature list (reference layout) */
.aab-plan-cta {
	margin-top: 1.5rem;
	padding-top: 0;
}

.aab-plan-button {
	display: inline-block;
	padding: 0.875rem 1.5rem;
	background: transparent;
	color: #2e72d2;
	text-decoration: none;
	border-radius: 8px;
	text-align: center;
	width: 100%;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
	font-weight: 600;
	font-size: 1rem;
	border: 2px solid #2e72d2;
	box-sizing: border-box;
}

.aab-plan-button:hover {
	background: #2e72d2;
	border-color: #2e72d2;
	color: #fff;
	transform: translateY(-1px);
}

.aab-plan-button.free {
	background: #5833ff;
	border-color: #5833ff;
	color: #fff;
}

.aab-plan-button.free:hover {
	background: #4a29d9;
	border-color: #4a29d9;
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.aab-plans-container {
		grid-template-columns: 1fr;
	}
	
	.aab-plans-toggle {
		width: 100%;
		max-width: 300px;
	}
	
	.aab-toggle-option {
		flex: 1;
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
	}
}
