/**
 * SWAPTIQ Public Styles
 *
 * @package    Swaptiq
 * @subpackage Swaptiq/public/css
 * @since      1.0.0
 */

/* === Colors === */
:root {
	--swaptiq-primary: #0082d4;
	--swaptiq-secondary: #0099d4;
	--swaptiq-accent: #c1dae1;
	--swaptiq-success: #4CAF50;
	--swaptiq-danger: #f44336;
	--swaptiq-warning: #ff9800;
	--swaptiq-text: #333;
	--swaptiq-text-light: #666;
	--swaptiq-border: #ddd;
	--swaptiq-bg-light: #f9f9f9;
}

/* === Dashboard === */
.swaptiq-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.swaptiq-dashboard-title {
	color: var(--swaptiq-primary);
	margin-bottom: 30px;
	font-size: 32px;
}

.swaptiq-dashboard-tabs {
	background: white;
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	overflow: hidden;
}

.swaptiq-tabs-nav {
	display: flex;
	background: var(--swaptiq-bg-light);
	border-bottom: 1px solid var(--swaptiq-border);
	overflow-x: auto;
}

.swaptiq-tab-link {
	flex: 1;
	padding: 15px 20px;
	text-align: center;
	text-decoration: none;
	color: var(--swaptiq-text);
	border-right: 1px solid var(--swaptiq-border);
	transition: background-color 0.3s, color 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
}

.swaptiq-tab-link:last-child {
	border-right: none;
}

.swaptiq-tab-link:hover {
	background-color: var(--swaptiq-accent);
	color: var(--swaptiq-primary);
}

.swaptiq-tab-link.active {
	background-color: var(--swaptiq-primary);
	color: white;
}

.swaptiq-tab-link .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.swaptiq-tab-content {
	padding: 30px;
}

/* === Stats Cards === */
.swaptiq-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.swaptiq-stat-card {
	background: var(--swaptiq-bg-light);
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.swaptiq-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,130,212,0.1);
}

.swaptiq-stat-icon {
	font-size: 36px;
	margin-bottom: 10px;
}

.swaptiq-stat-number {
	font-size: 32px;
	font-weight: bold;
	color: var(--swaptiq-primary);
	margin: 10px 0;
}

.swaptiq-stat-label {
	color: var(--swaptiq-text-light);
	font-size: 14px;
	font-weight: 600;
}

/* === Notices === */
.swaptiq-notice {
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	border-left: 4px solid;
}

.swaptiq-notice-warning {
	background: #fff3cd;
	border-left-color: var(--swaptiq-warning);
	color: #856404;
}

.swaptiq-notice h3 {
	margin-top: 0;
	color: inherit;
}

/* === Tables === */
.swaptiq-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	background: white;
}

.swaptiq-table th,
.swaptiq-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid var(--swaptiq-border);
}

.swaptiq-table th {
	background: var(--swaptiq-bg-light);
	font-weight: 600;
	color: var(--swaptiq-text);
}

.swaptiq-table tr:hover {
	background: var(--swaptiq-bg-light);
}

/* === Search Form === */
.swaptiq-search-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.swaptiq-search-form {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 30px;
}

.swaptiq-search-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.swaptiq-search-input,
.swaptiq-search-select {
	flex: 1;
	min-width: 150px;
	padding: 12px 15px;
	border: 1px solid var(--swaptiq-border);
	border-radius: 4px;
	font-size: 14px;
}

.swaptiq-search-button {
	padding: 12px 30px;
	background: var(--swaptiq-primary);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.3s;
}

.swaptiq-search-button:hover {
	background: var(--swaptiq-secondary);
}

/* === Listing Cards === */
.swaptiq-listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.swaptiq-listing-card {
	background: white;
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.swaptiq-listing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0,130,212,0.15);
}

.swaptiq-listing-card.swaptiq-featured {
	border: 2px solid var(--swaptiq-warning);
}

.swaptiq-card-image {
	position: relative;
	overflow: hidden;
	height: 200px;
}

.swaptiq-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.swaptiq-listing-card:hover .swaptiq-card-image img {
	transform: scale(1.05);
}

.swaptiq-featured-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--swaptiq-warning);
	color: white;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
}

.swaptiq-card-content {
	padding: 20px;
}

.swaptiq-card-title {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
}

.swaptiq-card-title a {
	color: var(--swaptiq-text);
	text-decoration: none;
	transition: color 0.3s;
}

.swaptiq-card-title a:hover {
	color: var(--swaptiq-primary);
}

.swaptiq-card-category {
	display: inline-block;
	background: var(--swaptiq-accent);
	color: var(--swaptiq-primary);
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 10px;
}

.swaptiq-card-excerpt {
	color: var(--swaptiq-text-light);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
}

.swaptiq-card-quantity {
	font-size: 14px;
	color: var(--swaptiq-text);
	margin-bottom: 10px;
}

.swaptiq-card-meta {
	display: flex;
	justify-content: space-between;
	padding-top: 15px;
	border-top: 1px solid var(--swaptiq-border);
	font-size: 12px;
	color: var(--swaptiq-text-light);
	margin-bottom: 15px;
}

.swaptiq-card-button {
	display: block;
	width: 100%;
	padding: 10px;
	background: var(--swaptiq-primary);
	color: white;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.3s;
}

.swaptiq-card-button:hover {
	background: var(--swaptiq-secondary);
}

/* === Validation Form === */
.swaptiq-validation-form {
	max-width: 800px;
	margin: 0 auto;
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.swaptiq-form-section {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--swaptiq-border);
}

.swaptiq-form-section:last-child {
	border-bottom: none;
}

.swaptiq-form-section h3 {
	color: var(--swaptiq-primary);
	margin-top: 0;
}

.swaptiq-help-text {
	color: var(--swaptiq-text-light);
	font-size: 13px;
	font-style: italic;
}

/* === Messages === */
.swaptiq-success,
.swaptiq-error {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-weight: 600;
}

.swaptiq-success {
	background: #d4edda;
	color: #155724;
	border-left: 4px solid var(--swaptiq-success);
}

.swaptiq-error {
	background: #f8d7da;
	color: #721c24;
	border-left: 4px solid var(--swaptiq-danger);
}

.swaptiq-restricted {
	background: var(--swaptiq-bg-light);
	padding: 40px;
	text-align: center;
	border-radius: 8px;
	margin: 30px 0;
}

.swaptiq-restricted h3 {
	color: var(--swaptiq-primary);
}

/* === Buttons === */
.button,
button[type="submit"] {
	background: var(--swaptiq-primary);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.3s;
}

.button:hover,
button[type="submit"]:hover {
	background: var(--swaptiq-secondary);
}

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

.button-primary:hover {
	background: var(--swaptiq-secondary);
}

/* ====================================
   PHASE 2 STYLES - Single Listing
   ==================================== */

/* === Single Listing Container === */
.swaptiq-single-listing-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.swaptiq-single-listing {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === Listing Header === */
.swaptiq-listing-header {
	padding: 30px;
	border-bottom: 1px solid var(--swaptiq-border);
}

.swaptiq-listing-meta-top {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.swaptiq-post-type-badge,
.swaptiq-status-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.swaptiq-post-type-badge {
	background: var(--swaptiq-primary);
	color: white;
}

.swaptiq-status-badge {
	background: var(--swaptiq-bg-light);
	color: var(--swaptiq-text);
}

.swaptiq-status-draft { background: #e0e0e0; }
.swaptiq-status-pending_approval { background: var(--swaptiq-warning); color: white; }
.swaptiq-status-expired { background: var(--swaptiq-danger); color: white; }
.swaptiq-status-archived { background: #9e9e9e; color: white; }

.swaptiq-listing-title {
	margin: 0 0 15px 0;
	color: var(--swaptiq-text);
	font-size: 32px;
}

.swaptiq-listing-meta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--swaptiq-text-light);
}

.swaptiq-meta-item strong {
	color: var(--swaptiq-text);
}

/* === Listing Body Layout === */
.swaptiq-listing-body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	padding: 30px;
}

/* === Image Slider === */
.swaptiq-slider {
	position: relative;
	width: 100%;
	background: var(--swaptiq-bg-light);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
}

.swaptiq-slider-main {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.swaptiq-slide {
	display: none;
	width: 100%;
	height: 100%;
}

.swaptiq-slide.active {
	display: block;
}

.swaptiq-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.swaptiq-slider-prev,
.swaptiq-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: white;
	border: none;
	font-size: 40px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.3s;
	z-index: 10;
}

.swaptiq-slider-prev:hover,
.swaptiq-slider-next:hover {
	background: rgba(0,0,0,0.7);
}

.swaptiq-slider-prev {
	left: 20px;
}

.swaptiq-slider-next {
	right: 20px;
}

.swaptiq-slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.swaptiq-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	border: none;
	cursor: pointer;
	transition: background 0.3s;
	padding: 0;
}

.swaptiq-slider-dot.active,
.swaptiq-slider-dot:hover {
	background: white;
}

/* === Gallery (alternative to slider) === */
.swaptiq-gallery {
	margin-bottom: 20px;
}

.swaptiq-gallery-main {
	background: var(--swaptiq-bg-light);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 15px;
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swaptiq-gallery-main img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.swaptiq-gallery-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
}

.swaptiq-gallery-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.3s;
}

.swaptiq-gallery-thumb:hover,
.swaptiq-gallery-thumb.active {
	border-color: var(--swaptiq-primary);
}

.swaptiq-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* === Action Buttons === */
.swaptiq-listing-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

/* Favorite Button */
.swaptiq-favorite-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: white;
	border: 2px solid var(--swaptiq-border);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 14px;
	font-weight: 600;
	color: var(--swaptiq-text);
}

.swaptiq-favorite-button:hover {
	border-color: var(--swaptiq-primary);
	color: var(--swaptiq-primary);
}

.swaptiq-favorite-button.is-favorite {
	background: var(--swaptiq-primary);
	border-color: var(--swaptiq-primary);
	color: white;
}

.swaptiq-favorite-icon {
	font-size: 18px;
}

.swaptiq-favorite-count {
	font-size: 12px;
	opacity: 0.8;
}

/* Social Sharing */
.swaptiq-social-sharing {
	display: flex;
	align-items: center;
	gap: 8px;
}

.swaptiq-share-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--swaptiq-text);
}

.swaptiq-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: white;
	text-decoration: none;
	font-weight: bold;
	transition: transform 0.2s, opacity 0.2s;
}

.swaptiq-share-btn:hover {
	transform: scale(1.1);
	opacity: 0.9;
}

.swaptiq-share-facebook { background: #1877f2; }
.swaptiq-share-twitter { background: #000000; }
.swaptiq-share-whatsapp { background: #25d366; }
.swaptiq-share-telegram { background: #0088cc; }
.swaptiq-share-linkedin { background: #0077b5; }

/* Print Button */
.swaptiq-print-btn {
	padding: 10px 16px;
	background: var(--swaptiq-bg-light);
	border: 2px solid var(--swaptiq-border);
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--swaptiq-text);
	transition: all 0.3s;
}

.swaptiq-print-btn:hover {
	background: var(--swaptiq-accent);
	border-color: var(--swaptiq-primary);
	color: var(--swaptiq-primary);
}

/* === Description === */
.swaptiq-listing-description {
	margin-bottom: 30px;
}

.swaptiq-listing-description h2 {
	color: var(--swaptiq-primary);
	margin-bottom: 15px;
}

/* === Sidebar Info Boxes === */
.swaptiq-info-box {
	background: var(--swaptiq-bg-light);
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.swaptiq-info-box h3 {
	margin: 0 0 15px 0;
	color: var(--swaptiq-primary);
	font-size: 18px;
}

.swaptiq-info-list {
	margin: 0;
}

.swaptiq-info-list dt {
	font-weight: 600;
	color: var(--swaptiq-text);
	margin-top: 10px;
}

.swaptiq-info-list dt:first-child {
	margin-top: 0;
}

.swaptiq-info-list dd {
	margin: 5px 0 0 0;
	color: var(--swaptiq-text-light);
}

/* Price Box */
.swaptiq-price-box {
	background: linear-gradient(135deg, var(--swaptiq-primary) 0%, var(--swaptiq-secondary) 100%);
	color: white;
	border: none;
}

.swaptiq-price-box h3 {
	color: white;
	font-size: 14px;
	margin-bottom: 10px;
	opacity: 0.9;
}

.swaptiq-price-value {
	font-size: 36px;
	font-weight: bold;
	line-height: 1.2;
}

.swaptiq-price-negotiable {
	font-size: 24px;
	font-weight: 600;
	opacity: 0.9;
}

/* Capacity Value */
.swaptiq-capacity-value {
	font-size: 20px;
	font-weight: 600;
	color: var(--swaptiq-primary);
	margin: 0;
}

/* Contact Box */
.swaptiq-contact-box {
	background: var(--swaptiq-bg-light);
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	text-align: center;
}

.swaptiq-contact-btn {
	width: 100%;
	padding: 15px;
	background: var(--swaptiq-success);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.swaptiq-contact-btn:hover {
	background: #218838;
}

.swaptiq-contact-note {
	margin: 10px 0 0 0;
	color: var(--swaptiq-text-light);
}

/* Author Box */
.swaptiq-author-box {
	text-align: center;
}

.swaptiq-author-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.swaptiq-author-info img {
	border-radius: 50%;
}

.swaptiq-author-details strong {
	display: block;
	margin-bottom: 5px;
}

.swaptiq-validation-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.swaptiq-validation-basic {
	background: #cce5ff;
	color: #004085;
}

.swaptiq-validation-business {
	background: #d4edda;
	color: #155724;
}

.swaptiq-validation-certified {
	background: #fff3cd;
	color: #856404;
}

/* === Stats Summary === */
.swaptiq-stats-summary {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.swaptiq-stat-item {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

.swaptiq-stat-label {
	font-weight: 600;
	color: var(--swaptiq-text);
}

.swaptiq-stat-value {
	color: var(--swaptiq-primary);
	font-weight: bold;
}

/* === Print Styles === */
@media print {
	.swaptiq-listing-actions,
	.swaptiq-social-sharing,
	.swaptiq-print-btn,
	.swaptiq-contact-box,
	.swaptiq-slider-prev,
	.swaptiq-slider-next,
	.swaptiq-slider-dots {
		display: none !important;
	}

	.swaptiq-listing-body {
		grid-template-columns: 1fr;
	}
}

/* === Responsive Design === */
@media (max-width: 768px) {
	.swaptiq-tabs-nav {
		flex-wrap: wrap;
	}

	.swaptiq-tab-link {
		flex: 1 1 50%;
	}

	.swaptiq-search-row {
		flex-direction: column;
	}

	.swaptiq-search-input,
	.swaptiq-search-select {
		width: 100%;
	}

	.swaptiq-listings-grid {
		grid-template-columns: 1fr;
	}

	.swaptiq-stats-grid {
		grid-template-columns: 1fr;
	}

	/* Phase 2 responsive */
	.swaptiq-listing-body {
		grid-template-columns: 1fr;
	}

	.swaptiq-slider-main,
	.swaptiq-gallery-main {
		height: 300px;
	}

	.swaptiq-slider-prev,
	.swaptiq-slider-next {
		width: 40px;
		height: 40px;
		font-size: 30px;
	}

	.swaptiq-slider-prev {
		left: 10px;
	}

	.swaptiq-slider-next {
		right: 10px;
	}

	.swaptiq-listing-actions {
		flex-direction: column;
	}

	.swaptiq-social-sharing {
		justify-content: center;
	}
}

/* ====================================
   PHASE 3 STYLES - Credits System
   ==================================== */

/* Credit Balance Widget */
.swaptiq-credit-balance-widget {
	background: white;
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
}

.swaptiq-credit-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.swaptiq-credit-stats .stat-box {
	background: var(--swaptiq-bg-light);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s;
}

.swaptiq-credit-stats .stat-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swaptiq-credit-stats .stat-box.balance {
	border-color: #2ecc71;
	background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
	color: white;
}

.swaptiq-credit-stats .stat-box.earned {
	border-color: #3498db;
}

.swaptiq-credit-stats .stat-box.spent {
	border-color: #e74c3c;
}

.swaptiq-credit-stats .stat-box.purchased {
	border-color: #f39c12;
}

.swaptiq-credit-stats .stat-icon {
	font-size: 48px;
	display: block;
	margin-bottom: 10px;
}

.swaptiq-credit-stats .stat-value {
	font-size: 36px;
	font-weight: bold;
	margin: 10px 0;
	line-height: 1;
}

.swaptiq-credit-stats .stat-label {
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.8;
}

.swaptiq-credit-stats h3 {
	font-size: 14px;
	margin: 0 0 10px 0;
	font-weight: 600;
}

.swaptiq-credit-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
}

/* Credit History */
.swaptiq-credit-history {
	background: white;
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
}

.swaptiq-credit-history h3 {
	margin: 0 0 20px 0;
	color: var(--swaptiq-primary);
}

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

.swaptiq-transactions-table thead {
	background: var(--swaptiq-bg-light);
}

.swaptiq-transactions-table th,
.swaptiq-transactions-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid var(--swaptiq-border);
}

.swaptiq-transactions-table th {
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--swaptiq-text-light);
}

.swaptiq-transactions-table .transaction-amount.positive {
	color: #2ecc71;
	font-weight: bold;
}

.swaptiq-transactions-table .transaction-amount.negative {
	color: #e74c3c;
	font-weight: bold;
}

.swaptiq-transactions-table .badge {
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.swaptiq-transactions-table .badge-earn { background: #d4edda; color: #155724; }
.swaptiq-transactions-table .badge-spend { background: #f8d7da; color: #721c24; }
.swaptiq-transactions-table .badge-purchase { background: #fff3cd; color: #856404; }
.swaptiq-transactions-table .badge-admin_adjustment { background: #d1ecf1; color: #0c5460; }
.swaptiq-transactions-table .badge-referral { background: #cfe2ff; color: #084298; }

/* Credit Packages */
.swaptiq-credit-packages {
	background: white;
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
}

.swaptiq-credit-packages h3 {
	margin: 0 0 30px 0;
	text-align: center;
	color: var(--swaptiq-primary);
	font-size: 28px;
}

.packages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.package-card {
	background: var(--swaptiq-bg-light);
	border: 2px solid var(--swaptiq-border);
	border-radius: 12px;
	padding: 30px 20px;
	text-align: center;
	position: relative;
	transition: all 0.3s;
}

.package-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.package-card.featured {
	border-color: #f39c12;
	border-width: 3px;
	background: linear-gradient(135deg, #fff3cd 0%, #ffffff 50%);
}

.package-badge {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background: #f39c12;
	color: white;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.package-header h4 {
	margin: 0 0 10px 0;
	font-size: 24px;
	color: var(--swaptiq-primary);
}

.package-description {
	font-size: 14px;
	color: var(--swaptiq-text-light);
	margin: 0 0 20px 0;
}

.package-credits {
	margin: 20px 0;
}

.credits-amount {
	display: block;
	font-size: 48px;
	font-weight: bold;
	color: var(--swaptiq-primary);
	line-height: 1;
}

.bonus-credits {
	display: block;
	color: #27ae60;
	font-weight: 600;
	font-size: 18px;
	margin: 5px 0;
}

.credits-label {
	display: block;
	font-size: 14px;
	text-transform: uppercase;
	color: var(--swaptiq-text-light);
}

.package-price {
	margin: 20px 0;
	padding: 20px;
	background: white;
	border-radius: 8px;
}

.price-amount {
	font-size: 36px;
	font-weight: bold;
	color: var(--swaptiq-text);
}

.price-currency {
	font-size: 18px;
	color: var(--swaptiq-text-light);
	margin-left: 5px;
}

.discount-badge {
	display: inline-block;
	background: #e74c3c;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
	margin-left: 10px;
}

.price-per-credit {
	font-size: 12px;
	color: var(--swaptiq-text-light);
	margin: 10px 0 0 0;
}

.package-actions {
	margin-top: 20px;
}

.package-actions .button {
	width: 100%;
	padding: 15px;
	font-size: 16px;
	font-weight: 600;
}

.payment-notice {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}

.payment-notice p {
	margin: 5px 0;
	color: #0c5460;
	font-size: 14px;
}

/* Referral Widget */
.swaptiq-referral-widget {
	background: white;
	border: 1px solid var(--swaptiq-border);
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
}

.swaptiq-referral-widget h3 {
	margin: 0 0 15px 0;
	color: var(--swaptiq-primary);
}

.referral-link-box {
	display: flex;
	gap: 10px;
	margin: 20px 0;
}

.referral-url-input {
	flex: 1;
	padding: 12px;
	border: 2px solid var(--swaptiq-border);
	border-radius: 4px;
	font-family: monospace;
	font-size: 14px;
	background: var(--swaptiq-bg-light);
}

.copy-referral-btn {
	padding: 12px 24px;
	white-space: nowrap;
}

.referral-stats {
	background: var(--swaptiq-bg-light);
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.referral-stats p {
	margin: 0;
	line-height: 1.8;
}

/* Responsive Design - Phase 3 */
@media (max-width: 768px) {
	.swaptiq-credit-stats {
		grid-template-columns: 1fr;
	}

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

	.referral-link-box {
		flex-direction: column;
	}

	.swaptiq-transactions-table {
		font-size: 12px;
	}

	.swaptiq-transactions-table th,
	.swaptiq-transactions-table td {
		padding: 8px 4px;
	}
}
