/* StreamPulse Sales Manager - Grid Styles */

.sp-plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	padding: 40px 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #333;
}

.sp-plan-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	padding: 40px 30px;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.sp-plan-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sp-plan-urgency {
	border: 2px solid #ff4d4d;
	animation: sp-card-glow 2s infinite alternate;
}

.sp-featured {
	border: 2px solid #ffd700;
	box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
	transform: scale(1.05);
	z-index: 10;
}

.sp-featured:hover {
	box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
}

.sp-featured .sp-plan-badge {
	background: #ffd700;
	color: #000;
}

@keyframes sp-card-glow {
	from { box-shadow: 0 10px 25px rgba(255, 77, 77, 0.1); }
	to { box-shadow: 0 10px 40px rgba(255, 77, 77, 0.4); }
}

.sp-urgency-label {
	background: #ff4d4d;
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	padding: 2px 8px;
	border-radius: 4px;
	position: absolute;
	top: 15px;
	right: 15px;
	letter-spacing: 1px;
}

.sp-plan-badge {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background: #ff4d4d;
	color: #fff;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: bold;
	box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
}

.sp-plan-header {
	margin-bottom: 30px;
}

.sp-plan-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 15px;
	color: #1a1a1a;
}

.sp-plan-price-container {
	display: flex;
	align-items: baseline;
	justify-content: center;
	font-size: 36px;
	font-weight: 800;
}

.sp-plan-currency {
	font-size: 18px;
	font-weight: 600;
	margin-right: 5px;
	color: #555;
}

.sp-plan-price {
	color: #1a1a1a;
}

.sp-plan-features {
	list-style: none;
	padding: 0;
	margin: 30px 0;
	text-align: left;
	flex-grow: 1;
}

.sp-plan-features li {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
}

.sp-feature-icon {
	color: #2ecc71;
	font-weight: bold;
	margin-right: 12px;
	font-size: 18px;
}

.sp-feature-text {
	font-size: 15px;
	color: #4a4a4a;
}

.sp-plan-footer {
	margin-top: auto;
}

.sp-plan-button {
	display: inline-block;
	background: #007bff;
	color: #fff;
	padding: 15px 30px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
	transition: background 0.3s ease;
	cursor: pointer;
}

.sp-plan-button:hover {
	background: #0056b3;
}

/* Dark Mode Compatibility (Conditional styling) */
@media (prefers-color-scheme: dark) {
	.has-dark-theme .sp-plan-card {
		background: #1e1e1e;
		color: #e0e0e0;
		border-color: rgba(255, 255, 255, 0.1);
	}
	.has-dark-theme .sp-plan-title, 
	.has-dark-theme .sp-plan-price {
		color: #fff;
	}
	.has-dark-theme .sp-plan-currency, 
	.has-dark-theme .sp-feature-text {
		color: #bbb;
	}
	.has-dark-theme .sp-plan-card:hover {
		box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	}
}

/* Force dark styles if a container has .sp-dark-theme class */
.sp-dark-theme .sp-plan-card {
	background: #1e1e1e;
	color: #e0e0e0;
	border-color: rgba(255, 255, 255, 0.1);
}
.sp-dark-theme .sp-plan-title, 
.sp-dark-theme .sp-plan-price {
	color: #fff;
}
.sp-dark-theme .sp-plan-currency, 
.sp-dark-theme .sp-feature-text {
	color: #bbb;
}
