/**
 * Bestage Bazar — Frontend Stylesheet
 * Brand: theme-adaptive. Every color inherits from the active
 * WordPress theme's own CSS variables where available (Astra's
 * --ast-* variables, then WordPress core's standardized
 * --wp--preset--color--* Global Styles variables), falling back to
 * a clean light palette with a deep red brand accent only when the
 * active theme defines neither.
 *
 * @package BBZ\Assets
 */

:root {
	--bbz-bg: var(--ast-global-color-5, var(--wp--preset--color--background, #FFFFFF));
	--bbz-bg-elevated: var(--ast-global-color-5, var(--wp--preset--color--background, #FFFFFF));
	--bbz-bg-card: var(--ast-global-color-5, var(--wp--preset--color--background, #FFFFFF));
	--bbz-primary: var(--ast-global-color-primary, var(--wp--preset--color--primary, #8B0000));
	--bbz-primary-hover: var(--ast-global-color-3, var(--wp--preset--color--foreground, #111111));
	--bbz-accent: var(--ast-global-color-primary, var(--wp--preset--color--primary, #8B0000));
	--bbz-text: var(--ast-global-color-3, var(--wp--preset--color--foreground, #111111));
	--bbz-text-muted: #6B7280;
	--bbz-border: var(--ast-border-color, #E5E7EB);
	--bbz-radius-lg: 16px;
	--bbz-radius-md: 10px;
	--bbz-radius-sm: 6px;
	--bbz-shadow: 0 2px 12px rgba(17, 17, 17, 0.08);
	--bbz-transition: all 0.25s ease;
	--bbz-font-urdu: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Segoe UI', system-ui, sans-serif;
}

.bbz-listing-grid-wrap,
.bbz-search-widget,
.bbz-listing-form-wrap,
.bbz-dashboard-shell,
.bbz-single-listing,
.bbz-archive-wrap,
.bbz-category-grid {
	color: var(--bbz-text);
	font-family: inherit;
}

/* Urdu content anywhere inside the plugin - lang="ur" or dir="rtl"
   automatically switches to the Nastaleeq stack without needing a
   separate class on every element, and scales with the surrounding
   text (rem-relative) rather than a fixed size, so it doesn't break
   responsive layout on mobile. */
.bbz-listing-grid-wrap [lang="ur"],
.bbz-search-widget [lang="ur"],
.bbz-listing-form-wrap [lang="ur"],
.bbz-dashboard-shell [lang="ur"],
.bbz-single-listing [lang="ur"],
.bbz-archive-wrap [lang="ur"],
.bbz-category-grid [lang="ur"],
.bbz-listing-grid-wrap[dir="rtl"],
.bbz-search-widget[dir="rtl"],
.bbz-listing-form-wrap[dir="rtl"],
.bbz-dashboard-shell[dir="rtl"],
.bbz-single-listing[dir="rtl"],
.bbz-archive-wrap[dir="rtl"],
.bbz-category-grid[dir="rtl"] {
	font-family: var(--bbz-font-urdu);
	line-height: 2.1;
}

/* ---------------------------------------------------------
 * Buttons
 * ------------------------------------------------------- */
.bbz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--bbz-radius-md);
	font-weight: 600;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: var(--bbz-transition);
	text-decoration: none;
}
.bbz-btn-primary {
	background: var(--bbz-primary);
	color: #fff;
}
.bbz-btn-primary:hover {
	background: var(--bbz-primary-hover);
	transform: translateY(-1px);
}
.bbz-btn-outline {
	background: transparent;
	border-color: var(--bbz-border);
	color: var(--bbz-text);
}
.bbz-btn-outline:hover {
	border-color: var(--bbz-accent);
	color: var(--bbz-accent);
}
.bbz-btn-whatsapp {
	background: #25D366;
	color: #0b0b0b;
	width: 100%;
	margin-bottom: 8px;
}
.bbz-btn-danger {
	background: transparent;
	border-color: var(--bbz-primary);
	color: var(--bbz-primary);
}
.bbz-btn-danger:hover {
	background: var(--bbz-primary);
	color: #fff;
}
.bbz-btn-small {
	padding: 6px 12px;
	font-size: 12px;
}

/* ---------------------------------------------------------
 * Listing Grid & Cards
 * ------------------------------------------------------- */
.bbz-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.bbz-listing-card {
	background: var(--bbz-bg-card);
	border: 1px solid var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
	overflow: hidden;
	transition: var(--bbz-transition);
}
.bbz-listing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bbz-shadow);
	border-color: var(--bbz-accent);
}
.bbz-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #F3F4F6;
	overflow: hidden;
}
.bbz-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--bbz-transition);
}
.bbz-listing-card:hover .bbz-card-media img {
	transform: scale(1.06);
}
.bbz-card-media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
}
.bbz-card-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	gap: 6px;
}
.bbz-badge {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.bbz-badge-urgent { background: var(--bbz-primary); color: #fff; }
.bbz-badge-featured { background: var(--bbz-accent); color: #fff; }
.bbz-badge-verified { background: #2ecc71; color: #05130a; }

.bbz-card-sold-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bbz-card-sold-overlay span {
	background: var(--bbz-primary);
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.08em;
	padding: 6px 22px;
	border-radius: var(--bbz-radius-sm);
	transform: rotate(-8deg);
}

.bbz-favorite-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	backdrop-filter: blur(4px);
	cursor: pointer;
	transition: var(--bbz-transition);
	font-size: 16px;
}
.bbz-favorite-btn.is-active,
.bbz-favorite-btn:hover {
	background: var(--bbz-primary);
	color: var(--bbz-accent);
}
.bbz-favorite-btn-large {
	position: static;
	width: auto;
	height: auto;
	border-radius: var(--bbz-radius-md);
	padding: 10px 18px;
	border: 1px solid var(--bbz-border);
}

.bbz-card-body { padding: 16px; }
.bbz-card-title { font-size: 15px; margin: 0 0 6px; line-height: 1.4; }
.bbz-card-title a { color: var(--bbz-text); text-decoration: none; }
.bbz-verified-icon { color: #2ecc71; margin-left: 4px; }
.bbz-card-price { color: var(--bbz-accent); font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.bbz-card-location { color: var(--bbz-text-muted); font-size: 13px; margin: 0 0 8px; }
.bbz-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--bbz-text-muted); }

/* ---------------------------------------------------------
 * Search
 * ------------------------------------------------------- */
.bbz-search-bar {
	display: flex;
	gap: 10px;
	background: var(--bbz-bg-elevated);
	padding: 8px;
	border-radius: var(--bbz-radius-lg);
	border: 1px solid var(--bbz-border);
}
.bbz-search-input {
	flex: 1;
	background: transparent;
	border: none;
	color: var(--bbz-text);
	padding: 10px 16px;
	font-size: 15px;
	outline: none;
}
.bbz-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.bbz-search-filters select,
.bbz-search-filters input {
	background: var(--bbz-bg-elevated);
	border: 1px solid var(--bbz-border);
	color: var(--bbz-text);
	border-radius: var(--bbz-radius-sm);
	padding: 8px 12px;
}

/* ---------------------------------------------------------
 * Category Grid
 * ------------------------------------------------------- */
.bbz-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
}
.bbz-category-card {
	background: var(--bbz-bg-card);
	border: 1px solid var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
	padding: 20px 12px;
	text-align: center;
	text-decoration: none;
	color: var(--bbz-text);
	transition: var(--bbz-transition);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.bbz-category-card:hover {
	border-color: var(--bbz-accent);
	transform: translateY(-3px);
}
.bbz-category-icon { font-size: 32px; }
.bbz-category-icon img { width: 40px; height: 40px; object-fit: contain; }
.bbz-category-name { font-weight: 600; font-size: 14px; }
.bbz-category-count { font-size: 12px; color: var(--bbz-text-muted); }

/* ---------------------------------------------------------
 * Forms
 * ------------------------------------------------------- */
.bbz-listing-form-wrap { max-width: 820px; }
.bbz-form-title { margin-bottom: 20px; }
.bbz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bbz-form-section { margin-bottom: 18px; }
.bbz-form-section label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.required { color: var(--bbz-primary); }
.bbz-field-warning {
	color: var(--bbz-accent);
	font-size: 12px;
	margin-top: 6px;
	margin-bottom: 0;
}
.bbz-form-section input[type="text"],
.bbz-form-section input[type="number"],
.bbz-form-section input[type="email"],
.bbz-form-section input[type="url"],
.bbz-form-section input[type="date"],
.bbz-form-section select,
.bbz-form-section textarea {
	width: 100%;
	background: var(--bbz-bg-elevated);
	border: 1px solid var(--bbz-border);
	color: var(--bbz-text);
	border-radius: var(--bbz-radius-sm);
	padding: 10px 14px;
	font-size: 14px;
}
.bbz-form-section input:focus,
.bbz-form-section select:focus,
.bbz-form-section textarea:focus {
	outline: none;
	border-color: var(--bbz-accent);
}
.bbz-form-checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.bbz-form-fieldset {
	border: 1px solid var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
	padding: 18px;
	margin-bottom: 20px;
}
.bbz-form-fieldset legend { padding: 0 8px; font-weight: 700; color: var(--bbz-accent); }
.bbz-dropzone {
	border: 2px dashed var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
	padding: 30px;
	text-align: center;
	cursor: pointer;
	transition: var(--bbz-transition);
}
.bbz-dropzone.is-dragover { border-color: var(--bbz-accent); background: rgba(255, 204, 0, 0.05); }
.bbz-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 28px;
	font-size: 16px;
	min-height: 48px;
	cursor: pointer;
}
#bbz_f_images {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.bbz-dropzone p { margin-top: 12px; margin-bottom: 0; font-size: 13px; color: var(--bbz-text-muted); }
.bbz-image-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.bbz-image-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--bbz-radius-sm); }
.bbz-form-message { margin: 12px 0; font-size: 14px; }
.bbz-form-message.is-error { color: var(--bbz-primary); }
.bbz-form-message.is-success { color: #2ecc71; }

/* ---------------------------------------------------------
 * Alerts / empty states
 * ------------------------------------------------------- */
.bbz-alert { padding: 14px 18px; border-radius: var(--bbz-radius-md); margin: 16px 0; }
.bbz-alert-error { background: rgba(139, 0, 0, 0.15); border: 1px solid var(--bbz-primary); }
.bbz-empty-state { color: var(--bbz-text-muted); padding: 30px 0; text-align: center; }

/* ---------------------------------------------------------
 * Login required
 * ------------------------------------------------------- */
.bbz-login-required {
	text-align: center;
	padding: 40px 20px;
	background: var(--bbz-bg-card);
	border-radius: var(--bbz-radius-lg);
	border: 1px solid var(--bbz-border);
}
.bbz-login-required-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }

/* ---------------------------------------------------------
 * Single Listing Gallery — OLX-style carousel
 * ------------------------------------------------------- */
.bbz-single-gallery { margin-bottom: 20px; }

.bbz-gallery-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 520px;
	overflow: hidden;
	border-radius: var(--bbz-radius-lg);
	background: #F3F4F6;
	touch-action: pan-y;
}

.bbz-gallery-track {
	display: flex;
	height: 100%;
	transition: transform 0.35s ease;
	will-change: transform;
}

.bbz-gallery-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.bbz-gallery-slide-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #F3F4F6;
	display: block;
	cursor: zoom-in;
}

.bbz-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: var(--bbz-transition);
	z-index: 2;
}
.bbz-gallery-arrow:hover { background: var(--bbz-primary); }
.bbz-gallery-arrow-prev { left: 12px; }
.bbz-gallery-arrow-next { right: 12px; }

.bbz-gallery-counter {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	backdrop-filter: blur(4px);
	z-index: 2;
}

.bbz-gallery-zoom-btn {
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	backdrop-filter: blur(4px);
	z-index: 2;
}
.bbz-gallery-zoom-btn:hover { background: var(--bbz-primary); }

.bbz-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-behavior: smooth;
}
.bbz-gallery-thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--bbz-radius-sm);
	overflow: hidden;
	cursor: pointer;
	background: none;
	opacity: 0.6;
	transition: var(--bbz-transition);
}
.bbz-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbz-gallery-thumb:hover { opacity: 0.9; }
.bbz-gallery-thumb.is-active { border-color: var(--bbz-accent); opacity: 1; }
.bbz-gallery-video { margin-top: 10px; }

/* Lightbox with zoom toggle */
.bbz-gallery-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	overflow: auto;
}
.bbz-gallery-lightbox img {
	max-width: 92vw;
	max-height: 92vh;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.25s ease;
}
.bbz-gallery-lightbox img.is-zoomed {
	max-width: none;
	max-height: none;
	width: 160%;
	cursor: zoom-out;
}
.bbz-gallery-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	z-index: 2;
}
.bbz-gallery-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	z-index: 2;
}
.bbz-gallery-lightbox-arrow:hover { background: rgba(255, 255, 255, 0.25); }
.bbz-gallery-lightbox-arrow-prev { left: 20px; }
.bbz-gallery-lightbox-arrow-next { right: 20px; }

@media (max-width: 640px) {
	.bbz-gallery-viewport { aspect-ratio: 4 / 3.4; max-height: 360px; border-radius: var(--bbz-radius-md); }
	.bbz-gallery-thumb { width: 56px; height: 56px; }
	.bbz-gallery-arrow { width: 36px; height: 36px; font-size: 20px; }
}

/* ---------------------------------------------------------
 * Listing Card additions (excerpt, seller, condition badge, details button)
 * ------------------------------------------------------- */
.bbz-card-excerpt { font-size: 12px; color: var(--bbz-text-muted); margin: 4px 0 8px; line-height: 1.5; }
.bbz-card-seller { font-weight: 600; }
.bbz-badge-condition { background: rgba(255, 255, 255, 0.12); color: var(--bbz-text); }
.bbz-card-details-btn { display: block; text-align: center; margin-top: 10px; font-size: 12px; padding: 8px 14px; }

/* ---------------------------------------------------------
 * Store Directory ([bestage_stores])
 * ------------------------------------------------------- */
.bbz-store-directory-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.bbz-store-directory-filters input,
.bbz-store-directory-filters select {
	background: var(--bbz-bg-elevated);
	border: 1px solid var(--bbz-border);
	color: var(--bbz-text);
	border-radius: var(--bbz-radius-sm);
	padding: 8px 12px;
}
.bbz-store-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.bbz-store-card {
	background: var(--bbz-bg-card);
	border: 1px solid var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
	overflow: hidden;
	transition: var(--bbz-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bbz-store-card:hover { transform: translateY(-4px); border-color: var(--bbz-accent); }
.bbz-store-card-cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #F3F4F6;
	overflow: hidden;
	flex-shrink: 0;
}
.bbz-store-card-cover img:first-child { width: 100%; height: 100%; object-fit: cover; }
.bbz-store-card-logo {
	position: absolute;
	bottom: -18px;
	left: 14px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid var(--bbz-bg-card);
	object-fit: cover;
	background: var(--bbz-bg-card);
}
.bbz-store-card-logo-default {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--bbz-text-muted);
}
.bbz-store-card-body { padding: 26px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.bbz-store-card-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.bbz-store-card-name a { color: var(--bbz-text); text-decoration: none; }
.bbz-store-card-category { color: var(--bbz-accent); font-size: 12px; margin: 0 0 8px; }
.bbz-store-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--bbz-text-muted); margin-bottom: 12px; }
.bbz-store-card-link { display: block; text-align: center; }
.bbz-store-card-location { font-size: 12px; color: var(--bbz-text-muted); margin: 0 0 6px; }
.bbz-store-card-excerpt { font-size: 12px; color: var(--bbz-text-muted); line-height: 1.5; margin: 0 0 10px; }
.bbz-store-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.bbz-store-card-actions .bbz-store-card-link { flex: 1; font-size: 12px; padding: 9px 6px; }
.bbz-store-card { box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.bbz-store-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

.bbz-store-directory-empty {
	text-align: center;
	padding: 60px 20px;
	background: var(--bbz-bg-card);
	border: 1px solid var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
}
.bbz-store-directory-empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.bbz-store-directory-empty h3 { margin: 0 0 8px; font-size: 20px; }
.bbz-store-directory-empty p { margin: 0; color: var(--bbz-text-muted); font-size: 13px; }

@media (max-width: 1200px) {
	.bbz-store-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.bbz-store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.bbz-store-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
 * Listing sidebar — Post Your Ad CTA
 * ------------------------------------------------------- */
.bbz-cta-post-ad {
	background: linear-gradient(160deg, var(--bbz-bg-card) 0%, #1d1414 100%);
	border: 1px solid var(--bbz-primary);
	border-radius: var(--bbz-radius-lg);
	padding: 24px 18px;
	text-align: center;
	margin-top: 16px;
}
.bbz-cta-post-ad-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.bbz-cta-post-ad h3 { margin: 0 0 6px; font-size: 16px; }
.bbz-cta-post-ad p { font-size: 12px; color: var(--bbz-text-muted); margin: 0 0 14px; }
.bbz-cta-post-ad-btn { display: block; width: 100%; }

/* ---------------------------------------------------------
 * Social Login
 * ------------------------------------------------------- */
.bbz-social-login-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--bbz-text-muted);
	font-size: 12px;
	margin: 16px 0;
}
.bbz-social-login-divider::before,
.bbz-social-login-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--bbz-border);
}
.bbz-social-login-divider span { padding: 0 10px; }
.bbz-social-login-buttons { display: flex; flex-direction: column; gap: 10px; }
.bbz-social-login-btn { display: block; width: 100%; text-align: center; }

/* ---------------------------------------------------------
 * Login page — already-logged-in account panel
 * ------------------------------------------------------- */
.bbz-account-panel {
	background: var(--bbz-bg-card);
	border: 1px solid var(--bbz-border);
	border-radius: var(--bbz-radius-lg);
	padding: 28px 22px;
	text-align: center;
	max-width: 420px;
	margin: 0 auto;
}
.bbz-account-panel-status { color: #2ecc71; font-weight: 600; margin: 0 0 6px; }
.bbz-account-panel-name { color: var(--bbz-text-muted); font-size: 14px; margin: 0 0 20px; }
.bbz-account-panel-actions { display: flex; flex-direction: column; gap: 10px; }
.bbz-account-panel-actions .bbz-btn { width: 100%; }
.bbz-account-panel-logout { border-color: var(--bbz-primary); color: var(--bbz-primary); }
.bbz-account-panel-logout:hover { background: var(--bbz-primary); color: #fff; }

@media (min-width: 480px) {
	.bbz-account-panel-actions { flex-direction: row; }
}

/* ---------------------------------------------------------
 * Single Listing — Call / WhatsApp / Message contact row
 * ------------------------------------------------------- */
.bbz-contact-button-row {
	display: flex;
	gap: 10px;
	margin: 14px 0;
}
.bbz-contact-btn {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 8px;
	font-size: 13px;
	text-align: center;
	white-space: nowrap;
}
.bbz-contact-btn-icon { font-size: 15px; line-height: 1; }

@media (max-width: 480px) {
	.bbz-contact-button-row { flex-wrap: wrap; }
	.bbz-contact-btn { flex: 1 1 30%; font-size: 12px; padding: 10px 4px; }
}

/* ---------------------------------------------------------
 * Seller Profile
 * ------------------------------------------------------- */
.bbz-seller-profile-page { max-width: 1100px; margin: 0 auto; padding: 24px 0; }
.bbz-seller-hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.bbz-seller-hero img { border-radius: 50%; }
.bbz-seller-hero-info h1 { margin: 0 0 6px; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.bbz-seller-meta, .bbz-seller-rating { color: var(--bbz-text-muted); font-size: 14px; margin: 4px 0; }
.bbz-seller-stats { display: flex; gap: 24px; margin: 14px 0; }
.bbz-seller-stats div { text-align: center; }
.bbz-seller-stats strong { display: block; font-size: 22px; color: var(--bbz-accent); }
.bbz-seller-stats span { font-size: 12px; color: var(--bbz-text-muted); }
.bbz-seller-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.bbz-seller-reviews, .bbz-seller-rate-form, .bbz-seller-listings { margin-top: 30px; }
.bbz-review-item { padding: 14px 0; border-bottom: 1px solid var(--bbz-border); }
.bbz-review-stars { color: var(--bbz-accent); margin-left: 8px; font-size: 13px; }

.bbz-star-input { display: flex; gap: 4px; margin: 10px 0; }
.bbz-star { background: none; border: none; font-size: 28px; color: var(--bbz-border); cursor: pointer; padding: 0; }
.bbz-star.is-active { color: var(--bbz-accent); }
.bbz-seller-rate-form textarea {
	width: 100%; margin: 10px 0; padding: 10px;
	background: var(--bbz-bg-elevated); border: 1px solid var(--bbz-border);
	color: var(--bbz-text); border-radius: var(--bbz-radius-sm);
}

.bbz-related-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bbz-related-item {
	display: flex; align-items: center; gap: 10px;
	padding: 8px; border-radius: var(--bbz-radius-sm);
	background: var(--bbz-bg-card); text-decoration: none; color: var(--bbz-text); font-size: 13px;
}
.bbz-related-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.bbz-related-item strong { margin-left: auto; color: var(--bbz-accent); white-space: nowrap; }

@media (max-width: 640px) {
	.bbz-seller-hero { flex-direction: column; align-items: center; text-align: center; }
	.bbz-seller-actions { justify-content: center; }
}

@media (max-width: 768px) {
	.bbz-form-row { grid-template-columns: 1fr; }
}

.bbz-promotions { margin: 20px 0; text-align: center; }
.bbz-promo-link { display: block; }
.bbz-promo-image {
	max-width: 100%;
	height: auto;
	border-radius: var(--bbz-radius-lg, 16px);
	display: block;
	margin: 0 auto;
}

.bbz-password-field-wrap { position: relative; display: flex; }
.bbz-password-field-wrap input[type="password"],
.bbz-password-field-wrap input[type="text"] { flex: 1; padding-right: 44px; }
.bbz-password-toggle {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 44px;
	min-height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	opacity: 0.6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bbz-password-toggle:hover,
.bbz-password-toggle.is-visible { opacity: 1; }

.bbz-share-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, background 0.25s ease;
}
.bbz-share-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
	background: rgba(0, 0, 0, 0.6);
}
.bbz-share-panel {
	background: var(--bbz-bg-card, #FFFFFF);
	border: 1px solid var(--bbz-border, #E5E7EB);
	border-radius: var(--bbz-radius-lg, 16px) var(--bbz-radius-lg, 16px) 0 0;
	width: 100%;
	max-width: 480px;
	padding: 16px;
	transform: translateY(100%);
	transition: transform 0.25s ease;
}
.bbz-share-overlay.is-open .bbz-share-panel { transform: translateY(0); }
.bbz-share-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	font-size: 16px;
}
.bbz-share-close {
	background: none;
	border: none;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
	min-width: 36px;
	min-height: 36px;
}
.bbz-share-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.bbz-share-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: var(--bbz-bg, #FFFFFF);
	border: 1px solid var(--bbz-border, #E5E7EB);
	border-radius: var(--bbz-radius-sm, 10px);
	padding: 12px 4px;
	cursor: pointer;
	color: inherit;
	font-size: 11px;
	min-height: 64px;
}
.bbz-share-option:hover { border-color: var(--bbz-accent, #8B0000); }
.bbz-share-icon { font-size: 20px; }
.bbz-share-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--bbz-text, #111111);
	color: #fff;
	border: 1px solid var(--bbz-border, #E5E7EB);
	padding: 10px 18px;
	border-radius: var(--bbz-radius-lg, 16px);
	font-size: 13px;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.bbz-share-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.bbz-share-toast.is-success { background: #1e5c2e; border-color: #2ecc71; }
.bbz-share-qr-wrap { text-align: center; margin-top: 14px; }
.bbz-share-qr-wrap canvas { max-width: 100%; border-radius: var(--bbz-radius-sm, 8px); }
.bbz-badge-active { background: #DCFCE7; color: #166534; }
.bbz-badge-suspended { background: #F3F4F6; color: var(--bbz-text-muted, #6B7280); }
#bbz-map-picker { height: 320px; width: 100%; border-radius: var(--bbz-radius-lg, 16px); z-index: 1; }
#bbz-map-fallback { border: 1px solid var(--bbz-border, #E5E7EB); border-radius: var(--bbz-radius-lg, 16px); padding: 16px; }
#bbz-map-fallback-search { width: 100%; margin-bottom: 8px; padding: 10px; background: var(--bbz-bg, #FFFFFF); border: 1px solid var(--bbz-border, #E5E7EB); border-radius: var(--bbz-radius-sm, 8px); color: inherit; }
#bbz-map-fallback-results { margin-top: 10px; }

@media (min-width: 640px) {
	.bbz-share-overlay { align-items: center; }
	.bbz-share-panel { border-radius: var(--bbz-radius-lg, 16px); transform: translateY(20px); }
	.bbz-share-overlay.is-open .bbz-share-panel { transform: translateY(0); }
}

/* Native Google Sign-In loading feedback (Android WebView app only -
   this class is only ever added by bbz-native-auth-bridge.js, which
   is itself inert outside the app). Uses inline-flex so the spinner
   sits beside the text without changing the button's overall size or
   position, on any screen width. */
.bbz-social-login-btn.is-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	opacity: 0.85;
	cursor: default;
	pointer-events: none;
}
.bbz-social-login-btn .bbz-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	opacity: 0.7;
	animation: bbz-spin 0.7s linear infinite;
	flex-shrink: 0;
}
@keyframes bbz-spin {
	to { transform: rotate( 360deg ); }
}

/* Jobs Wanted: the "View Full Profile" access-request button must be
   visually distinct from ordinary buttons, since it triggers a
   privacy-sensitive permission request rather than an ordinary
   action. */
.bbz-btn-job-private {
	background: #111111;
	color: #FFFFFF;
	border: 1px solid #111111;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.bbz-btn-job-private:hover {
	background: #8B0000;
	border-color: #8B0000;
	color: #FFFFFF;
}
.bbz-job-public-details { margin-top: 16px; }
.bbz-job-profile-block { margin: 10px 0; }
.bbz-job-profile-block strong { display: block; margin-bottom: 4px; font-size: 13px; }
.bbz-job-profile-block p { margin: 0; line-height: 1.6; white-space: pre-wrap; }

/* Blurred photo placeholder - the image itself is a genuinely
   separate, server-generated blurred file (see
   get_privacy_safe_photo_url() in PHP), not a CSS filter on the
   original, so this styling is purely presentational on top of an
   already privacy-safe source. */
.bbz-job-photo-wrap, .bbz-job-photo-wrap-main {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.bbz-job-photo-wrap img, .bbz-job-photo-wrap-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bbz-job-photo-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
}
.bbz-job-photo-overlay span {
	color: #FFFFFF;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.4;
}
.bbz-job-profile-photo {
	max-width: 200px;
	border-radius: var(--bbz-radius-md, 10px);
	overflow: hidden;
	margin-bottom: 16px;
}
.bbz-job-profile-photo img { width: 100%; display: block; }
.bbz-job-profile-section { margin: 18px 0; }
.bbz-job-profile-section h4 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bbz-text-muted, #6B7280);
	margin-bottom: 8px;
	border-bottom: 1px solid var(--bbz-border, #E5E7EB);
	padding-bottom: 4px;
}

/* Card attribute display - previously had NO styling at all, which
   was a real contributor to the "long unprofessional list" problem
   even after the field set itself was curated. flex-wrap keeps this
   compact and horizontally contained on any screen width. */
.bbz-card-attrs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-top: 4px;
	width: 100%;
}
.bbz-card-attrs span {
	font-size: 12px;
	color: var(--bbz-text-muted, #6B7280);
}

/* Jobs Wanted cards specifically: clean value-only pills, no
   "Label: Value" prefix - a professional job-marketplace tag style
   rather than a database field dump. */
.bbz-card-attrs-job {
	gap: 6px;
}
.bbz-job-chip {
	display: inline-block;
	background: #F3F4F6;
	color: var(--bbz-text, #111111);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 480px) {
	.bbz-job-chip {
		font-size: 10.5px;
		padding: 2px 8px;
	}
}
