/*
Plugin Name: Postomatic
Description: CSS stylesheet for content credit management
Author: AImpact
Version: 1.2.0
*/

/* Reset and base styles */
html {
	scroll-padding-top: 0px !important;
}


.mb-1 {
	margin-bottom: 10px;
}

.mb-2 {
	margin-bottom: 20px;
}

.mt-1 {
	margin-top: 10px;
}

.hide {
	display: none !important;
}

:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--gray-50: #f8fafc;
	--gray-100: #f1f5f9;
	--gray-200: #e2e8f0;
	--gray-300: #cbd5e1;
	--gray-600: #475569;
	--gray-700: #334155;
	--gray-800: #1e293b;
	--gray-900: #0f172a;
	--success: #059669;
}


/** loading***/
.loading-active {
	position: fixed;
	top: 32px;
	left: 160px;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99990;
}

@media screen and (max-width: 960px) {
	.loading-active {
		left: 36px; /* WordPress collapses sidebar on smaller screens */
	}
}

@media screen and (max-width: 782px) {
	.loading-active {
		top: 46px; /* WordPress admin bar is taller on mobile */
		left: 0; /* No sidebar on mobile */
	}
}

body:not(.admin-bar) .loading-active {
	top: 0;
}

.loading-content {
	text-align: center;
	transform: translateY(-50%);
	margin-top: -60px;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 12px;
}

/** loading**/
.loading-text {
	color: #1e293b;
	font-size: 1.2em;
	font-weight: 600;
	margin-top: -8px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}


/* Add these classes for elements while loading */
.skeleton-text {
	background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	border-radius: 4px;
	min-height: 24px;
	min-width: 100px;
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.wrap {
	position: relative;
	min-height: 200px;
	max-width: 1200px !important;
	margin: 0 auto;
	padding: 2rem;
	font-family: system-ui, -apple-system, sans-serif;
	background: #f0f0f1;
}

.header {
	text-align: center;
	margin-bottom: 3rem;
}

.header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 0.5rem;
}

.header p {
	font-size: 1.125rem;
	color: var(--gray-600);
}

.credits-status {
	margin-bottom: 4rem;
}

.status-card {
	background: var(--gray-50);
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 800px;
	margin: 0 auto;
}

.status-info h2 {
	font-size: 1.25rem;
	color: var(--gray-600);
	margin-bottom: 0.5rem;
}

.credit-count {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary);
}

.cta-button {
	background: var(--primary);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.2s;
}

.cta-button:hover {
	background: var(--primary-dark);
}

.pricing-section {
	margin-bottom: 4rem;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.price-card {
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: 1rem;
	padding: 2rem;
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.price-card.featured {
	border-color: var(--primary);
	background: linear-gradient(to bottom, white, var(--gray-50));
}

.featured-tag {
	position: absolute;
	top: -12px;
	right: 1rem;
	background: var(--primary);
	color: white;
	padding: 0.25rem 1rem;
	border-radius: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.card-header {
	text-align: center;
	margin-bottom: 2rem;
}

.card-header h3 {
	font-size: 1.5rem;
	color: var(--gray-900);
	margin-bottom: 1rem;
}

.price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 0.5rem;
}

.credits {
	font-size: 1.125rem;
	color: var(--gray-600);
	margin-bottom: 0.5rem;
}

.savings {
	display: inline-block;
	background: #ecfdf5;
	color: var(--success);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem 0;
}

.price-card ul li {
	padding: 0.75rem 0;
	color: var(--gray-600);
	display: flex;
	align-items: center;
}

.price-card ul li::before {
	content: "✓";
	color: var(--success);
	margin-right: 0.75rem;
	font-weight: bold;
}

.purchase-button {
	display: block;
	background: var(--gray-800);
	color: white;
	text-align: center;
	padding: 1rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.2s;
}

.featured .purchase-button {
	background: var(--primary);
}

.purchase-button:hover {
	color: white;
	background: var(--primary-dark);
}

.features-section {
	margin-bottom: 4rem;
}

.features-section h2 {
	text-align: center;
	font-size: 2rem;
	color: var(--gray-900);
	margin-bottom: 2rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.feature-card {
	background: var(--gray-50);
	padding: 2rem;
	border-radius: 1rem;
	text-align: center;
}

.feature-card h4 {
	font-size: 1.25rem;
	color: var(--gray-900);
	margin-bottom: 0.5rem;
}

.feature-card p {
	color: var(--gray-600);
	margin-bottom: 1rem;
}

.feature-cost {
	display: inline-block;
	background: white;
	color: var(--primary);
	padding: 0.5rem 1rem;
	border-radius: 1rem;
	font-weight: 600;
}

.trust-section {
	border-top: 1px solid var(--gray-200);
	padding-top: 2rem;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	text-align: center;
}

.trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.trust-icon {
	color: var(--primary);
	width: 2rem;
	height: 2rem;
	font-size: 1.3rem;
}

.trust-item span {
	color: var(--gray-600);
	font-weight: 500;
}

@media (max-width: 768px) {
	.status-content {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.pricing-grid {
		grid-template-columns: 1fr;
	}
}

.user-type-selector {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.type-button {
	padding: 0.5rem 1.5rem;
	border: 1px solid var(--primary);
	border-radius: 2rem;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
}

.type-button.active {
	background: var(--primary);
	color: white;
}

.user-message {
	background: var(--gray-50);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 800px;
	margin: 0 auto 2rem;
}

.message-icon {
	font-size: 1.5rem;
}

.bonus-credits {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--primary);
	font-weight: 600;
}

.bonus-icon {
	font-size: 1.25rem;
}

.bonus-info {
	background: var(--gray-50);
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 0.5rem;
}

.bonus-label {
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 0.25rem;
}

.bonus-detail {
	color: var(--gray-600);
}

.price-card {
	transform: translateY(0);
	transition: transform 0.3s ease;
}

.price-card:hover {
	transform: translateY(-8px);
}

/* Enhanced existing styles */
.featured-tag {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.purchase-button {
	transform: translateY(0);
	transition: transform 0.2s ease;
}

.purchase-button:hover {
	transform: translateY(-2px);
}

.status-content {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
	max-width: 800px;
	margin: 0 auto;
}

.status-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.plan-status, .credit-status {
	padding: 1rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 0.5rem;
}

.current-plan {
	margin-top: 0.5rem;
}

.plan-name {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 0.25rem;
}

.plan-expiry {
	font-size: 0.875rem;
	color: var(--gray-600);
}

@media (max-width: 768px) {
	.status-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.status-info {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.plan-status, .credit-status {
		padding: 0.75rem;
	}
}

/* Add animation for plan status */
.current-plan {
	opacity: 0;
	transform: translateY(10px);
	animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.skeleton-text {
	background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	border-radius: 4px;
	display: inline-block;
	min-height: 1em;
	min-width: 100px;
}

#quick-credit-title.skeleton-text,
#plus-credit-title.skeleton-text,
#max-credit-title.skeleton-text {
	width: 150px;
	height: 32px;
}

#quick-credit-price.skeleton-text,
#plus-credit-price.skeleton-text,
#max-credit-price.skeleton-text {
	width: 100px;
	height: 48px;
}

#quick-credit-quantity.skeleton-text,
#plus-credit-quantity.skeleton-text,
#max-credit-quantity.skeleton-text {
	width: 120px;
	height: 24px;
}

.credit-count.skeleton-text {
	width: 80px;
	height: 48px;
}

/* Enhance the loading animation */
@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}


.nested-data-section {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--gray-200);
}

.nested-data-section h1 {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--primary);
	display: inline-block;
}

.nested-data-section .section-description {
	color: var(--gray-600);
	font-size: 1.125rem;
	margin-bottom: 2rem;
	max-width: 800px;
	line-height: 1.6;
}

/* Table Container Styles */
#item_credits {
	margin: 2rem 0;
	overflow-x: auto;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--gray-200);
	width: 710px;
}

#item_credits table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: white;
	font-family: system-ui, -apple-system, sans-serif;
}

/* Header Styles */
#item_credits thead {
	background-color: var(--gray-50);
}

#item_credits th {
	padding: 1.25rem 1.5rem;
	text-align: left;
	font-weight: 600;
	color: var(--gray-800);
	white-space: nowrap;
	position: sticky;
	top: 0;
	background: var(--gray-50);
	z-index: 10;
	font-size: 1rem;
	letter-spacing: 0.025em;
	border-bottom: 2px solid var(--gray-200);
}

/* Row Styles */
#item_credits tbody tr {
	border-bottom: 1px solid var(--gray-200);
	transition: background-color 0.2s;
}

#item_credits tbody tr:hover {
	background-color: var(--gray-50);
}

#item_credits td {
	color: var(--gray-700);
	vertical-align: middle;
	font-size: 0.7rem;
	line-height: 1.5;
}

/* Field Name Column */
#item_credits td:first-child {
	font-weight: 500;
	color: var(--gray-800);
}

/* Nested row styling with improved visual hierarchy */
#item_credits td[style*="padding-left"] {
	position: relative;
}

#item_credits td[style*="padding-left"]::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 2px;
	background-color: var(--gray-300);
}

/* Plan ID Column */
#item_credits td:nth-child(2) {
	font-family: 'SF Mono', 'Monaco', monospace;
	font-size: 0.9375rem;
	color: var(--gray-600);
}

/* Credit Amount Column */
#item_credits td:nth-child(3) {
	font-family: 'SF Mono', 'Monaco', monospace;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--primary);
}

/* Field Value Column */
#item_credits td:nth-child(4) {
	color: var(--gray-800);
}

/* Zebra striping with subtle contrast */
#item_credits tbody tr:nth-child(even) {
	background-color: var(--gray-50);
}

#item_credits tbody tr:nth-child(even):hover {
	background-color: var(--gray-100);
}

/* Responsive Design */
@media (max-width: 1024px) {
	#item_credits th,
	#item_credits td {
		padding: 1rem 1.25rem;
	}

	.nested-data-section h1 {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.nested-data-section {
		margin-top: 3rem;
		padding-top: 1.5rem;
	}

	#item_credits {
		margin: 1rem -1rem;
		border-radius: 0;
		box-shadow: none;
	}

	#item_credits th,
	#item_credits td {
		padding: 0.875rem 1rem;
		font-size: 0.875rem;
	}

	.nested-data-section .section-description {
		font-size: 1rem;
	}
}

/* Empty state with better styling */
#item_credits:empty::before {
	content: "No data available";
	display: block;
	padding: 3rem 2rem;
	text-align: center;
	color: var(--gray-600);
	background: var(--gray-50);
	font-size: 1.125rem;
	border-radius: 8px;
}


/* Main container styling */
.wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	margin: 0 auto;
	max-width: 1200px !important;
	color: #1e293b;
}

/* Header section */
.header {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
	border-radius: 8px;
	padding: 2.5rem 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: white;
}

.header h1 {
	font-size: 2.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: white;
}

.header p {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0;
}

/* Header section */
.header {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
	border-radius: 8px;
	padding: 2.5rem 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: white;
}

.header h1 {
	font-size: 2.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #0f172a;
}

.header p {
	font-size: 1.125rem;
	color: #64748b;
	margin-bottom: 1.5rem;
}

/* Credits status card */
.credits-status {
	margin-bottom: 2rem;
}

.status-card {
	display: flex;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-content {
	padding: 1.5rem;
	width: 100%;
}

.status-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.plan-status h2, .credit-status h2 {
	font-size: 1rem;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 0.5rem;
}

.current-plan {
	font-size: 1.5rem;
	font-weight: 600;
	color: #0f172a;
}

.credit-count {
	font-size: 2.5rem;
	font-weight: 700;
	color: #3b82f6;
}

/* Pricing cards */
.pricing-section {
	margin-bottom: 3rem;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.price-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}

.price-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.price-card__wrapper {
	padding: 2rem;
	position: relative;
}

/* Ribbon styling */
.ribbon {
	position: absolute;
	top: 15px;
	right: -35px;
	transform: rotate(45deg);
	background: #e2e8f0;
	color: #475569;
	padding: 5px 40px;
	font-size: 0.75rem;
	font-weight: 600;
	z-index: 1;
}

.premium-ribbon {
	background: #3b82f6;
	color: white;
}

.ultimate-ribbon {
	background: #8b5cf6;
	color: white;
}

/* Featured card styling */
.featured {
	border: 2px solid #3b82f6;
}

.featured-banner {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
	color: white;
	text-align: center;
	padding: 0.5rem;
	font-weight: 600;
}

/* Card header */
.card-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.price-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.price-badge.premium {
	background: #dbeafe;
	color: #2563eb;
}

.price-badge.ultimate {
	background: #ede9fe;
	color: #7c3aed;
}

.title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #0f172a;
}

.price {
	font-size: 2.5rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.5rem;
}

.credits {
	font-size: 1.125rem;
	color: #64748b;
	margin-bottom: 1rem;
}

/* Bonus badge */
.bonus-credits {
	background: #f1f5f9;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.premium-bonus {
	background: #dbeafe;
}

.ultimate-bonus {
	background: #ede9fe;
}

.bonus-icon {
	margin-right: 0.5rem;
	font-size: 1.25rem;
}

.bonus-amount {
	font-weight: 600;
	color: #0f172a;
}

.bonus-number {
	font-size: 1.25rem;
	color: #3b82f6;
}

.premium .bonus-number {
	color: #2563eb;
}

.ultimate .bonus-number {
	color: #7c3aed;
}

/* Feature list */
.feature-list {
	list-style: none;
	padding: 0;
	margin-bottom: 1.5rem;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
	font-size: 1rem;
}

.feature-icon {
	flex-shrink: 0;
	margin-right: 0.75rem;
	color: #22c55e;
	font-weight: 700;
}

.feature-text {
	color: #334155;
}

.feature-note {
	display: block;
	font-size: 0.875rem;
	color: #64748b;
	margin-top: 0.25rem;
}

/* Bonus information */
.bonus-info {
	background: #f8fafc;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
}

.bonus-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #0f172a;
}

.bonus-detail {
	color: #475569;
}

/* Purchase button */
.purchase-button {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
	color: white;
	border-radius: 6px;
	padding: 0.875rem 1.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.purchase-button:hover {
	background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 50%, #4f46e5 100%);
}

.premium-gradient {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
}

.premium-gradient:hover {
	background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 50%, #4f46e5 100%);
}

.ultimate-gradient {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
}

.ultimate-gradient:hover {
	background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 50%, #4f46e5 100%);
}

.button-text {
	margin-right: 0.5rem;
}

/* Trust section */
.trust-section {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.trust-item {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-icon {
	flex-shrink: 0;
	margin-right: 1rem;
}

.trust-content h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: #0f172a;
}

.trust-content p {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
}

/* Credit features table */
.credit-features-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.credit-features-table th {
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	text-align: left;
	padding: 1rem;
	font-size: 0.875rem;
}

.credit-features-table td {
	padding: 1rem;
	border-bottom: 1px solid #e2e8f0;
	color: #334155;
	font-size: 0.875rem;
}

.credit-features-table tr:last-child td {
	border-bottom: none;
}

.credit-features-table tr.even {
	background: #f8fafc;
}

.nested-table {
	width: 100%;
	border-collapse: collapse;
}

.nested-table th {
	background: #f8fafc;
	font-size: 0.75rem;
	padding: 0.75rem;
}

.nested-table td {
	font-size: 0.75rem;
	padding: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.nested-table tr:last-child td {
	border-bottom: none;
}

/* Loading state */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: opacity 0.3s ease;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.hide {
	opacity: 0;
	pointer-events: none;
}

.skeleton-text {
	height: 1em;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
	border-radius: 4px;
	display: inline-block;
	min-width: 100px;
}

@keyframes loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Notification styling */
.notice {
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	position: relative;
}

.notice-success {
	background-color: #f0fdf4;
	border-left: 4px solid #22c55e;
	color: #166534;
}

.notice-info {
	background-color: #eff6ff;
	border-left: 4px solid #3b82f6;
	color: #1e40af;
}

.notice-error {
	background-color: #fef2f2;
	border-left: 4px solid #ef4444;
	color: #b91c1c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.status-info {
		flex-direction: column;
		align-items: flex-start;
	}

	.credit-status {
		margin-top: 1.5rem;
	}

	.pricing-grid {
		grid-template-columns: 1fr;
	}
}

@keyframes pulse {
	0% {
		opacity: 0.15;
	}
	50% {
		opacity: 0.3;
	}
	100% {
		opacity: 0.15;
	}
}

@keyframes shake {
	0%, 100% {
		transform: rotate(0);
	}
	25% {
		transform: rotate(-10deg);
	}
	75% {
		transform: rotate(10deg);
	}
}