/* ==========================================================================
   TARIADS — PROPERTY FIRST DESIGN SYSTEM
   Zimbabwe's Premier Property Platform
   ========================================================================== */

:root {
  --primary: #075E34;
  --primary-dark: #044224;
  --primary-light: #EBF7F0;
  --primary-hover: #097240;
  --accent: #D98200;
  --accent-light: #FEF6E6;
  --accent-hover: #B86E00;
  
  --verified-green: #0A6E3F;
  --verified-bg: #E6F4EA;
  --verified-border: #A8DAB5;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;

  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max: 1240px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

html, body, button, a, input, select, textarea, .bottom-nav-item, .mode-btn, .btn, .story-circle-item, .discovery-city-badge {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  width: 100%;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

img, svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(7, 94, 52, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  transition: color 0.15s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.country-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.country-select-wrapper:hover {
  border-color: var(--primary);
  background-color: #FFFFFF;
}

.country-select-wrapper select {
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  font-size: 0.825rem;
  max-width: 140px;
}

/* Flagship Navigation Pill */
.nav-link.flagship-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.flagship-badge {
  background: linear-gradient(135deg, var(--accent) 0%, #B86E00 100%);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Global Category Quick Bar */
.category-quick-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  position: sticky;
  top: 72px;
  z-index: 40;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.category-quick-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-quick-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-pill:hover {
  background-color: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.category-pill.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(7, 94, 52, 0.25);
}

.category-pill.active .flagship-badge {
  background: #FFFFFF;
  color: var(--primary);
}

.category-pill.flagship-pill {
  border-color: #A8DAB5;
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Category Discovery Grid */
.discovery-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.discovery-section.alt-bg {
  background-color: #F8FAFC;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.view-all-link:hover {
  gap: 0.6rem;
  color: var(--primary-hover);
}

/* CTA Banner */
.cta-banner-section {
  background: linear-gradient(135deg, #075E34 0%, #04381C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-section::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217, 130, 0, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cta-banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.cta-banner-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 2rem;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.saved-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: #FFFFFF;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.saved-btn:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-count {
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(7, 94, 52, 0.25);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: #E2E8F0;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  min-height: 48px;
}

/* Mobile toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-drawer.is-open {
  display: flex;
}

/* ==========================================================================
   HERO SEARCH SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0 4rem;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid #D1FAE5;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Search Box Container */
.search-widget {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #FAFBFD;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
  display: none;
}

.search-tab-btn {
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.search-tab-btn.active {
  color: var(--primary);
  background-color: #FFFFFF;
  border-bottom-color: var(--primary);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 0.75rem;
  padding: 1.25rem;
  align-items: center;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.field-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
}

.field-input-wrapper:focus-within {
  border-color: var(--primary);
  background-color: #FFFFFF;
  outline: 2px solid var(--primary-light);
}

.field-input-wrapper input,
.field-input-wrapper select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.popular-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background-color: #FAFBFD;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.chips-label {
  font-weight: 600;
  color: var(--text-muted);
}

.chip-link {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.chip-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   TRUST & VERIFIED BANNER
   ========================================================================== */
.trust-banner {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.15s ease;
}

.section-link:hover {
  gap: 0.6rem;
}

/* ==========================================================================
   PROPERTY CARDS GRID
   ========================================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #E2E8F0;
  overflow: hidden;
}

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

.property-card:hover .card-img {
  transform: scale(1.03);
}

.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(7, 94, 52, 0.92);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}

.save-card-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.save-card-btn:hover, .save-card-btn.is-saved {
  background: #FFFFFF;
  color: #EF4444;
  transform: scale(1.1);
}

.card-badges-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-pill {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.photo-count-pill {
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-size: 0.725rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.card-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-zig-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.spec-item svg {
  color: var(--text-light);
}

.card-utilities {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.utility-chip {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

.utility-chip.highlight {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: #D1FAE5;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.availability-tag {
  font-size: 0.775rem;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.availability-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
}

/* ==========================================================================
   PROPERTY LISTINGS & SEARCH FILTER PAGE
   ========================================================================== */
.properties-page-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-reset-btn {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.range-input-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  width: 100%;
}

.properties-main-content {
  display: flex;
  flex-direction: column;
}

.properties-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-main);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  background-color: #FFFFFF;
  color: var(--text-main);
}

/* ==========================================================================
   PROPERTY DETAIL PAGE
   ========================================================================== */
.property-detail-header {
  padding: 1.5rem 0 1rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.detail-headline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.detail-location-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Gallery layout */
.gallery-section {
  padding: 1.5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}

.gallery-main {
  height: 480px;
  position: relative;
  cursor: pointer;
}

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

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 480px;
}

.gallery-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

.view-all-photos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  gap: 0.5rem;
}

/* Property Detail Columns */
.property-content-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
}

.detail-card-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.detail-specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.spec-box-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.spec-box-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.verified-guarantee-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1.5px solid var(--verified-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.verified-guarantee-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.verified-badge-icon {
  width: 36px;
  height: 36px;
  background-color: var(--verified-green);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-guarantee-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-main);
}

.verified-guarantee-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verified-guarantee-list li svg {
  color: var(--verified-green);
  flex-shrink: 0;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-top: 1rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.amenity-item svg {
  color: var(--primary);
}

/* Sidebar Booking & Agent Card */
.sidebar-booking-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 90px;
}

.sidebar-price-box {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.sidebar-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.sidebar-agent-profile {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.agent-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.agent-name {
  font-weight: 700;
  font-size: 1rem;
}

.agent-agency {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.15rem;
}

.booking-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qr-widget-box {
  background-color: var(--bg-subtle);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-top: 1.25rem;
}

.qr-canvas-holder {
  display: inline-block;
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.is-active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close-btn {
  color: var(--text-light);
  padding: 0.35rem;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-help {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   LIST PROPERTY WIZARD
   ========================================================================== */
.wizard-container {
  max-width: 800px;
  margin: 2.5rem auto 4rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-steps-indicator::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: var(--border-subtle);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 2px solid var(--border-medium);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.wizard-step-node.active .step-circle {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.wizard-step-node.completed .step-circle {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Image Upload Area */
.image-upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-dropzone:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.upload-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1E293B;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn 0.25s ease-out;
}

.toast.toast-success {
  border-left: 4px solid var(--primary);
}

@keyframes toastIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   MARKETPLACE ↔ BILLBOARD ECOSYSTEM MODE SWITCH
   ========================================================================== */
.ecosystem-mode-switch {
  display: inline-flex;
  align-items: center;
  background-color: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748B;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.mode-btn .mode-icon {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.mode-btn:hover {
  color: #0F172A;
}

.mode-btn:hover .mode-icon {
  transform: scale(1.08);
}

.mode-btn.active {
  background-color: #075E34;
  color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(7, 94, 52, 0.28);
}

.mode-btn.active .mode-icon {
  stroke: #FFFFFF;
}

.mode-btn#modeBillboard:not(.active):hover {
  background-color: #FFFFFF;
  color: #B45309;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Header Post Listing Button text handling */
.header-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   SIMPLIFIED HOMEPAGE (DIRECT, QUIET, NO TEXT NOISE)
   ========================================================================== */
.home-hero-clean {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
}

.hero-brand-headline {
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-headline-title {
  font-size: 2.125rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0F172A;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Category Quick Navigation Pills */
.category-quick-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-quick-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: #075E34;
  color: #075E34;
  background-color: #F0FDF4;
  transform: translateY(-1px);
}

.cat-pill.active,
.cat-pill.flagship-pill {
  border-color: #075E34;
  background-color: #F0FDF4;
  color: #075E34;
}

.cat-pill-flagship {
  background: #075E34;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Clean Property Search Experience */
.property-search-clean {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.search-type-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-type-tabs::-webkit-scrollbar {
  display: none;
}

.type-tab-btn {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748B;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.type-tab-btn:hover {
  color: #0F172A;
  background-color: #F8FAFC;
}

.type-tab-btn.active {
  color: #075E34;
  background-color: #EBF7F0;
  font-weight: 700;
}

.clean-search-form {
  display: grid;
  grid-template-columns: 2fr 1.6fr 1.3fr 1fr auto;
  gap: 0.75rem;
  align-items: flex-end;
}

.clean-search-form .form-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.clean-search-form .col-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
}

.clean-search-form .col-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.clean-search-form .col-input-box:focus-within {
  border-color: #075E34;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(7, 94, 52, 0.1);
}

.clean-search-form .col-input-box input,
.clean-search-form .col-input-box select {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.9375rem;
  color: #0F172A;
  font-weight: 500;
  outline: none;
}

.btn-search-go {
  height: 44px;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

/* Listings Sections */
.section-listings {
  padding: 3rem 0 2.5rem;
}

.section-listings.section-alt {
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.listings-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.heading-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.listings-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.listings-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #075E34;
  text-decoration: none;
  transition: gap 0.15s ease;
}

.listings-see-all:hover {
  gap: 0.55rem;
}

/* Compact Post Banner */
.compact-post-banner {
  background: linear-gradient(135deg, #075E34 0%, #064E2B 100%);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 4px 16px rgba(7, 94, 52, 0.16);
}

.compact-post-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.compact-post-text p {
  color: #D1FAE5;
  font-size: 0.95rem;
}

.compact-post-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Drawer Mode Switch Container */
.drawer-mode-switch-container {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #E2E8F0;
}

.drawer-mode-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.mobile-drawer-switch {
  width: 100%;
  display: flex;
}

.mobile-drawer-switch .mode-btn {
  flex: 1;
  justify-content: center;
}

.drawer-links-group {
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-footer-action {
  padding: 1.25rem;
  margin-top: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 1024px) {
  .clean-search-form {
    grid-template-columns: 1fr 1fr;
  }
  .form-btn-col {
    grid-column: 1 / -1;
  }
  .btn-search-go {
    width: 100%;
    justify-content: center;
  }
  .compact-post-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .compact-post-actions {
    width: 100%;
    flex-direction: column;
  }
  .compact-post-actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .properties-page-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
  }
  .filter-sidebar.is-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    top: 72px;
    z-index: 90;
    overflow-y: auto;
    border-radius: 0;
  }
  .property-content-layout {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .gallery-main {
    height: 320px;
  }
  .gallery-side {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-headline-title {
    font-size: 1.65rem;
  }
  .clean-search-form {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .search-form-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
  .detail-headline-row {
    flex-direction: column;
    gap: 1rem;
  }
  .detail-title {
    font-size: 1.5rem;
  }
  .detail-specs-bar {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0;
  }
  .header-inner {
    height: auto;
    min-height: 56px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.45rem;
    column-gap: 0.5rem;
    align-items: center;
  }
  .brand-logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    flex-shrink: 0;
    gap: 0.45rem;
  }
  .brand-title {
    font-size: 1.15rem;
    line-height: 1;
  }
  .brand-icon-box {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .header-actions {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
    gap: 0.4rem;
  }
  .post-btn-text {
    display: none;
  }
  .header-post-btn {
    padding: 0.35rem 0.55rem;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
  }
  .ecosystem-mode-switch {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    justify-self: center;
    width: 100%;
    max-width: 330px;
    display: flex;
    padding: 2px;
    gap: 2px;
    margin: 0 auto;
  }
  .mode-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.38rem 0.45rem;
    font-size: 0.72rem;
    gap: 0.3rem;
    letter-spacing: 0.02em;
    min-width: 0;
  }
  .mode-btn .mode-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }
  .saved-label {
    display: none;
  }
  .saved-btn {
    padding: 0.35rem 0.5rem;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero-headline-title {
    font-size: 1.35rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .cat-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    row-gap: 0.35rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-icon-box {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .mode-btn {
    padding: 0.32rem 0.3rem;
    font-size: 0.68rem;
    gap: 0.2rem;
  }
  .hero-headline-title {
    font-size: 1.15rem;
    line-height: 1.25;
  }
}

/* ==========================================================================
   GLOBAL SEARCH BAR & LOCATION CONTROL RESPONSIVE
   ========================================================================== */
.global-search-bar-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.global-search-bar-wrap input {
  min-width: 0 !important;
  flex: 1 1 0 !important;
}

.global-search-location-wrap {
  display: flex;
  align-items: center;
  border-left: 1px solid #E2E8F0;
  padding-left: 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .global-search-bar-wrap {
    padding: 0.45rem 0.65rem !important;
    gap: 0.45rem !important;
  }
  .global-search-bar-wrap input {
    font-size: 0.88rem !important;
  }
  .global-search-location-wrap {
    padding-left: 0.45rem !important;
  }
  .marketplace-location-control {
    padding: 0.3rem 0.45rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  .location-control-text {
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
}

@media (max-width: 360px) {
  .global-search-bar-wrap {
    padding: 0.4rem 0.5rem !important;
    gap: 0.35rem !important;
  }
  .global-search-location-wrap {
    padding-left: 0.35rem !important;
  }
  .location-control-text {
    max-width: 60px;
  }
}

/* Responsive Forms */
.post-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .post-form-row,
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns:repeat(3, 1fr)"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .property-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .compact-post-banner {
    padding: 1.25rem 1rem !important;
    border-radius: 14px;
    gap: 1rem;
  }
  .compact-post-text h3 {
    font-size: 1.25rem;
  }
  .compact-post-text p {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   TARIADS DISCOVERY ARCHITECTURE & LISTING POST STYLES
   ========================================================================== */

/* Desktop Icon-Led Navigation */
.desktop-icon-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-icon-nav .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}

.desktop-icon-nav .nav-item:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.desktop-icon-nav .nav-item.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

.desktop-icon-nav .nav-item.active svg {
  stroke-width: 2.4;
}

/* Persistent Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .desktop-icon-nav {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    max-width: 100vw;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    color: #64748B;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease;
    padding: 0 2px;
  }

  .bottom-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.15;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item.active {
    color: var(--primary);
  }

  .bottom-nav-item:active,
  .bottom-nav-item.is-navigating {
    transform: scale(0.92);
    transition: transform 0.05s ease;
  }

  .bottom-nav-item.active svg {
    stroke: var(--primary);
    stroke-width: 2.5;
  }

  .bottom-nav-item.bnav-post-highlight {
    color: var(--primary);
  }

  .bnav-post-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -12px;
    box-shadow: 0 3px 10px rgba(7, 94, 52, 0.35);
    transition: transform 0.15s ease;
  }

  .bnav-post-icon svg {
    stroke: #FFFFFF !important;
  }

  .bottom-nav-item.bnav-post-highlight:active .bnav-post-icon {
    transform: scale(0.92);
  }

  .bnav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 16px);
    font-size: 0.65rem;
    padding: 1px 5px;
  }
}

/* ==========================================================================
   LISTING POST (Feed Card Architecture)
   ========================================================================== */
.listing-post-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.listing-post-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Publisher Identity Header Bar */
.post-publisher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
}

.publisher-info-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
  min-width: 0;
}

.publisher-info-group:hover {
  opacity: 0.85;
}

.publisher-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #075E34, #0D7A45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid #E2E8F0;
}

.publisher-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publisher-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  min-width: 0;
}

.publisher-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.publisher-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.publisher-role-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #F1F5F9;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.publisher-role-badge.role-business {
  background-color: #EBF7F0;
  color: var(--primary);
}

.publisher-subline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot-sep {
  color: #CBD5E1;
  font-size: 0.7rem;
}

/* Post Media Wrap */
.post-media-wrap {
  position: relative;
  width: 100%;
  background-color: #0F172A;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.post-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-post-card:hover .post-hero-image {
  transform: scale(1.02);
}

.post-media-overlay-tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  flex-wrap: wrap;
}

.post-vertical-pill {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.post-vertical-pill.flagship {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Post Content */
.post-content {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-price-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.post-price-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.post-price-note {
  font-size: 0.76rem;
  font-weight: 500;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.post-title a {
  color: inherit;
  transition: color 0.15s ease;
}

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

.post-specs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  font-size: 0.82rem;
  color: #475569;
  background-color: #F8FAFC;
  border: 1px solid #F1F5F9;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.post-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
}

.post-actions-row > * {
  min-width: 0;
}

@media (max-width: 480px) {
  .post-actions-row {
    gap: 0.5rem;
  }
  .post-view-btn,
  .post-contact-btn {
    font-size: 0.8rem;
    padding: 0.42rem 0.45rem;
  }
  .publisher-name {
    max-width: 135px;
  }
}

@media (max-width: 360px) {
  .post-view-btn,
  .post-contact-btn {
    font-size: 0.74rem;
    padding: 0.38rem 0.35rem;
    gap: 0.2rem;
  }
  .publisher-name {
    max-width: 105px;
  }
}

/* Feed Stream Containers */
.discovery-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .discovery-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .discovery-feed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* ==========================================================================
   TARIADS HOME SCREEN: SOCIAL FEED STREAM
   Strict single-column vertical layout inspired by Facebook & Instagram.
   NEVER renders side-by-side product cards on Home under ANY screen width.
   ========================================================================== */
.home-social-feed,
#discoveryFeedContainer {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding: 0 0 2.5rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  #discoveryFeedContainer,
  .home-social-feed {
    display: flex !important;
    flex-direction: column !important;
    max-width: 620px !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 1024px) {
  #discoveryFeedContainer,
  .home-social-feed {
    display: flex !important;
    flex-direction: column !important;
    max-width: 620px !important;
    margin: 0 auto !important;
  }
}

/* ==========================================================================
   TARIADS HOME: APPROVED DARK SOCIAL FEED (VISUAL LOCK)
   Strict single-column vertical layout on dark/black background.
   No white cards, no bright panels, no heavy shadows.
   Exact 5-level post hierarchy:
   1. Business header (avatar, name, location/category, overflow menu)
   2. Caption (short, natural, factual above image)
   3. Image (large, dominant, uncropped full width)
   4. Social actions (like, comment, share on left, save on right)
   5. Listing footer (bold price on left, green View Listing button on right)
   ========================================================================== */

/* Home Page Dark Background & Element Alignment */
body.home-page {
  background-color: #000000 !important;
  color: #F3F4F6 !important;
}

body.home-page .site-header {
  background: #0A0A0A !important;
  border-bottom: 1px solid #1A1A1A !important;
}

body.home-page .brand-title {
  color: #F9FAFB !important;
}

body.home-page .brand-icon-box {
  background: #075E34 !important;
  color: #FFFFFF !important;
}

body.home-page .ecosystem-mode-switch {
  background: #141414 !important;
  border: 1px solid #222222 !important;
}

body.home-page .mode-btn {
  color: #8E8E93 !important;
}

body.home-page .mode-btn.active {
  background: #222222 !important;
  color: #FFFFFF !important;
}

body.home-page .discovery-context-bar {
  background: transparent !important;
  color: #8E8E93 !important;
  border-bottom-color: #1A1A1A !important;
}

body.home-page .discovery-city-badge {
  background: #141414 !important;
  border: 1px solid #262626 !important;
  color: #E5E7EB !important;
}

body.home-page .discovery-location-change-link {
  color: #10B981 !important;
}

body.home-page .stories-row-wrapper {
  background: transparent !important;
}

body.home-page .story-circle-name {
  color: #D1D5DB !important;
}

body.home-page .mobile-bottom-nav {
  background: #0A0A0A !important;
  border-top: 1px solid #1A1A1A !important;
}

body.home-page .bottom-nav-item {
  color: #8E8E93 !important;
}

body.home-page .bottom-nav-item.active {
  color: #10B981 !important;
}

/* Dark Post Surface */
.social-feed-post {
  background: #121212 !important;
  border: 1px solid #222222 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease !important;
}

.social-feed-post:hover {
  border-color: #2E2E2E !important;
}

/* 1. Business Header */
.social-post-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.85rem 1rem 0.65rem !important;
  gap: 0.75rem !important;
  border-bottom: none !important;
  background: transparent !important;
}

.social-post-publisher {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.social-post-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #222222 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  border: 1px solid #333333 !important;
}

.social-post-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.social-post-publisher-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.1rem !important;
  min-width: 0 !important;
}

.social-post-publisher-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.social-post-publisher-name {
  font-weight: 600 !important;
  font-size: 0.935rem !important;
  color: #F3F4F6 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.01em !important;
}

.social-post-publisher:hover .social-post-publisher-name {
  color: #10B981 !important;
}

.social-post-verified-icon {
  flex-shrink: 0 !important;
}

.social-post-meta {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.78rem !important;
  color: #8E8E93 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.social-post-location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.2rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.social-post-meta-dot {
  color: #4B5563 !important;
}

.social-post-category-tag {
  color: #8E8E93 !important;
  font-weight: 500 !important;
}

.social-post-overflow-btn {
  background: transparent !important;
  border: none !important;
  color: #8E8E93 !important;
  cursor: pointer !important;
  padding: 0.35rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: color 0.15s ease !important;
  flex-shrink: 0 !important;
}

.social-post-overflow-btn:hover {
  color: #FFFFFF !important;
}

/* 2. Caption: Short, Natural Text Above Image */
.social-post-caption-box {
  padding: 0 1rem 0.65rem !important;
}

.social-post-caption {
  font-size: 0.935rem !important;
  line-height: 1.45 !important;
  color: #E5E7EB !important;
  margin: 0 !important;
  font-weight: 400 !important;
  word-break: break-word !important;
  letter-spacing: -0.01em !important;
}

/* 3. Image: Large, Dominant, Full Width, Uncropped */
.social-post-media-container {
  width: 100% !important;
  position: relative !important;
  background: #000000 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 240px !important;
}

.social-post-media-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-decoration: none !important;
}

.social-post-image {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* 4. Social Actions: Like, Comment, Share on Left, Save on Right */
.social-post-interactions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.75rem 1rem 0.5rem !important;
}

.social-interactions-left {
  display: flex !important;
  align-items: center !important;
  gap: 1.15rem !important;
}

.social-action-btn {
  background: transparent !important;
  border: none !important;
  color: #F3F4F6 !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}

.social-action-btn:hover {
  transform: scale(1.08) !important;
}

.social-action-btn.is-liked {
  color: #EF4444 !important;
}

.social-action-btn.is-liked svg {
  fill: #EF4444 !important;
  stroke: #EF4444 !important;
}

.social-action-btn.is-saved {
  color: #10B981 !important;
}

.social-action-btn.is-saved svg {
  fill: #10B981 !important;
  stroke: #10B981 !important;
}

/* 5. Listing Footer: Bold Price on Left, Green View Listing Button on Right */
.social-post-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.4rem 1rem 0.95rem !important;
  gap: 1rem !important;
}

.social-post-price-wrap {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.2rem !important;
}

.social-post-price {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.02em !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.social-post-price-period {
  font-size: 0.85rem !important;
  color: #8E8E93 !important;
  font-weight: 500 !important;
}

.social-view-listing-btn {
  background: #075E34 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.social-view-listing-btn:hover {
  background: #097240 !important;
  transform: translateY(-1px) !important;
}

/* Feed Filter Tabs */
.feed-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
.feed-filter-bar::-webkit-scrollbar {
  display: none;
}

.feed-filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.feed-filter-chip:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
}

.feed-filter-chip.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Publisher Profile Modal */
.publisher-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.publisher-modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.publisher-modal-card {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.publisher-modal-backdrop.is-active .publisher-modal-card {
  transform: translateY(0);
}

.publisher-modal-header {
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.publisher-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  background-color: #F1F5F9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.publisher-modal-close-btn:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

.publisher-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.publisher-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.publisher-stat-box {
  background-color: #F8FAFC;
  border: 1px solid #F1F5F9;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

.publisher-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.publisher-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TariAds Premium Location Experience & Location Sheet
   ========================================================================== */

/* Location Control (in Global Search Bar) */
.marketplace-location-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.marketplace-location-control:hover {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #075E34;
  box-shadow: 0 1px 3px rgba(7, 94, 52, 0.08);
}

.marketplace-location-control:active {
  transform: scale(0.97);
}

.location-control-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075E34;
}

.location-control-text {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-control-caret {
  color: #64748B;
  transition: transform 0.2s ease;
}

.marketplace-location-control[aria-expanded="true"] .location-control-caret {
  transform: rotate(180deg);
}

/* Discovery Context Bar */
.discovery-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding: 0.2rem 0.25rem;
}

.discovery-context-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748B;
}

.discovery-city-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F0FDF4;
  color: #075E34;
  border: 1px solid #BBF7D0;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.discovery-city-badge:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
}

.discovery-location-change-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #075E34;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
  font-family: inherit;
}

.discovery-location-change-link:hover {
  opacity: 0.8;
}

/* Location Sheet Modal / Bottom Sheet Backdrop */
.location-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Location Sheet Card */
.location-sheet-card {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-sheet-backdrop.is-open .location-sheet-card {
  transform: scale(1) translateY(0);
}

/* Mobile drag handle bar (hidden on desktop) */
.sheet-drag-handle-bar {
  display: none;
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
  justify-content: center;
  align-items: center;
}

.sheet-drag-pill {
  width: 38px;
  height: 4.5px;
  border-radius: 9999px;
  background-color: #CBD5E1;
}

/* Header */
.location-sheet-header {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.location-sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.location-sheet-subtitle {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
}

.location-sheet-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.location-sheet-close-btn:hover {
  background-color: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

/* Body */
.location-sheet-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Current Location Banner */
.location-current-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #86EFAC;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(7, 94, 52, 0.06);
}

.location-current-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-current-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #075E34;
}

.location-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  color: #075E34;
  border: 1px solid #BBF7D0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.location-active-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseGreenDot 2s infinite ease-in-out;
}

@keyframes pulseGreenDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.location-current-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.location-current-city {
  font-size: 1.18rem;
  font-weight: 800;
  color: #064E29;
  letter-spacing: -0.01em;
}

.location-current-desc {
  font-size: 0.8rem;
  color: #166534;
}

/* Instant Search Field */
.location-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.location-search-icon {
  position: absolute;
  left: 0.9rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #64748B;
}

.location-search-input {
  width: 100%;
  padding: 0.75rem 2.4rem 0.75rem 2.6rem;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0F172A;
  outline: none;
  transition: all 0.15s ease;
}

.location-search-input:focus {
  background-color: #FFFFFF;
  border-color: #075E34;
  box-shadow: 0 0 0 3.5px rgba(7, 94, 52, 0.12);
}

.location-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.88rem;
}

.location-search-clear {
  position: absolute;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #E2E8F0;
  border: none;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.location-search-clear:hover {
  background-color: #CBD5E1;
  color: #0F172A;
}

/* Sections */
.location-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.location-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 0 0.2rem;
}

.location-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Item Button */
.location-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background-color: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-item-btn:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateX(2px);
}

.location-item-btn:active {
  transform: scale(0.99);
}

.location-item-btn.is-active {
  background-color: #F0FDF4;
  border-color: #86EFAC;
  box-shadow: 0 1px 3px rgba(7, 94, 52, 0.08);
}

.location-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.location-item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #64748B;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.location-item-btn:hover .location-item-icon-box {
  background-color: #E2E8F0;
  color: #075E34;
}

.location-item-btn.is-active .location-item-icon-box {
  background-color: #DCFCE7;
  color: #075E34;
}

.location-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.location-item-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.location-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F172A;
}

.location-item-btn.is-active .location-item-name {
  color: #075E34;
  font-weight: 700;
}

.location-item-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background-color: #F1F5F9;
  color: #475569;
}

.location-item-btn.is-active .location-item-badge {
  background-color: #DCFCE7;
  color: #075E34;
}

.location-item-tag {
  font-size: 0.78rem;
  color: #64748B;
}

.location-item-btn.is-active .location-item-tag {
  color: #166534;
}

.location-item-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}

.location-item-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #075E34;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(7, 94, 52, 0.3);
}

/* International Expansion Collapsible */
.location-intl-toggle {
  background-color: #FAFAFA;
}

.location-intl-toggle:hover {
  background-color: #F1F5F9;
}

.location-intl-caret {
  transition: transform 0.2s ease;
  color: #64748B;
}

.location-intl-caret.is-rotated {
  transform: rotate(180deg);
}

.location-intl-dropdown {
  margin-top: 0.35rem;
  padding-left: 0.75rem;
  border-left: 2px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Search Highlights */
.location-highlight {
  font-weight: 800;
  color: #075E34;
  background: rgba(7, 94, 52, 0.08);
  border-radius: 2px;
  padding: 0 1px;
}

.location-empty-search {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748B;
  background-color: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
}

.location-empty-icon {
  margin: 0 auto 0.5rem;
  color: #94A3B8;
}

.location-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.25rem;
}

.location-empty-desc {
  font-size: 0.82rem;
  color: #64748B;
}

/* ==========================================================================
   DISCOVER PAGE (Clean, Calm, Content-First Architecture)
   ========================================================================== */
.discover-hero-section {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0 1rem;
}

.discover-hero-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.discover-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.discover-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

/* Discover Search Bar */
.discover-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  transition: all 0.15s ease;
}

.discover-search-box:focus-within {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(7, 94, 52, 0.12);
}

.discover-search-icon {
  flex-shrink: 0;
  color: #64748B;
}

.discover-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
}

.discover-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.9rem;
}

.discover-search-clear-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.discover-search-clear-btn:hover {
  color: var(--text-main);
}

/* Meta & Context Line */
.discover-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.discover-context-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.discover-count-badge {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}

/* Simple Compact Category Access */
.discover-cat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.discover-cat-row::-webkit-scrollbar {
  display: none;
}

.discover-cat-tab {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.discover-cat-tab:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.discover-cat-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(7, 94, 52, 0.2);
}

/* Feed Stream Container */
.discovery-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Empty State */
.discover-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-top: 0.5rem;
}

.discover-empty-icon {
  margin: 0 auto 1rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discover-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.discover-empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* Mobile Bottom Sheet Media Query */
@media (max-width: 640px) {
  .location-sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .location-sheet-card {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  }

  .location-sheet-backdrop.is-open .location-sheet-card {
    transform: translateY(0);
  }

  .sheet-drag-handle-bar {
    display: flex;
  }

  .location-sheet-header {
    padding: 0.75rem 1.25rem 0.9rem;
  }

  .location-sheet-body {
    padding: 1rem 1.25rem 1.75rem;
    gap: 1rem;
  }

  .location-item-btn {
    padding: 0.75rem 0.85rem;
    min-height: 48px; /* Touch target accessibility */
  }

  .marketplace-location-control {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   TARIADS HOME PAGE BUSINESS STORIES & AD STUDIO SYSTEM
   Mobile-First Instagram-style Stories with Ad Studio Creation Workflow
   ========================================================================== */

/* Stories Row Container */
.home-stories-section {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0 0.85rem;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.stories-row-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.stories-scroll-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.15rem 0.5rem 0.15rem;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
}

.stories-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Create Ad Circle (Continuous Horizontal Row Item) */
.story-create-item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  width: 68px;
}

.create-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #075E34 !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(7, 94, 52, 0.12) !important;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.create-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #EBF7F0 !important;
  color: #075E34 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.story-create-item:hover .create-ring {
  border-color: #10B981 !important;
  transform: scale(1.03);
}

.story-create-item:hover .create-circle {
  background: #DCF2E4 !important;
  color: #064E2B !important;
}

.story-create-item:active .create-ring {
  transform: scale(0.96);
}

.story-create-item .story-circle-name {
  font-weight: 700;
  color: #075E34;
  margin-top: 0.38rem;
}

/* Business Stories Row */
.business-stories-list {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.story-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  user-select: none;
  transition: transform 0.18s ease;
}

.story-circle-item:active {
  transform: scale(0.95);
}

.story-ring-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

/* Living Animated Story Ring for Active / Unseen Stories */
.story-ring-unseen {
  position: relative;
  background: transparent;
  box-shadow: 0 2px 10px rgba(7, 94, 52, 0.2), 0 0 12px rgba(16, 185, 129, 0.22);
}

/* Subtle rotating ring-light gradient */
.story-ring-unseen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #075E34 0%, #10B981 35%, #34D399 50%, #D98200 70%, #10B981 85%, #075E34 100%);
  animation: storyRingRotate 7.5s linear infinite;
  z-index: 1;
}

/* Soft, restrained outer glow pulse */
.story-ring-unseen::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(16, 185, 129, 0) 70%);
  animation: storyGlowBreathe 3.5s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.story-ring-unseen .story-circle {
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.story-ring-unseen .story-verified-dot {
  position: absolute;
  z-index: 3;
}

.story-circle-item:hover .story-ring-unseen {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(7, 94, 52, 0.26), 0 0 18px rgba(16, 185, 129, 0.35);
}

.story-circle-item:hover .story-circle-img {
  transform: scale(1.06);
}

/* Viewed story: Calm muted ring without animation */
.story-ring-viewed {
  position: relative;
  background: #CBD5E1;
  box-shadow: none;
}

.story-ring-viewed::before,
.story-ring-viewed::after {
  display: none !important;
}

.story-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.story-circle-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: #1E293B;
  margin-top: 0.38rem;
  width: 68px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.story-verified-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: #075E34;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-empty-hint {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #64748B;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px dashed var(--border-medium);
}

/* Keyframes for living story rings */
@keyframes storyRingRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes storyGlowBreathe {
  0% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.05);
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .story-ring-unseen::before {
    animation: none !important;
    background: linear-gradient(135deg, #075E34 0%, #10B981 50%, #D98200 100%) !important;
  }
  .story-ring-unseen::after {
    animation: none !important;
    opacity: 0.3 !important;
    transform: none !important;
  }
  .story-media-image {
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   FULL-SCREEN INSTAGRAM-STYLE STORY VIEWER
   ========================================================================== */

.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}

.story-viewer-backdrop.is-active {
  display: flex;
}

.story-viewer-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop Navigation Chevrons */
.story-nav-chevron {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.story-nav-chevron:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.story-chevron-prev {
  left: 24px;
}

.story-chevron-next {
  right: 24px;
}

@media (min-width: 640px) {
  .story-nav-chevron {
    display: flex;
  }
}

/* Smartphone Screen Container */
.story-screen-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 840px;
  background: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

@media (min-width: 640px) {
  .story-screen-container {
    height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  }
}

/* Segmented Progress Bars */
.story-progress-bars-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  gap: 4px;
}

.story-progress-bar-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-bar-fill {
  height: 100%;
  background: #FFFFFF;
  width: 0%;
  border-radius: 2px;
  transition: width 0.05s linear;
}

.story-progress-bar-fill.completed {
  width: 100% !important;
}

/* Top Header Bar */
.story-header-bar {
  position: absolute;
  top: 20px;
  left: 12px;
  right: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.story-header-business {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.story-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #FFFFFF;
  background: #FFFFFF;
}

.story-header-meta {
  display: flex;
  flex-direction: column;
}

.story-header-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.story-header-name {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.story-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #075E34;
  border-radius: 50%;
  width: 14px;
  height: 14px;
}

.story-header-time {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.story-header-category {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-action-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 75;
}

.story-action-btn:active {
  transform: scale(0.92);
}

.story-action-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.story-close-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  z-index: 80;
}

.story-close-btn:hover {
  background: rgba(220, 38, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Media Visual & Overlays */
.story-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #0B1120;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
  animation: none !important;
  transform: none !important;
}

.story-viewer-stage.is-paused .story-media-image,
.story-screen-container.is-paused .story-media-image {
  animation-play-state: paused !important;
}

.story-gradient-overlay {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 15;
}

.story-gradient-overlay.top-gradient {
  top: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.story-gradient-overlay.bottom-gradient {
  bottom: 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Tap Zones - below header to prevent tap overlap */
.story-tap-zone {
  position: absolute;
  top: 76px;
  bottom: 84px;
  z-index: 22;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story-tap-prev {
  left: 0;
  width: 35%;
}

.story-tap-next {
  right: 0;
  width: 65%;
}

/* Bottom Content & WhatsApp CTA */
.story-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 28;
  padding: 0.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.story-content-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  pointer-events: auto;
  text-align: center;
}

.story-content-badge {
  display: inline-block;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #D98200;
  background: rgba(217, 130, 0, 0.15);
  border: 1px solid rgba(217, 130, 0, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.story-content-headline {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.story-content-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.story-cta-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #075E34;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(7, 94, 52, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  pointer-events: auto;
}

/* Circular WhatsApp Icon Button - Story Viewer Only (44x44px bottom-right) */
.story-whatsapp-btn {
  position: absolute;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.story-whatsapp-btn:hover {
  background: #1EBE5D;
  transform: scale(1.05);
}

.story-whatsapp-btn:active {
  transform: scale(0.95);
}

.story-whatsapp-btn svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

/* ==========================================================================
   TARIADS PREMIUM RESTRICTED MODALS & POST ACTION SHEET
   ========================================================================== */

.tariads-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tariads-modal-backdrop.is-active {
  display: flex;
}

.tariads-restricted-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: tariadsModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes tariadsModalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tariads-modal-x-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tariads-modal-x-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.tariads-restricted-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #EBF7F0;
  color: #075E34;
  border: 2px solid #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tariads-restricted-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.tariads-restricted-message {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  max-width: 380px;
}

.tariads-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.tariads-primary-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: #075E34;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(7, 94, 52, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}

.tariads-primary-action-btn:hover {
  background: #064E2B;
  transform: translateY(-1px);
}

.tariads-secondary-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: transparent;
  color: #64748B;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tariads-secondary-action-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
}

/* Post Action Sheet Modal (Bottom Sheet on Mobile) */
.tariads-actionsheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.tariads-actionsheet-backdrop.is-active {
  display: flex;
}

.tariads-actionsheet-card {
  position: relative;
  background: #FFFFFF;
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  animation: tariadsSheetUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .tariads-actionsheet-backdrop {
    align-items: center;
    padding: 1rem;
  }
  .tariads-actionsheet-card {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: tariadsModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes tariadsSheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.tariads-sheet-grab-bar {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #CBD5E1;
  margin: 0.25rem auto 0.75rem;
}

.tariads-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #F1F5F9;
}

.tariads-sheet-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
}

.tariads-sheet-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tariads-sheet-option-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  width: 100%;
}

.tariads-sheet-option-item:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.tariads-sheet-option-item:active {
  transform: scale(0.99);
}

.tariads-sheet-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EBF7F0;
  color: #075E34;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tariads-sheet-option-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.tariads-sheet-option-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0F172A;
}

.tariads-sheet-option-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.3;
}

.ad-studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ad-studio-backdrop.is-active {
  display: flex;
}

.ad-studio-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.ad-studio-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ad-studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EBF7F0;
  color: #075E34;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #075E34;
  animation: studioPulse 1.8s infinite;
}

@keyframes studioPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ad-studio-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.15rem;
}

.ad-studio-subheading {
  font-size: 0.82rem;
  color: #64748B;
}

.ad-studio-close-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ad-studio-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Studio Body Layout */
.ad-studio-body {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .ad-studio-body {
    grid-template-columns: 1fr;
  }
  .ad-studio-preview-col {
    order: -1;
  }
}

.studio-form-col {
  display: flex;
  flex-direction: column;
}

.studio-form-group {
  margin-bottom: 0.85rem;
}

.studio-form-row {
  display: flex;
  gap: 0.75rem;
}

.studio-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.req-star {
  color: #DC2626;
}

.studio-input,
.studio-select,
.studio-textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.studio-input:focus,
.studio-select:focus,
.studio-textarea:focus {
  border-color: #075E34;
  box-shadow: 0 0 0 3px rgba(7, 94, 52, 0.12);
}

.studio-template-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}

.studio-template-scroll::-webkit-scrollbar {
  display: none;
}

.studio-template-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  background: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.studio-template-pill:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.studio-template-pill.is-active {
  background: #075E34;
  border-color: #075E34;
  color: #FFFFFF;
}

.studio-media-upload-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.studio-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: #F1F5F9;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: background 0.15s ease;
}

.studio-upload-btn:hover {
  background: #E2E8F0;
}

.studio-upload-hint {
  font-size: 0.75rem;
  color: #64748B;
}

.studio-url-input {
  font-size: 0.78rem;
  color: #64748B;
}

.studio-duration-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  color: #475569;
}

/* Ad Studio Live Preview Phone */
.ad-studio-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.studio-preview-frame {
  width: 100%;
  max-width: 290px;
  background: #0F172A;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.studio-preview-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.preview-progress-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 20;
}

.preview-progress-fill {
  width: 45%;
  height: 100%;
  background: #FFFFFF;
}

.preview-header-bar {
  position: absolute;
  top: 14px;
  left: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-header-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.preview-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #075E34;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFFFFF;
}

.preview-header-text {
  display: flex;
  flex-direction: column;
}

.preview-biz-name {
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}

.preview-biz-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.62rem;
}

.preview-live-tag {
  background: rgba(7, 94, 52, 0.8);
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.preview-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-media-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
}

.preview-bottom-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.preview-tag {
  color: #D98200;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.preview-headline {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.preview-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-cta-button {
  background: #075E34;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

/* Studio Footer */
.ad-studio-footer {
  padding: 0.85rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #F8FAFC;
  border-radius: 0 0 20px 20px;
}

.studio-publish-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ==========================================================================
   TARIADS APPLICATION — UNIFIED DARK AMBIENT THEME
   App-wide Dark Ambiance with Strictly Preserved White Listing Cards & Green CTAs
   ========================================================================== */

/* Outer surfaces & Application background */
body.app-dark-page,
body.home-page,
body.categories-page,
body.saved-page,
body.post-page {
  background-color: #05080E;
  background-image: radial-gradient(circle at 50% 20%, #0F172A 0%, #05080E 100%);
  background-attachment: fixed;
  color: #F8FAFC;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Site Header on Dark Pages */
body.app-dark-page .site-header,
body.home-page .site-header,
body.categories-page .site-header,
body.saved-page .site-header,
body.post-page .site-header {
  background-color: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

body.app-dark-page .brand-title,
body.home-page .brand-title,
body.categories-page .brand-title,
body.saved-page .brand-title,
body.post-page .brand-title {
  color: #FFFFFF;
}

body.app-dark-page .brand-subtitle,
body.home-page .brand-subtitle,
body.categories-page .brand-subtitle,
body.saved-page .brand-subtitle,
body.post-page .brand-subtitle {
  color: #F59E0B;
}

/* Ecosystem Mode Switch (Marketplace ↔ Billboard) on Dark Header */
body.app-dark-page .ecosystem-mode-switch,
body.home-page .ecosystem-mode-switch,
body.categories-page .ecosystem-mode-switch,
body.saved-page .ecosystem-mode-switch,
body.post-page .ecosystem-mode-switch {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.app-dark-page .mode-btn,
body.home-page .mode-btn,
body.categories-page .mode-btn,
body.saved-page .mode-btn,
body.post-page .mode-btn {
  color: #94A3B8;
}

body.app-dark-page .mode-btn:hover,
body.home-page .mode-btn:hover,
body.categories-page .mode-btn:hover,
body.saved-page .mode-btn:hover,
body.post-page .mode-btn:hover {
  color: #FFFFFF;
}

body.app-dark-page .mode-btn.active,
body.home-page .mode-btn.active,
body.categories-page .mode-btn.active,
body.saved-page .mode-btn.active,
body.post-page .mode-btn.active {
  background-color: #075E34;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(7, 94, 52, 0.4);
}

body.app-dark-page .mode-btn#modeBillboard:not(.active):hover,
body.home-page .mode-btn#modeBillboard:not(.active):hover,
body.categories-page .mode-btn#modeBillboard:not(.active):hover,
body.saved-page .mode-btn#modeBillboard:not(.active):hover,
body.post-page .mode-btn#modeBillboard:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #F59E0B;
}

body.app-dark-page .mobile-menu-btn,
body.home-page .mobile-menu-btn,
body.categories-page .mobile-menu-btn,
body.saved-page .mobile-menu-btn,
body.post-page .mobile-menu-btn {
  color: #F8FAFC;
}

/* Mobile Menu Drawer on Dark Pages */
body.app-dark-page .mobile-menu-drawer,
body.home-page .mobile-menu-drawer,
body.categories-page .mobile-menu-drawer,
body.saved-page .mobile-menu-drawer,
body.post-page .mobile-menu-drawer {
  background-color: #0A0F1D;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.6);
}

body.app-dark-page .drawer-mode-switch-container,
body.home-page .drawer-mode-switch-container,
body.categories-page .drawer-mode-switch-container,
body.saved-page .drawer-mode-switch-container,
body.post-page .drawer-mode-switch-container {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.app-dark-page .drawer-mode-label,
body.home-page .drawer-mode-label,
body.categories-page .drawer-mode-label,
body.saved-page .drawer-mode-label,
body.post-page .drawer-mode-label {
  color: #94A3B8;
}

body.app-dark-page .drawer-links-group a,
body.home-page .drawer-links-group a,
body.categories-page .drawer-links-group a,
body.saved-page .drawer-links-group a,
body.post-page .drawer-links-group a {
  color: #CBD5E1;
}

body.app-dark-page .drawer-links-group a:hover,
body.app-dark-page .drawer-links-group a.active,
body.home-page .drawer-links-group a:hover,
body.home-page .drawer-links-group a.active,
body.categories-page .drawer-links-group a:hover,
body.categories-page .drawer-links-group a.active,
body.saved-page .drawer-links-group a:hover,
body.saved-page .drawer-links-group a.active,
body.post-page .drawer-links-group a:hover,
body.post-page .drawer-links-group a.active {
  color: #34D399;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Saved button in Header */
body.app-dark-page .saved-btn,
body.home-page .saved-btn,
body.categories-page .saved-btn,
body.saved-page .saved-btn,
body.post-page .saved-btn {
  color: #94A3B8;
  border-color: rgba(255, 255, 255, 0.14);
}

body.app-dark-page .saved-btn.active,
body.saved-page .saved-btn {
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.4);
  background-color: rgba(7, 94, 52, 0.2);
}

body.app-dark-page .saved-btn svg,
body.saved-page .saved-btn svg {
  stroke: currentColor;
}

/* Home Stories Section */
body.home-page .home-stories-section {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.home-page .story-create-item {
  background: transparent !important;
}

body.home-page .create-ring {
  border: 2px dashed #10B981 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25) !important;
}

body.home-page .create-circle {
  background: rgba(7, 94, 52, 0.4) !important;
  color: #34D399 !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
}

body.home-page .story-create-item:hover .create-circle {
  background: rgba(7, 94, 52, 0.65) !important;
  color: #FFFFFF !important;
}

body.home-page .story-create-item .story-circle-name {
  color: #34D399;
  font-weight: 700;
}

body.home-page .story-circle-name {
  color: #E2E8F0;
  font-weight: 500;
}

body.home-page .story-circle {
  background: #0F172A;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

body.home-page .story-ring-viewed {
  background: rgba(255, 255, 255, 0.22);
}

body.home-page .stories-empty-hint {
  background: rgba(15, 23, 42, 0.65);
  color: #94A3B8;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Discovery Feed Context Bar */
body.home-page .discovery-context-bar {
  padding: 0.35rem 0.25rem 0.6rem;
}

body.home-page .discovery-context-left {
  color: #94A3B8;
  font-size: 0.88rem;
}

body.home-page .discovery-city-badge {
  background: rgba(15, 23, 42, 0.92);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.38);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.home-page .discovery-city-badge:hover {
  background: rgba(7, 94, 52, 0.35);
  border-color: #34D399;
  color: #FFFFFF;
}

body.home-page .discovery-city-badge svg {
  color: #34D399;
  stroke: #34D399;
}

body.home-page .discovery-location-change-link {
  color: #34D399;
  font-weight: 600;
}

body.home-page .discovery-location-change-link:hover {
  color: #6EE7B7;
}

/* ==========================================================================
   STRICT REQUIREMENT: ALL LISTING CARDS MUST REMAIN WHITE
   Across Home, Saved, Categories, and Feed
   ========================================================================== */
body.app-dark-page .listing-post-card,
body.home-page .listing-post-card,
body.categories-page .listing-post-card,
body.saved-page .listing-post-card,
body.post-page .listing-post-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #0F172A !important;
}

body.app-dark-page .listing-post-card:hover,
body.home-page .listing-post-card:hover,
body.categories-page .listing-post-card:hover,
body.saved-page .listing-post-card:hover,
body.post-page .listing-post-card:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

body.app-dark-page .post-publisher-bar,
body.home-page .post-publisher-bar,
body.categories-page .post-publisher-bar,
body.saved-page .post-publisher-bar,
body.post-page .post-publisher-bar {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

body.app-dark-page .publisher-name,
body.home-page .publisher-name,
body.categories-page .publisher-name,
body.saved-page .publisher-name,
body.post-page .publisher-name {
  color: #0F172A !important;
}

body.app-dark-page .publisher-role-badge,
body.home-page .publisher-role-badge,
body.categories-page .publisher-role-badge,
body.saved-page .publisher-role-badge,
body.post-page .publisher-role-badge {
  background-color: #F1F5F9 !important;
  color: #475569 !important;
}

body.app-dark-page .publisher-role-badge.role-business,
body.home-page .publisher-role-badge.role-business,
body.categories-page .publisher-role-badge.role-business,
body.saved-page .publisher-role-badge.role-business,
body.post-page .publisher-role-badge.role-business {
  background-color: #EBF7F0 !important;
  color: #075E34 !important;
}

body.app-dark-page .publisher-subline,
body.home-page .publisher-subline,
body.categories-page .publisher-subline,
body.saved-page .publisher-subline,
body.post-page .publisher-subline {
  color: #475569 !important;
}

body.app-dark-page .post-content,
body.home-page .post-content,
body.categories-page .post-content,
body.saved-page .post-content,
body.post-page .post-content {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

body.app-dark-page .post-title,
body.app-dark-page .post-title a,
body.home-page .post-title,
body.home-page .post-title a,
body.categories-page .post-title,
body.categories-page .post-title a,
body.saved-page .post-title,
body.saved-page .post-title a,
body.post-page .post-title,
body.post-page .post-title a {
  color: #0F172A !important;
}

body.app-dark-page .post-title a:hover,
body.home-page .post-title a:hover,
body.categories-page .post-title a:hover,
body.saved-page .post-title a:hover,
body.post-page .post-title a:hover {
  color: #075E34 !important;
}

body.app-dark-page .post-price-amount,
body.home-page .post-price-amount,
body.categories-page .post-price-amount,
body.saved-page .post-price-amount,
body.post-page .post-price-amount {
  color: #075E34 !important;
}

body.app-dark-page .card-zig-hint,
body.home-page .card-zig-hint,
body.categories-page .card-zig-hint,
body.saved-page .card-zig-hint,
body.post-page .card-zig-hint {
  color: #64748B !important;
}

body.app-dark-page .post-specs-row,
body.home-page .post-specs-row,
body.categories-page .post-specs-row,
body.saved-page .post-specs-row,
body.post-page .post-specs-row {
  background-color: #F8FAFC !important;
  border: 1px solid #F1F5F9 !important;
  color: #475569 !important;
}

body.app-dark-page .save-card-btn,
body.home-page .save-card-btn,
body.categories-page .save-card-btn,
body.saved-page .save-card-btn,
body.post-page .save-card-btn {
  color: #94A3B8;
}

body.app-dark-page .save-card-btn.is-saved,
body.home-page .save-card-btn.is-saved,
body.categories-page .save-card-btn.is-saved,
body.saved-page .save-card-btn.is-saved,
body.post-page .save-card-btn.is-saved {
  color: #E11D48;
}

/* TariAds-Green Action Buttons Preserved */
body.app-dark-page .btn-primary,
body.app-dark-page .post-contact-btn,
body.home-page .btn-primary,
body.home-page .post-contact-btn,
body.categories-page .btn-primary,
body.categories-page .post-contact-btn,
body.saved-page .btn-primary,
body.saved-page .post-contact-btn,
body.post-page .btn-primary,
body.post-page .post-contact-btn {
  background-color: #075E34 !important;
  color: #FFFFFF !important;
  border-color: #075E34 !important;
}

body.app-dark-page .btn-primary:hover,
body.app-dark-page .post-contact-btn:hover,
body.home-page .btn-primary:hover,
body.home-page .post-contact-btn:hover,
body.categories-page .btn-primary:hover,
body.categories-page .post-contact-btn:hover,
body.saved-page .btn-primary:hover,
body.saved-page .post-contact-btn:hover,
body.post-page .btn-primary:hover,
body.post-page .post-contact-btn:hover {
  background-color: #097240 !important;
  border-color: #097240 !important;
}

body.app-dark-page .post-view-btn,
body.home-page .post-view-btn,
body.categories-page .post-view-btn,
body.saved-page .post-view-btn,
body.post-page .post-view-btn {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border: 1px solid #CBD5E1 !important;
}

body.app-dark-page .post-view-btn:hover,
body.home-page .post-view-btn:hover,
body.categories-page .post-view-btn:hover,
body.saved-page .post-view-btn:hover,
body.post-page .post-view-btn:hover {
  border-color: #075E34 !important;
  color: #075E34 !important;
  background-color: #F8FAFC !important;
}

/* Persistent Mobile Bottom Navigation on Dark Pages */
body.app-dark-page .mobile-bottom-nav,
body.home-page .mobile-bottom-nav,
body.categories-page .mobile-bottom-nav,
body.saved-page .mobile-bottom-nav,
body.post-page .mobile-bottom-nav {
  background-color: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
}

body.app-dark-page .bottom-nav-item,
body.home-page .bottom-nav-item,
body.categories-page .bottom-nav-item,
body.saved-page .bottom-nav-item,
body.post-page .bottom-nav-item {
  color: #94A3B8;
}

body.app-dark-page .bottom-nav-item:hover,
body.app-dark-page .bottom-nav-item.active,
body.home-page .bottom-nav-item:hover,
body.home-page .bottom-nav-item.active,
body.categories-page .bottom-nav-item:hover,
body.categories-page .bottom-nav-item.active,
body.saved-page .bottom-nav-item:hover,
body.saved-page .bottom-nav-item.active,
body.post-page .bottom-nav-item:hover,
body.post-page .bottom-nav-item.active {
  color: #34D399;
}

body.app-dark-page .bottom-nav-item.active svg,
body.home-page .bottom-nav-item.active svg,
body.categories-page .bottom-nav-item.active svg,
body.saved-page .bottom-nav-item.active svg,
body.post-page .bottom-nav-item.active svg {
  stroke: #34D399;
}

body.app-dark-page .bottom-nav-item.bnav-post-highlight,
body.home-page .bottom-nav-item.bnav-post-highlight,
body.categories-page .bottom-nav-item.bnav-post-highlight,
body.saved-page .bottom-nav-item.bnav-post-highlight,
body.post-page .bottom-nav-item.bnav-post-highlight {
  color: #34D399;
}

body.app-dark-page .bnav-post-icon,
body.home-page .bnav-post-icon,
body.categories-page .bnav-post-icon,
body.saved-page .bnav-post-icon,
body.post-page .bnav-post-icon {
  background: linear-gradient(135deg, #075E34, #10B981);
  box-shadow: 0 4px 14px rgba(7, 94, 52, 0.5);
}

/* Desktop Icon Navigation on Dark Pages */
body.app-dark-page .desktop-icon-nav .nav-item,
body.home-page .desktop-icon-nav .nav-item,
body.categories-page .desktop-icon-nav .nav-item,
body.saved-page .desktop-icon-nav .nav-item,
body.post-page .desktop-icon-nav .nav-item {
  color: #94A3B8;
}

body.app-dark-page .desktop-icon-nav .nav-item:hover,
body.home-page .desktop-icon-nav .nav-item:hover,
body.categories-page .desktop-icon-nav .nav-item:hover,
body.saved-page .desktop-icon-nav .nav-item:hover,
body.post-page .desktop-icon-nav .nav-item:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

body.app-dark-page .desktop-icon-nav .nav-item.active,
body.home-page .desktop-icon-nav .nav-item.active,
body.categories-page .desktop-icon-nav .nav-item.active,
body.saved-page .desktop-icon-nav .nav-item.active,
body.post-page .desktop-icon-nav .nav-item.active {
  color: #34D399;
  background-color: rgba(7, 94, 52, 0.25);
}

body.app-dark-page .desktop-icon-nav .nav-item.active svg,
body.home-page .desktop-icon-nav .nav-item.active svg,
body.categories-page .desktop-icon-nav .nav-item.active svg,
body.saved-page .desktop-icon-nav .nav-item.active svg,
body.post-page .desktop-icon-nav .nav-item.active svg {
  stroke: #34D399;
}

/* Site Footer on Dark Pages */
body.app-dark-page .site-footer,
body.home-page .site-footer,
body.categories-page .site-footer,
body.saved-page .site-footer,
body.post-page .site-footer {
  background-color: #080C14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

body.app-dark-page .footer-brand h3,
body.app-dark-page .footer-heading,
body.home-page .footer-brand h3,
body.home-page .footer-heading,
body.categories-page .footer-brand h3,
body.categories-page .footer-heading,
body.saved-page .footer-brand h3,
body.saved-page .footer-heading,
body.post-page .footer-brand h3,
body.post-page .footer-heading {
  color: #FFFFFF;
}

body.app-dark-page .footer-links a,
body.home-page .footer-links a,
body.categories-page .footer-links a,
body.saved-page .footer-links a,
body.post-page .footer-links a {
  color: #94A3B8;
}

body.app-dark-page .footer-links a:hover,
body.home-page .footer-links a:hover,
body.categories-page .footer-links a:hover,
body.saved-page .footer-links a:hover,
body.post-page .footer-links a:hover {
  color: #FFFFFF;
}

body.app-dark-page .footer-bottom,
body.home-page .footer-bottom,
body.categories-page .footer-bottom,
body.saved-page .footer-bottom,
body.post-page .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   APP SCREENS: COMPACT APP-HEADER SUB-BAR
   ========================================================================== */
.app-screen-subbar {
  padding: 1.15rem 0 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-screen-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-screen-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.app-screen-subtext {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 0.2rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SCREEN 1: CATEGORIES — LOCKED 2-COLUMN DESIGN & BROWSING HUB
   ========================================================================== */
.categories-hub-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
  box-sizing: border-box;
  min-width: 0;
}

/* Heading section */
.categories-header-block {
  margin-bottom: 0.85rem;
}

.categories-main-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.categories-sub-title {
  font-size: 0.88rem;
  color: #94A3B8;
  margin: 0;
  font-weight: 400;
}

/* Category Search field */
.category-search-bar {
  position: relative;
  margin-bottom: 1.15rem;
}

.category-search-input {
  width: 100%;
  height: 46px;
  background: #131D2D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0 2.5rem 0 2.75rem;
  font-size: 0.92rem;
  color: #FFFFFF;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.category-search-input::placeholder {
  color: #64748B;
}

.category-search-input:focus {
  border-color: #10B981;
  background: #172338;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.category-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94A3B8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.category-search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Category Grid - Exactly 2 Columns */
.category-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 350px) {
  .category-grid-2col {
    gap: 0.5rem;
  }
}

/* Locked Category Card: Dark blue-grey surface, subtle border, rounded corners */
.category-locked-card {
  background: #131D2D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.category-locked-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.category-locked-card:active {
  transform: scale(0.98);
}

.category-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0A0F1D;
  position: relative;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-locked-card:hover .category-card-img {
  transform: scale(1.04);
}

.category-card-info {
  padding: 8px 2px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.category-card-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  flex: 1;
}

.category-card-desc {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

.category-card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(7, 94, 52, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.category-locked-card:hover .category-card-arrow {
  background: #075E34;
  border-color: #10B981;
  color: #FFFFFF;
  transform: translateX(2px);
}

/* Category Search Empty State */
.category-search-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #131D2D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-top: 0.75rem;
  color: #94A3B8;
}

.category-search-empty p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   POPULAR PRODUCTS (TOP SELLING) SECTION ON CATEGORIES HUB
   ========================================================================== */
.category-popular-products-section {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-popular-products-section .section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.category-popular-products-section .section-heading-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-popular-products-section .section-icon {
  color: #10B981;
  display: flex;
  align-items: center;
}

.category-popular-products-section .section-title-sm {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

.category-popular-products-section .section-see-all-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #34D399;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.category-popular-products-section .section-see-all-link:hover {
  color: #6EE7B7;
  text-decoration: underline;
}

/* ==========================================================================
   FUTURISTIC CATEGORY COMMAND BAR & 2-COLUMN EXPLORER GRID
   ========================================================================== */
.cat-browsing-view {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cat-browsing-view.is-active {
  display: block;
}

.cat-hub-view.is-hidden {
  display: none;
}

/* When inside-category browsing is active in categories.html, remove redundant outer padding */
.categories-hub-container.is-browsing {
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

/* Standalone category explorer page mounts */
#propertyExplorerMount,
#vehicleExplorerMount,
#productExplorerMount,
#serviceExplorerMount,
#agricultureExplorerMount,
#miningExplorerMount {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: block;
}

.category-explorer-container {
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  padding: 0.75rem 0.5rem calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: visible !important;
}

@media (max-width: 480px) {
  .category-explorer-container {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    padding-top: 0.65rem !important;
  }
}

@media (max-width: 360px) {
  .category-explorer-container {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    padding-top: 0.5rem !important;
  }
}

@media (max-width: 330px) {
  .category-explorer-container {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    padding-top: 0.45rem !important;
  }
}

/* Compact Category Command Bar */
.cat-command-bar {
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 360px) {
  .cat-command-bar {
    padding: 0.5rem 0.5rem;
    gap: 0.45rem;
    border-radius: 12px;
  }
}

.cat-command-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  gap: 0.5rem;
}

.cat-command-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #34D399;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(7, 94, 52, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  transition: all 0.15s ease;
  min-height: 30px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.cat-command-back-link:hover {
  background: #075E34;
  border-color: #10B981;
  color: #FFFFFF;
}

.cat-command-title-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.cat-command-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-command-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Category Search Row */
.cat-command-search-row {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.cat-command-search-input {
  width: 100% !important;
  height: 38px;
  background: #131D2D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0 2.2rem 0 2.45rem;
  font-size: 0.84rem;
  color: #FFFFFF;
  outline: none;
  box-sizing: border-box !important;
  min-width: 0 !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cat-command-search-input::placeholder {
  color: #64748B;
}

.cat-command-search-input:focus {
  border-color: #10B981;
  background: #172338;
}

.cat-command-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-command-search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94A3B8;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all 0.15s ease;
}

.cat-command-search-clear:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Controls: Horizontal Subcategory Filter Chips & Sort */
.cat-command-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.cat-command-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1 1 0%;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding-bottom: 2px;
  padding-top: 2px;
}

.cat-command-chips-scroll::-webkit-scrollbar {
  display: none;
}

.cat-command-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.68rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  min-height: 28px;
  box-sizing: border-box;
}

.cat-command-chip:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
}

.cat-command-chip.active {
  background: #075E34;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 2px 6px rgba(7, 94, 52, 0.35);
}

.cat-command-sort-select {
  height: 28px;
  background: #131D2D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #CBD5E1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 0.35rem;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  max-width: 88px;
}

/* 2-Column Responsive Image-First Listing Grid: Strict 2 columns spanning full available width */
.category-explorer-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .category-explorer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}

@media (min-width: 1024px) {
  .category-explorer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .category-explorer-grid {
    gap: 0.5rem;
  }
}

@media (max-width: 360px) {
  .category-explorer-grid {
    gap: 0.4rem;
  }
}

/* White Listing Card Surface: Constrained to its grid track and shrinkable */
.category-explorer-card,
.listing-post-card,
.tari-product-card {
  background: #FFFFFF !important;
  border-radius: 12px !important;
  border: 1px solid #E2E8F0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.category-explorer-card:hover,
.listing-post-card:hover,
.tari-product-card:hover {
  border-color: #10B981 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Controlled 4:3 Aspect Ratio Image Frame on Neutral/Dark Stage */
.cat-card-media-box,
.post-media-wrap {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 4 / 3;
  background-color: #0B1120 !important;
  overflow: hidden !important;
  display: block !important;
  text-decoration: none;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

.cat-card-img,
.post-hero-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Isolated Products: contain on subtle dark stage with padding so entire item & edges are 100% visible */
.cat-card-media-box.media-contain .cat-card-img,
.post-media-wrap.media-contain .post-hero-image {
  object-fit: contain !important;
  object-position: center !important;
  padding: 8px !important;
  background-color: #0B1120 !important;
}

/* Lifestyle / Vehicles / Room sets: cover with centered composition */
.cat-card-media-box.media-cover .cat-card-img,
.post-media-wrap.media-cover .post-hero-image {
  object-fit: cover !important;
  object-position: center !important;
  background-color: #0B1120 !important;
}

/* Designed Fallback for Missing or Broken Images */
.cat-card-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0B1120;
  color: #64748B;
  gap: 3px;
  padding: 0.5rem;
  text-align: center;
  box-sizing: border-box;
}

.cat-card-fallback .fallback-icon-wrap {
  opacity: 0.75;
}

.cat-card-fallback .fallback-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
}

/* Discreet Save Button */
.cat-card-save-btn,
.save-card-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}

.cat-card-save-btn svg,
.save-card-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cat-card-save-btn:hover,
.save-card-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.08);
}

.cat-card-save-btn.is-saved,
.save-card-btn.is-saved {
  color: #EF4444;
}

.cat-card-save-btn.is-saved svg,
.save-card-btn.is-saved svg {
  fill: #EF4444;
  stroke: #EF4444;
}

/* Card Content Body: Fully constrained with strict 5-level hierarchy */
.cat-card-body,
.listing-post-card .post-content {
  padding: 0.65rem 0.75rem 0.7rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1;
  justify-content: space-between;
  gap: 0.2rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
}

@media (max-width: 360px) {
  .cat-card-body,
  .listing-post-card .post-content {
    padding: 0.5rem 0.6rem 0.6rem !important;
    gap: 0.15rem;
  }
}

/* 2. Product Title (bold, confident, 2-line clamp) */
.cat-card-title,
.post-title {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  min-height: 2.1rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 360px) {
  .cat-card-title,
  .post-title {
    font-size: 0.76rem !important;
    min-height: 1.9rem;
  }
}

.cat-card-title a,
.post-title a {
  color: #0F172A !important;
  text-decoration: none;
  display: inline;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.cat-card-title a:hover,
.post-title a:hover {
  color: #075E34 !important;
}

/* 3. Price (Clean, prominent, emerald accent) */
.cat-card-price-row,
.post-price-line {
  display: flex !important;
  align-items: baseline;
  gap: 3px;
  line-height: 1.2;
  margin-top: 0.1rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.cat-card-price,
.post-price-amount {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #059669 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  min-width: 0 !important;
  flex-shrink: 0;
  max-width: 100%;
}

@media (max-width: 360px) {
  .cat-card-price,
  .post-price-amount {
    font-size: 0.88rem !important;
  }
}

.cat-card-period {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  flex: 1 1 0%;
  min-width: 0 !important;
  max-width: 100%;
}

/* 4. One short, useful supporting line (only when available) */
.cat-card-specs,
.post-specs-row {
  font-size: 0.73rem !important;
  color: #64748B !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  font-weight: 500;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 360px) {
  .cat-card-specs,
  .post-specs-row {
    font-size: 0.66rem !important;
  }
}

.cat-card-specs span,
.post-specs-row span {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

/* 5. Seller identity or restrained action control */
.cat-card-footer,
.post-actions-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 0.4rem !important;
  border-top: 1px solid #F1F5F9 !important;
  margin-top: 0.25rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.cat-card-seller {
  display: flex !important;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  flex: 1 1 0%;
  min-width: 0 !important;
  max-width: 78%;
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .cat-card-seller {
    font-size: 0.66rem;
  }
}

.cat-card-seller span,
.cat-card-seller .seller-name {
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  min-width: 0 !important;
  max-width: 100%;
  display: block;
}

.cat-card-wa-btn,
.post-contact-btn {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  background: #EBF7F0 !important;
  color: #075E34 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  padding: 0 !important;
  border: none !important;
}

.cat-card-wa-btn:hover,
.post-contact-btn:hover {
  background: #075E34 !important;
  color: #FFFFFF !important;
  transform: scale(1.08);
}

.cat-card-wa-btn svg,
.post-contact-btn svg {
  width: 13px !important;
  height: 13px !important;
}

.cat-card-arrow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  padding: 2px;
  transition: color 0.15s ease;
}

.cat-card-arrow-link:hover {
  color: #075E34;
}

/* Compact Explorer Empty State */
.cat-explorer-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #94A3B8;
  margin: 1rem 0 2.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   SCREEN 2: SAVED — PERSONAL SHORTLIST
   ========================================================================== */
.saved-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
}

.saved-filter-bar::-webkit-scrollbar {
  display: none;
}

.saved-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  min-height: 40px;
}

.saved-filter-pill:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.saved-filter-pill.active {
  background: #075E34;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 2px 8px rgba(7, 94, 52, 0.4);
}

.saved-filter-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.saved-empty-container {
  text-align: center;
  padding: 3.5rem 1.25rem;
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  max-width: 480px;
  margin: 1.5rem auto 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.saved-empty-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(7, 94, 52, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
}

.saved-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.saved-empty-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SCREEN 3: POST — FOCUSED LISTING-CREATION HUB
   ========================================================================== */
.post-creation-header {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-type-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

@media (max-width: 860px) {
  .post-type-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

@media (max-width: 440px) {
  .post-type-selector-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.post-type-card-btn {
  background: #0A0F1D;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 54px;
  position: relative;
  overflow: hidden;
}

.post-type-card-btn:hover {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.post-type-card-btn.active {
  border-color: #10B981;
  background: rgba(7, 94, 52, 0.22);
  box-shadow: 0 0 0 1px #10B981, 0 4px 16px rgba(7, 94, 52, 0.3);
}

.post-type-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.post-type-card-btn.active .post-type-icon-box {
  background: #075E34;
  color: #FFFFFF;
}

.post-type-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-type-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.post-type-desc {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-form-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 2rem;
  color: #0F172A;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  margin-bottom: 4rem;
}

@media (max-width: 640px) {
  .post-form-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }
}

.post-form-header {
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-form-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.post-form-step-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #075E34;
  background: #EBF7F0;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.post-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .post-form-grid-2,
  .post-form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}

.post-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.35rem;
}

.post-input-control {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0F172A;
  background-color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.post-input-control:focus {
  border-color: #075E34;
  box-shadow: 0 0 0 3px rgba(7, 94, 52, 0.15);
}

.post-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
  user-select: none;
  min-height: 44px;
}

.post-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #075E34;
  cursor: pointer;
}

.post-submit-btn {
  width: 100%;
  min-height: 48px;
  background: #075E34;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 3px 12px rgba(7, 94, 52, 0.35);
  transition: all 0.15s ease;
  margin-top: 1.5rem;
}

.post-submit-btn:hover {
  background: #097240;
  transform: translateY(-1px);
}

.post-submit-btn:active {
  transform: scale(0.98);
}





/* ==========================================================================
   TARIADS — PROGRESSIVE WEB APP (PWA) INSTALL SHEET & UPDATE TOAST
   ========================================================================== */

.tari-pwa-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.tari-pwa-sheet.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .tari-pwa-sheet {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}

.pwa-sheet-card {
  position: relative;
  background: #121212;
  border: 1px solid #222222;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-sizing: border-box;
}

.pwa-sheet-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pwa-sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.pwa-sheet-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 2rem;
}

.pwa-sheet-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(7, 94, 52, 0.35);
}

.pwa-sheet-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pwa-sheet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

.pwa-sheet-subtitle {
  font-size: 0.825rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.35;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: #D1D5DB;
  line-height: 1.35;
}

.pwa-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #075E34;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.pwa-btn-secondary {
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pwa-btn-secondary:hover {
  color: #FFFFFF;
}

.pwa-btn-primary {
  background: #075E34;
  color: #FFFFFF;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pwa-btn-primary:hover {
  background: #097240;
}

.pwa-btn-primary:active {
  transform: scale(0.98);
}

/* Background Update Notification Banner */
.pwa-update-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: #141414;
  border: 1px solid #075E34;
  color: #F3F4F6;
  border-radius: 999px;
  padding: 0.4rem 0.65rem 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 0.825rem;
  animation: pwaSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.pwa-update-content {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pwa-update-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.pwa-update-btn {
  background: #075E34;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pwa-update-btn:hover {
  background: #097240;
}

/* ==========================================================================
   TARIADS — DEDICATED LISTING DETAIL & DIRECT CONTACT DESIGN SYSTEM
   Dark Surface Styling · Contained Media · Direct Business Action
   ========================================================================== */

/* Sponsored Tags (Meta Badge on Home Feed & Category Explorer) */
.social-post-sponsored-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
}

.cat-card-sponsored-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
}

/* Dedicated Listing Detail Page Layout */
.listing-detail-page {
  background-color: #000000;
  color: #F8FAFC;
  min-height: 100vh;
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
}

.listing-detail-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* Detail Navigation Row */
.detail-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.detail-back-btn:hover {
  background: #1E293B;
  color: #FFFFFF;
}

.detail-breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-breadcrumb-path a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-breadcrumb-path a:hover {
  color: #34D399;
}

.detail-bc-sep {
  color: #475569;
}

.detail-bc-current {
  color: #E2E8F0;
  font-weight: 500;
}

/* 2-Column Responsive Layout */
.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .listing-detail-layout {
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
  }
}

/* Left Main Column */
.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Media Card (Contained, Centered, No Stretch) */
.detail-media-card {
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detail-image-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  background: #05080E;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-hero-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-save-floating-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  z-index: 10;
}

.detail-save-floating-btn:active {
  transform: scale(0.9);
}

.detail-thumbs-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #070B14;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-thumb-btn {
  width: 64px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: #0F172A;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.detail-thumb-btn.active {
  border-color: #10B981;
}

.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Card */
.detail-info-card {
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.detail-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.detail-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detail-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

.detail-sponsored-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.detail-condition-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  background: #1E293B;
  padding: 3px 8px;
  border-radius: 6px;
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-action-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.detail-action-icon-btn:hover {
  background: #1E293B;
  color: #FFFFFF;
}

/* Title & Price */
.detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.detail-price-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.detail-price-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: #10B981;
}

.detail-price-period {
  font-size: 0.9rem;
  color: #94A3B8;
  font-weight: 500;
}

.detail-zig-guide {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}

.detail-location-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: #94A3B8;
}

.detail-id-text {
  color: #64748B;
  font-family: monospace;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.detail-section-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #E2E8F0;
  margin: 0;
}

.detail-description-text {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.65;
  margin: 0;
  white-space: pre-line;
}

.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #080D1A;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #CBD5E1;
}

/* Verified Guarantee Box */
.detail-verified-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(7, 94, 52, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.detail-verified-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-verified-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #34D399;
}

.detail-verified-body {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.4;
  margin-top: 2px;
}

/* Right Sidebar: Seller & Direct Contact Actions */
.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-seller-card {
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.detail-seller-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.detail-seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-seller-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-seller-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-seller-name {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-seller-role {
  font-size: 0.76rem;
  color: #94A3B8;
}

.detail-seller-loc {
  font-size: 0.74rem;
  color: #64748B;
}

/* Direct Action Buttons */
.detail-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.detail-btn-wa {
  background: #075E34;
  color: #FFFFFF;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.detail-btn-wa:hover {
  background: #097240;
  transform: translateY(-1px);
}

.detail-btn-tel {
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-btn-tel:hover {
  background: #334155;
}

.detail-btn-link {
  background: #0284C7;
  color: #FFFFFF;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.detail-btn-link:hover {
  background: #0369A1;
}

/* No Direct Contact Graceful Box */
.detail-no-contact-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #060911;
  border: 1px solid #1E293B;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

.detail-no-contact-notice strong {
  display: block;
  color: #E2E8F0;
  margin-bottom: 2px;
}

.detail-no-contact-notice p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.78rem;
}

.detail-direct-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: #94A3B8;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-safety-card {
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.detail-safety-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #F59E0B;
  margin-bottom: 0.5rem;
}

.detail-safety-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.76rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* Sticky Mobile Bottom Contact Bar */
.detail-mobile-sticky-bar {
  display: none;
}

@media (max-width: 859px) {
  .detail-mobile-sticky-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
  }

  .detail-sticky-price-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .detail-sticky-label {
    font-size: 0.68rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 600;
  }

  .detail-sticky-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #10B981;
    white-space: nowrap;
  }

  .detail-sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .detail-sticky-save-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .detail-sticky-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #075E34;
    color: #FFFFFF;
    border: 1px solid rgba(52, 211, 153, 0.3);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 16px;
    height: 42px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
  }
}
/* ==========================================================================
   TARIADS — DISCOVER REELS DESIGN SYSTEM
   Full-Screen Commercial Vertical Video & Motion Photo Discovery
   ========================================================================== */

:root {
  --reel-primary: #075E34;
  --reel-primary-hover: #097240;
  --reel-accent: #D98200;
  --reel-gold: #F59E0B;
  --reel-bg-dark: #000000;
  --reel-overlay-bg: rgba(0, 0, 0, 0.45);
  --reel-scrim: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.92) 100%);
}

/* Page Reset for Discover Reels */
body.reels-page {
  background-color: #05080E;
  color: #FFFFFF;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: 100vw;
  position: fixed;
  inset: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* Outer Desktop Frame */
.reels-stage-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  background: radial-gradient(circle at 50% 30%, #0F172A 0%, #05080E 100%);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Ambient Glow for Desktop */
.reels-desktop-ambient {
  display: none;
}

@media (min-width: 900px) {
  .reels-desktop-ambient {
    display: block;
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 94, 52, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* The Main Reels Mobile Viewport Frame */
.reels-app-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .reels-app-viewport {
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  }
}

/* Top Navigation Overlay */
.reels-top-bar {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #080C14;
  background: linear-gradient(180deg, #0A0F1D 0%, #060910 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 6px;
  box-sizing: border-box;
}

.reels-top-bar * {
  pointer-events: auto;
}

.reels-top-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.reels-brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #FFFFFF;
}

.reels-brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #075E34, #0A7E46);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(7, 94, 52, 0.4);
}

.reels-brand-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

.reels-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(7, 94, 52, 0.85);
  border: 1px solid rgba(168, 218, 181, 0.4);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reels-live-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 6px #34D399;
}

.reels-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reels-top-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.reels-top-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.reels-create-ad-btn {
  background: linear-gradient(135deg, #075E34 0%, #0A7E46 100%);
  color: #FFFFFF;
  border: 1px solid rgba(168, 218, 181, 0.4);
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(7, 94, 52, 0.4);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.reels-create-ad-btn:active {
  transform: scale(0.95);
}

/* Category Filter Bar */
.reels-categories-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 6px;
  margin: 0 -4px;
}

.reels-categories-bar::-webkit-scrollbar {
  display: none;
}

.reels-cat-pill {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.reels-cat-pill.active {
  background: #FFFFFF;
  color: #075E34;
  border-color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Slide-Down Search Overlay */
.reels-search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 40;
  padding: 12px 14px;
  transform: translateY(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reels-search-overlay.is-open {
  transform: translateY(0);
}

.reels-search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
}

.reels-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.88rem;
}

.reels-search-input::placeholder {
  color: #94A3B8;
}

.reels-search-clear-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
}

.reels-search-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
}

.reels-search-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94A3B8;
}

/* Reels Main Feed Container (Vertical Snap Scroll) */
.reels-feed-container {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  background-color: #000000;
}

.reels-feed-container::-webkit-scrollbar {
  display: none;
}

/* Reel Slide Item */
.reel-item {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Compact Audio Attribution Row (Positioned below Category Nav & above Reel Media) */
.reel-audio-bar-row {
  width: 100%;
  flex-shrink: 0;
  background: #080C14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 28px;
  z-index: 20;
}

.reel-audio-bar-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 500;
}

.reel-audio-bar-content.is-clickable {
  cursor: pointer;
  transition: color 0.15s ease;
}

.reel-audio-bar-content.is-clickable:hover,
.reel-audio-bar-content.is-clickable:active {
  color: #FFFFFF;
}

.reel-audio-bar-icon {
  flex-shrink: 0;
  color: #34D399;
}

.reel-audio-bar-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #CBD5E1;
  letter-spacing: 0.01em;
}

/* Main Reel Media Stage (Occupies remaining height above bottom nav) */
.reel-media-stage {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

/* Reel Media Wrapper */
.reel-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.reel-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Photo Reel Carousel & Ken Burns Animation */
.reel-photo-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.reel-photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow: hidden;
}

.reel-photo-slide.active {
  opacity: 1;
  z-index: 2;
}

.reel-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
}

/* Ken Burns Motion Pan/Zoom */
@keyframes kenBurnsSlow {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.03) translate(1%, 0.5%);
  }
}

.reel-photo-slide.active.ken-burns-anim img {
  animation: kenBurnsSlow 12s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .reel-photo-slide.active.ken-burns-anim img {
    animation: none;
  }
}

/* Photo Slide Navigation Tap Zones */
.photo-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 5;
  cursor: pointer;
}

.photo-tap-prev {
  left: 0;
}

.photo-tap-next {
  right: 0;
}

/* Photo Counter Indicator (e.g. 1/3) */
.reel-photo-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  z-index: 20;
}

/* Photo Slide Progress Bars */
.reel-photo-indicators {
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  z-index: 20;
}

.photo-indicator-bar {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.photo-indicator-bar.active {
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Scrim Gradient Overlay for Maximum Text Contrast */
.reel-scrim-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--reel-scrim);
  pointer-events: none;
  z-index: 10;
}

/* Double-Tap Heart Animation */
.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90px;
  height: 90px;
  color: #EF4444;
  fill: #EF4444;
  pointer-events: none;
  z-index: 25;
  filter: drop-shadow(0 6px 14px rgba(239, 68, 68, 0.6));
  opacity: 0;
}

@keyframes heartBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.8;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.double-tap-heart.burst {
  animation: heartBurst 0.75s ease-out forwards;
}

/* Play / Pause Flash & Persistent Paused Play Icon */
.play-pause-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.play-pause-flash.flash {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Centered Persistent Play Icon when Paused */
.media-paused-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-paused-play-icon svg {
  margin-left: 4px; /* Optically center play triangle */
}

.reel-item.is-paused .media-paused-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Action Rail (Right Side) — Minimal & Spacious */
.reel-action-rail {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 22;
}

.rail-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.rail-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.rail-btn:active {
  transform: scale(0.88);
}

.rail-btn.is-saved {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.rail-btn.rail-whatsapp-btn {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.rail-btn.rail-whatsapp-btn:hover {
  background: #20BA5A;
}

/* Sound Button Highlight when Paused (Temporarily Reveal/Emphasize) */
.reel-item.is-paused .rail-sound-btn {
  border-color: #34D399;
  background: rgba(7, 94, 52, 0.4);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.5);
}

/* Sound Wave Animation Pill in Action Rail or Top Bar */
.reel-sound-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.reel-sound-wave span {
  width: 2px;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}

.reel-sound-wave span:nth-child(2) {
  animation-delay: 0.2s;
  height: 60%;
}
.reel-sound-wave span:nth-child(3) {
  animation-delay: 0.4s;
  height: 80%;
}

@keyframes waveBar {
  0% {
    height: 25%;
  }
  100% {
    height: 100%;
  }
}

/* Bottom Information Overlay — Clean, Uncluttered, Advert-Focused */
.reel-info-overlay {
  position: absolute;
  left: 0;
  right: 64px;
  bottom: 12px;
  padding: 0 16px 4px;
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.reel-info-overlay * {
  pointer-events: auto;
}

/* Publisher Profile Lockup */
.reel-business-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-business-avatar-box {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #10B981;
  background: #1E293B;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.reel-business-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-business-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reel-business-name-lockup {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reel-business-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-verified-icon {
  color: #34D399;
  fill: #34D399;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.reel-business-meta {
  font-size: 0.68rem;
  color: #CBD5E1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

/* Headline */
.reel-headline-row {
  margin-top: 2px;
}

.reel-headline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.reel-headline-link {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s ease;
}

.reel-headline-link:active {
  opacity: 0.82;
}

.reel-headline-arrow {
  flex-shrink: 0;
  opacity: 0.75;
  color: #34D399;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.reel-headline-link:hover .reel-headline-arrow {
  transform: translateX(2px);
  opacity: 1;
}

/* Commercial Highlights Strip (Price, Location & Description Trigger) */
.reel-highlights-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.reel-price-badge {
  background: #075E34;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 218, 181, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.01em;
}

.reel-location-pill {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Unobtrusive "Description" Trigger */
.reel-desc-trigger {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.reel-desc-trigger:hover, .reel-desc-trigger:active {
  background: #FFFFFF;
  color: #075E34;
  border-color: #FFFFFF;
}

/* Description Sheet & Highlights Audio Pill */
.reel-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  cursor: default;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.reel-audio-pill.is-clickable {
  cursor: pointer;
}

.reel-audio-pill.is-clickable:hover,
.reel-audio-pill.is-clickable:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.reel-audio-pill svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.reel-audio-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* Video Playback Progress Bar */
.reel-playback-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 25;
}

.reel-playback-bar {
  height: 100%;
  width: 0%;
  background: #34D399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
  transition: width 0.1s linear;
}

/* Persistent Bottom Navigation Dark Theme Integration (Anchored to Viewport Bottom) */
body.reels-page .mobile-bottom-nav {
  position: relative !important;
  flex-shrink: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  background: #0A0F1D !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  z-index: 35 !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5) !important;
  margin: 0 !important;
  top: auto !important;
  bottom: 0 !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

body.reels-page .mobile-bottom-nav .bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 100% !important;
  color: #94A3B8 !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  position: relative !important;
  transition: color 0.15s ease !important;
  padding: 0 4px !important;
}

body.reels-page .mobile-bottom-nav .bottom-nav-item span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  line-height: 1.15 !important;
}

body.reels-page .mobile-bottom-nav .bottom-nav-item:hover,
body.reels-page .mobile-bottom-nav .bottom-nav-item.active {
  color: #34D399 !important;
}

body.reels-page .mobile-bottom-nav .bottom-nav-item.active .bnav-icon {
  stroke: #34D399 !important;
  stroke-width: 2.4 !important;
}

body.reels-page .mobile-bottom-nav .bottom-nav-item .bnav-icon {
  flex-shrink: 0 !important;
  transition: transform 0.15s ease !important;
}

body.reels-page .mobile-bottom-nav .bottom-nav-item:active .bnav-icon {
  transform: scale(0.9) !important;
}

body.reels-page .mobile-bottom-nav .bnav-post-highlight .bnav-post-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #075E34, #0A7E46) !important;
  border: 1px solid rgba(168, 218, 181, 0.4) !important;
  box-shadow: 0 2px 8px rgba(7, 94, 52, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
}

/* Compact Advert Description Drawer / Sheet */
.reels-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
}

.reels-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reels-sheet-drawer {
  width: 100%;
  max-height: 70vh;
  background: #0F172A;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.reels-sheet-backdrop.is-open .reels-sheet-drawer {
  transform: translateY(0);
}

.reels-sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 10px auto 4px;
}

.reels-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desc-sheet-publisher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desc-sheet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #10B981;
  object-fit: cover;
}

.desc-sheet-pub-info {
  display: flex;
  flex-direction: column;
}

.desc-sheet-pub-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.desc-sheet-pub-cat {
  font-size: 0.7rem;
  color: #94A3B8;
  letter-spacing: 0.03em;
}

.reels-sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.reels-sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.desc-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desc-sheet-headline {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0;
}

.desc-sheet-highlights {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.desc-sheet-description-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #E2E8F0;
  white-space: pre-line;
}

.desc-sheet-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.desc-sheet-cta-btn {
  flex: 1;
  background: linear-gradient(135deg, #075E34 0%, #0A7E46 100%);
  color: #FFFFFF;
  border: 1px solid rgba(168, 218, 181, 0.4);
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 94, 52, 0.45);
  transition: transform 0.15s ease;
}

.desc-sheet-cta-btn:active {
  transform: scale(0.98);
}

.desc-sheet-wa-btn {
  background: #25D366;
  color: #FFFFFF;
  border: 1px solid #25D366;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease;
}

.desc-sheet-wa-btn:active {
  transform: scale(0.98);
}

/* Toast Message Overlay */
.reels-toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 218, 181, 0.4);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reels-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Empty State */
.reels-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 24px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 15;
}

.reels-empty-state h3 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
}

.reels-empty-state p {
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 280px;
}

/* ==========================================================================
   TARIADS DISCOVER — REELS SECTION & DEDICATED VIEWER OVERLAY
   Mobile-first portrait preview cards + full-screen responsive video viewer
   ========================================================================== */

/* Discover Reels Container & Header */
.discover-reels-section {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1rem 5rem;
  box-sizing: border-box;
}

.discover-reels-header {
  margin-bottom: 1.25rem;
}

.discover-reels-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.discover-reels-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.discover-reels-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.discover-reels-subtitle {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.4;
}

/* Mobile-First Portrait Preview Grid */
.reels-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
}

@media (min-width: 640px) {
  .reels-preview-grid {
    gap: 1.15rem;
  }
}

.reel-preview-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #121212;
  border: 1px solid #222222;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.reel-preview-card:hover {
  transform: translateY(-2px);
  border-color: #34D399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.reel-preview-card:active {
  transform: scale(0.98);
}

/* Video / Thumbnail in Card */
.reel-card-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
}

.reel-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrim Gradient for Legibility */
.reel-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Center Play Indicator */
.reel-card-play-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.reel-preview-card:hover .reel-card-play-badge {
  background: #075E34;
  border-color: #34D399;
  transform: scale(1.1);
}

/* Card Info Block (Bottom) */
.reel-card-info {
  position: relative;
  z-index: 2;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reel-card-business-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.reel-card-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: #D1D5DB;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   DEDICATED REEL VIEWER OVERLAY
   Responsive video container, clear close (X), native controls, no distortion
   ========================================================================== */
.reel-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.reel-viewer-overlay.is-active {
  display: flex;
}

body.reel-viewer-active {
  overflow: hidden !important;
}

/* Viewer Top Bar */
.reel-viewer-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  pointer-events: auto;
}

.reel-viewer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
}

.reel-viewer-index-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E5E7EB;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.reel-viewer-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Clear Close Button (X) */
.reel-viewer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  z-index: 40;
}

.reel-viewer-close-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: #EF4444;
  transform: scale(1.08);
}

.reel-viewer-close-btn:active {
  transform: scale(0.92);
}

/* Video Stage (Responsive, Centered, No Stretch) */
.reel-viewer-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.reel-viewer-video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #000000;
  display: block;
  margin: auto;
}

/* Big Tap Play / Pause Flash */
.reel-viewer-tap-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 25;
}

.reel-viewer-tap-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Loading Buffering Spinner */
.reel-viewer-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #10B981;
  border-radius: 50%;
  animation: reelSpin 0.8s linear infinite;
  display: none;
  pointer-events: none;
  z-index: 24;
}

.reel-viewer-spinner.is-visible {
  display: block;
}

@keyframes reelSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video Error State Overlay */
.reel-viewer-error-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid #333333;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: #FFFFFF;
  max-width: 290px;
  width: 85%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.reel-viewer-error-box.is-visible {
  display: flex;
}

.reel-viewer-error-title {
  font-size: 1rem;
  font-weight: 700;
  color: #F87171;
  margin: 0;
}

.reel-viewer-error-desc {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.4;
}

.reel-viewer-retry-btn {
  background: #075E34;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.15s ease;
}

.reel-viewer-retry-btn:hover {
  background: #097240;
}

/* Viewer Bottom Controls & Business Lockup */
.reel-viewer-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: auto;
}

/* Progress Scrubber Bar */
.reel-viewer-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.reel-viewer-progress-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.reel-viewer-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #10B981;
  border-radius: 999px;
  transition: width 0.1s linear;
}

.reel-viewer-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #D1D5DB;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Playback Control Buttons (Play/Pause, Sound, Prev, Next) */
.reel-viewer-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.reel-viewer-left-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reel-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.reel-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.reel-ctrl-btn:active {
  transform: scale(0.92);
}

.reel-viewer-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Business Lockup in Viewer */
.reel-viewer-business-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reel-viewer-publisher {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.reel-viewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
}

.reel-viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-viewer-business-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reel-viewer-business-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-viewer-business-sub {
  font-size: 0.76rem;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-viewer-cta-btn {
  background: #075E34;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.reel-viewer-cta-btn:hover {
  background: #097240;
}


/* ==========================================================================
   APPROVED REFERENCE REELS VIEWER LAYOUT
   Top: Business Identity + Sound + Close (X)
   Center: Full-Screen Contained Video (Uninterrupted Focus)
   Bottom: Caption + Compact Horizontal Outline Actions
   ========================================================================== */

.reels-fullscreen-stage {
  position: relative;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.reels-active-video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #000000;
  display: block;
  margin: auto;
}

/* Tap Flash Feedback */
.reels-tap-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 25;
}

.reels-tap-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Buffering Spinner */
.reels-buffering-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #10B981;
  border-radius: 50%;
  animation: reelSpin 0.8s linear infinite;
  display: none;
  pointer-events: none;
  z-index: 24;
}

.reels-buffering-spinner.is-visible {
  display: block;
}

/* Desktop Navigation Chevrons */
.reels-nav-chevron {
  position: absolute;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 35;
  transition: all 0.15s ease;
}

.reels-chevron-up {
  top: 25%;
}

.reels-chevron-down {
  top: 35%;
}

.reels-nav-chevron:hover {
  background: rgba(7, 94, 52, 0.85);
  border-color: #10B981;
  transform: scale(1.08);
}

@media (min-width: 600px) {
  .reels-nav-chevron {
    display: flex;
  }
}

/* 1. TOP BAR — BUSINESS IDENTITY AT VERY TOP */
.reels-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  pointer-events: auto;
}

.reels-top-left-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.reels-top-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.reels-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-top-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reels-top-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reels-top-business-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.reels-top-sponsored-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34D399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
}

.reels-top-location {
  font-size: 0.72rem;
  color: #CBD5E1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
  margin-top: 1px;
}

.reels-top-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.reels-circle-ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.reels-circle-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.reels-circle-ctrl-btn:active {
  transform: scale(0.92);
}

.reels-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #EF4444;
}

/* 3 & 4. BOTTOM OVERLAY — CAPTION & COMPACT HORIZONTAL OUTLINE ACTIONS */
.reels-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.reels-caption-wrap {
  width: 100%;
}

.reels-caption-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  font-weight: 400;
}

.reels-caption-more-btn {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  display: inline;
}

.reels-caption-more-btn:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Compact Horizontal Outline Action Controls */
.reels-compact-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.reels-compact-actions-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.reels-icon-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.reels-icon-btn:hover {
  transform: scale(1.15);
}

.reels-icon-btn:active {
  transform: scale(0.9);
}

.reels-icon-btn.is-liked {
  color: #EF4444;
}

.reels-icon-btn.is-liked svg {
  fill: #EF4444;
  stroke: #EF4444;
}

.reels-compact-actions-right {
  display: flex;
  align-items: center;
}

.reels-compact-listing-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #075E34;
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.reels-compact-listing-btn:hover {
  background: #097240;
  transform: scale(1.03);
}

.reels-compact-listing-btn:active {
  transform: scale(0.96);
}

/* Progress Scrubber Line */
.reels-progress-bar-row {
  width: 100%;
  height: 3px;
  margin-top: 2px;
}

.reels-progress-track {
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.reels-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #10B981;
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* Toast */
.reels-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.reels-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
