.dda-buyer-dashboard {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dda-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}

.dda-notice-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.dda-notice-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.dda-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 24px;
}

.dda-tabs a {
	padding: 12px 24px;
	text-decoration: none;
	color: #555;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}

.dda-tabs a:hover {
	color: #0073aa;
}

.dda-tabs a.active {
	color: #0073aa;
	border-bottom-color: #0073aa;
}

.dda-empty {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	background: #f9f9f9;
	border-radius: 8px;
}

.dda-ads-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dda-ad-card {
	display: flex;
	gap: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	transition: box-shadow 0.2s;
}

.dda-ad-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dda-ad-card-image {
	flex: 0 0 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dda-ad-card-image img {
	max-width: 120px;
	max-height: 80px;
	object-fit: contain;
	border-radius: 4px;
}

.dda-placeholder {
	width: 120px;
	height: 60px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	color: #999;
	font-size: 12px;
}

.dda-ad-card-info {
	flex: 1;
}

.dda-ad-card-info h4 {
	margin: 0 0 6px;
	font-size: 16px;
}

.dda-ad-card-info h4 small {
	color: #888;
	font-weight: 400;
}

.dda-ad-meta {
	margin: 0 0 6px;
	font-size: 13px;
	color: #555;
	display: flex;
	align-items: center;
	gap: 10px;
}

.dda-ad-stats {
	margin: 0 0 10px;
	font-size: 13px;
	color: #666;
}

.dda-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.dda-badge-pending_payment { background: #fff3cd; color: #856404; }
.dda-badge-paid { background: #cce5ff; color: #004085; }
.dda-badge-active { background: #d4edda; color: #155724; }
.dda-badge-expired { background: #e2e3e5; color: #383d41; }

.dda-btn {
	display: inline-block;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.dda-btn:active {
	transform: scale(0.97);
}

.dda-btn-primary {
	background: #0073aa;
	color: #fff;
}

.dda-btn-primary:hover {
	background: #005a87;
	color: #fff;
}

.dda-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.dda-btn-secondary:hover {
	background: #e0e0e0;
}

.dda-btn-success {
	background: #28a745;
	color: #fff;
}

.dda-btn-success:hover {
	background: #218838;
	color: #fff;
}

.dda-btn-lg {
	padding: 12px 28px;
	font-size: 16px;
}

.dda-text-success {
	color: #28a745;
	font-weight: 600;
}

.dda-new-ad-form h3 {
	margin-top: 0;
}

.dda-form-row {
	margin-bottom: 20px;
}

.dda-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.dda-form-row input[type="text"],
.dda-form-row input[type="url"],
.dda-form-row input[type="email"],
.dda-form-row input[type="password"],
.dda-form-row select {
	width: 100%;
	max-width: 500px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.dda-form-row input:focus,
.dda-form-row select:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.dda-help {
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}

.dda-image-preview {
	margin-bottom: 10px;
}

.dda-image-preview img {
	max-width: 300px;
	max-height: 150px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

@media (max-width: 600px) {
	.dda-ad-card {
		flex-direction: column;
	}
	.dda-ad-card-image {
		flex: none;
	}
}
