/* BuyBrands Marketplace v2.0.2 — Modern Frontend Seller Dashboard */

.bbm201-gateway {
	--bbm-primary: #0f172a;
	--bbm-accent: #7d2423;
	--bbm-accent-hover: #631c1b;
	--bbm-success: #15803d;
	--bbm-success-bg: #dcfce7;
	--bbm-warning: #b45309;
	--bbm-warning-bg: #fef3c7;
	--bbm-bg: #f8fafc;
	--bbm-card-bg: #ffffff;
	--bbm-border: #e2e8f0;
	--bbm-text: #1e293b;
	--bbm-muted: #64748b;
	--bbm-radius: 12px;
	--bbm-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);

	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bbm-text);
	box-sizing: border-box;
}

.bbm201-gateway * {
	box-sizing: border-box;
}

/* Header & Store Profile Banner */
.bbm201-header {
	background: var(--bbm-card-bg);
	border: 1px solid var(--bbm-border);
	border-radius: var(--bbm-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--bbm-shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
}

.bbm201-profile {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bbm201-avatar {
	width: 58px;
	height: 58px;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #fff;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.bbm201-profile-info {
	min-width: 0;
}

.bbm201-profile-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.bbm201-profile-title h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	color: var(--bbm-primary);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.bbm201-profile-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
	color: var(--bbm-muted);
	font-size: 13px;
}

.bbm201-profile-meta a {
	color: var(--bbm-accent);
	font-weight: 600;
	text-decoration: none;
}

.bbm201-profile-meta a:hover {
	text-decoration: underline;
}

.bbm201-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Badges */
.bbm201-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

.bbm201-badge--success {
	background: var(--bbm-success-bg);
	color: var(--bbm-success);
}

.bbm201-badge--warning {
	background: var(--bbm-warning-bg);
	color: var(--bbm-warning);
}

.bbm201-badge--neutral {
	background: #f1f5f9;
	color: #475569;
}

.bbm201-badge--info {
	background: #e0f2fe;
	color: #0369a1;
}

/* Buttons */
.bbm201-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}

.bbm201-btn--primary {
	background: var(--bbm-accent);
	color: #ffffff !important;
	border-color: var(--bbm-accent);
}

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

.bbm201-btn--outline {
	background: #ffffff;
	color: var(--bbm-text) !important;
	border-color: var(--bbm-border);
}

.bbm201-btn--outline:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.bbm201-btn--sm {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 6px;
}

/* Metric Cards Grid */
.bbm201-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.bbm201-metric-card {
	background: var(--bbm-card-bg);
	border: 1px solid var(--bbm-border);
	border-radius: var(--bbm-radius);
	padding: 20px;
	box-shadow: var(--bbm-shadow);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bbm201-metric-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bbm-muted);
	margin-bottom: 8px;
}

.bbm201-metric-value {
	font-size: 26px;
	font-weight: 800;
	color: var(--bbm-primary);
	line-height: 1.1;
	margin-bottom: 6px;
}

.bbm201-metric-subtext {
	font-size: 12px;
	color: var(--bbm-muted);
}

/* Quick Actions Grid */
.bbm201-actions-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.bbm201-action-card {
	background: var(--bbm-card-bg);
	border: 1px solid var(--bbm-border);
	border-radius: var(--bbm-radius);
	padding: 18px 14px;
	text-align: center;
	text-decoration: none !important;
	color: inherit !important;
	box-shadow: var(--bbm-shadow);
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.bbm201-action-card:hover {
	transform: translateY(-2px);
	border-color: var(--bbm-accent);
	box-shadow: 0 4px 12px rgba(125, 36, 35, 0.08);
}

.bbm201-action-icon {
	width: 42px;
	height: 42px;
	background: #f1f5f9;
	color: var(--bbm-accent);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 10px;
	transition: all 0.2s ease;
}

.bbm201-action-card:hover .bbm201-action-icon {
	background: var(--bbm-accent);
	color: #ffffff;
}

.bbm201-action-card strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--bbm-primary);
	margin-bottom: 4px;
}

.bbm201-action-card small {
	display: block;
	font-size: 11px;
	color: var(--bbm-muted);
	line-height: 1.3;
}

/* Sections & Tables */
.bbm201-section {
	background: var(--bbm-card-bg);
	border: 1px solid var(--bbm-border);
	border-radius: var(--bbm-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--bbm-shadow);
}

.bbm201-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--bbm-border);
}

.bbm201-section-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--bbm-primary);
}

.bbm201-table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.bbm201-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 13px;
}

.bbm201-table th {
	background: #f8fafc;
	color: var(--bbm-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 10px 14px;
	border-bottom: 1px solid var(--bbm-border);
	white-space: nowrap;
}

.bbm201-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	color: var(--bbm-text);
}

.bbm201-table tr:hover td {
	background: #fcfdfe;
}

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

/* Empty State */
.bbm201-empty {
	text-align: center;
	padding: 36px 16px;
	color: var(--bbm-muted);
}

.bbm201-empty-icon {
	font-size: 36px;
	margin-bottom: 8px;
	color: #94a3b8;
}

.bbm201-empty p {
	margin: 0;
	font-size: 14px;
}

/* Account Info Split Card */
.bbm201-info-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	font-size: 13px;
}

.bbm201-info-item label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--bbm-muted);
	margin-bottom: 4px;
}

.bbm201-info-item span {
	font-weight: 600;
	color: var(--bbm-primary);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
	.bbm201-metrics-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bbm201-actions-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.bbm201-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bbm201-gateway {
		padding: 16px 12px 48px;
	}
	.bbm201-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px;
	}
	.bbm201-header-actions {
		width: 100%;
	}
	.bbm201-header-actions a {
		flex: 1;
		text-align: center;
	}
	.bbm201-metrics-grid {
		grid-template-columns: 1fr;
	}
	.bbm201-actions-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bbm201-info-grid {
		grid-template-columns: 1fr;
	}
	.bbm201-section {
		padding: 18px 14px;
	}
}
