/**
 * FR-017.2A — ENTERPRISE VISUAL POLISH
 * XEGHEP Knowledge Factory v1.0
 *
 * Changes ALL presentation layer cards to Enterprise Marketplace standard:
 *   - Border radius: 12-14px (reduced from 18-24px)
 *   - Borders: 1px rgba(0,0,0,0.08) very light
 *   - Shadows: ultra-light, no material-design elevation
 *   - Perfect alignment: no card left-misaligned
 *   - Unified Design Language across Market Pulse, Feed, Timeline
 *   - Price, CTA, Badge standardized to Uber Freight / Alibaba / Binance style
 *   - Visual Priority: Route → Price → Capacity/Time → CTA → Metadata (10px)
 *
 * NO business logic changes. Presentation Layer ONLY.
 * Compliant with Design Tokens from /assets/design-system/tokens/
 *
 * @package XOS\Presentation\Styles
 * @version 1.0.0 — FR-017.2A
 * @since   FR-017.2A
 */

/* ===========================================================
   1. GLOBAL DESIGN TOKENS — Enterprise Marketplace Override
   =========================================================== */

:root {
  /* ── Border Radius — Enterprise standard 12-14px ── */
  --ent-radius-card: 12px;
  --ent-radius-card-sm: 10px;
  --ent-radius-badge: 6px;
  --ent-radius-btn: 8px;
  --ent-radius-pill: 20px;

  /* ── Borders — ultra light ── */
  --ent-border-color: rgba(0, 0, 0, 0.08);
  --ent-border-color-hover: rgba(0, 0, 0, 0.12);
  --ent-border-width: 1px;

  /* ── Shadows — ultra light, no material elevation ── */
  --ent-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --ent-shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --ent-shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.04);

  /* ── Typography ── */
  --ent-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --ent-font-size-xs: 0.625rem;    /* 10px — metadata */
  --ent-font-size-sm: 0.75rem;     /* 12px — badge, caption */
  --ent-font-size-base: 0.8125rem; /* 13px — body */
  --ent-font-size-lg: 0.9375rem;  /* 15px — route mobile */
  --ent-font-size-xl: 1.125rem;   /* 18px — route desktop */
  --ent-font-size-price: 1rem;    /* 16px — price */
  --ent-font-size-price-lg: 1.125rem; /* 18px — price desktop */

  /* ── Colors — Enterprise Marketplace palette ── */
  --ent-text-primary: #111827;
  --ent-text-secondary: #6B7280;
  --ent-text-tertiary: #9CA3AF;
  --ent-text-price: #DC2626;       /* Red price — Binance/Alibaba style */
  --ent-text-price-up: #16A34A;    /* Green for positive */
  --ent-bg-surface: #FFFFFF;
  --ent-bg-muted: #F9FAFB;
  --ent-bg-section: #F6F9FD;
  --ent-cta-bg: #2563EB;          /* Blue CTA — Stripe/Uber Freight */
  --ent-cta-text: #FFFFFF;
  --ent-cta-outline-border: #D1D5DB;
  --ent-cta-outline-text: #374151;
  --ent-badge-bg: #F3F4F6;
  --ent-badge-text: #374151;
  --ent-badge-verified: #059669;
  --ent-badge-verified-bg: #D1FAE5;
  --ent-border-focus: #2563EB;

  /* ── Spacing — perfect alignment ── */
  --ent-space-xs: 2px;
  --ent-space-sm: 4px;
  --ent-space-md: 8px;
  --ent-space-lg: 12px;
  --ent-space-xl: 16px;
  --ent-space-2xl: 20px;
  --ent-card-padding: 12px;
  --ent-card-padding-lg: 16px;
  --ent-section-gap: 6px;
}

/* ===========================================================
   2. SECTION CONTAINERS — Perfect Alignment
   =========================================================== */

/* Ensure all homepage sections share consistent padding */
.ep12-section {
  padding-left: 0;
  padding-right: 0;
}

.ep12-container {
  padding-left: 16px;
  padding-right: 16px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Consistent section spacing */
.ep12-market-pulse,
.ep12-timeline-section,
.mp-feed-section,
.ep12-live-matching {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Desktop container alignment */
@media (min-width: 640px) {
  .ep12-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  .ep12-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ===========================================================
   3. UNIFIED CARD — Enterprise Standard
   All card types MUST use these base styles.
   =========================================================== */

/* Base card — shared by Market Pulse cards, Feed cards, Timeline items */
.mp-card,
.ep12-market-pulse .mp-card,
.mp-feed-section .mp-card {
  background: var(--ent-bg-surface);
  border-radius: var(--ent-radius-card);
  border: var(--ent-border-width) solid var(--ent-border-color);
  box-shadow: var(--ent-shadow-card);
  transition: box-shadow 150ms ease, border-color 150ms ease;
  box-sizing: border-box;
  /* Critical: ensure card properly contains its children */
  contain: none !important;
  content-visibility: visible !important;
  overflow: visible !important;
  animation: none !important;
  min-height: auto;
  display: block;
  height: auto;
}

.mp-card:hover,
.ep12-market-pulse .mp-card:hover,
.mp-feed-section .mp-card:hover {
  box-shadow: var(--ent-shadow-card-hover);
  border-color: var(--ent-border-color-hover);
}

/* Card link — ensure no misalignment */
.mp-card-link {
  display: block;
  padding: var(--ent-card-padding);
  text-decoration: none;
  color: inherit;
  min-height: 0;
  box-sizing: border-box;
}

/* ===========================================================
   4. MARKET PULSE CARDS — Enterprise Restyle
   =========================================================== */

.ep12-market-pulse .mp-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}

.ep12-market-pulse .mp-card {
  padding: var(--ent-card-padding);
  border-radius: var(--ent-radius-card);
  border: var(--ent-border-width) solid var(--ent-border-color);
  box-shadow: var(--ent-shadow-card);
  min-height: 0;
}

.ep12-market-pulse .mp-card:hover {
  border-color: var(--ent-border-color-hover);
  box-shadow: var(--ent-shadow-card-hover);
  transform: none;
}

.ep12-market-pulse .mp-card--featured {
  background: var(--ent-bg-surface);
  border-color: var(--ent-border-color);
}

.ep12-market-pulse .mp-card-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ent-text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ep12-market-pulse .mp-card-top {
  margin-bottom: 2px;
}

.ep12-market-pulse .mp-card-icon {
  font-size: 1rem;
  line-height: 1;
}

.ep12-market-pulse .mp-card-label {
  font-size: var(--ent-font-size-xs);
  font-weight: 500;
  color: var(--ent-text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep12-market-pulse .mp-card-trend {
  font-size: 0.625rem;
  font-weight: 600;
}

/* Market Pulse Header — standardized */
.ep12-market-pulse .mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ep12-market-pulse .mp-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  letter-spacing: -0.01em;
}

.ep12-market-pulse .mp-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ent-font-size-xs);
  color: var(--ent-text-secondary);
}

/* Grid — perfect alignment */
.ep12-market-pulse .mp-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* ===========================================================
   5. MARKETPLACE FEED CARDS — Enterprise Standard
   Visual Priority: Route → Price → Capacity/Time → CTA → Metadata
   =========================================================== */

.mp-feed-section .mp-card {
  margin-bottom: 6px;
  border-radius: var(--ent-radius-card);
  border: var(--ent-border-width) solid var(--ent-border-color);
  box-shadow: var(--ent-shadow-card);
  animation: mp-card-enter 250ms ease-out both;
  animation-delay: calc(var(--mp-index, 0) * 30ms);
}

.mp-feed-section .mp-card-link {
  padding: var(--ent-card-padding);
}

/* ── Header / Badge ── */
.mp-feed-section .mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ent-space-sm);
  margin-bottom: var(--ent-space-sm);
}

.mp-feed-section .mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--ent-font-size-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: var(--ent-radius-badge);
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.mp-feed-section .mp-header-meta {
  display: flex;
  align-items: center;
  gap: var(--ent-space-sm);
  flex-shrink: 0;
  margin-left: auto;
}

.mp-feed-section .mp-source-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--ent-font-size-xs);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
}

.mp-feed-section .mp-time-ago {
  font-size: var(--ent-font-size-xs);
  color: var(--ent-text-tertiary);
  white-space: nowrap;
}

/* ── ROUTE — Primary Visual Priority (Hero) ── */
.mp-feed-section .mp-route {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--ent-font-size-lg);
  font-weight: 700;
  color: var(--ent-text-primary);
  line-height: 1.25;
  overflow: hidden;
  margin-bottom: var(--ent-space-sm);
}

.mp-feed-section .mp-route-origin,
.mp-feed-section .mp-route-dest {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  font-weight: 700;
}

.mp-feed-section .mp-route-arrow {
  flex-shrink: 0;
  color: var(--ent-text-tertiary);
  min-width: 16px;
}

@media (min-width: 640px) {
  .mp-feed-section .mp-route {
    font-size: var(--ent-font-size-xl);
  }

  .mp-feed-section .mp-route-origin,
  .mp-feed-section .mp-route-dest {
    max-width: 160px;
  }
}

/* ── INFO ROW — Price secondary priority ── */
.mp-feed-section .mp-info-row {
  display: flex;
  align-items: center;
  gap: var(--ent-space-md);
  flex-wrap: wrap;
  margin-bottom: var(--ent-space-sm);
}

.mp-feed-section .mp-info-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--ent-font-size-base);
  color: var(--ent-text-secondary);
  line-height: 1.4;
}

.mp-feed-section .mp-info-fomo {
  font-weight: 700;
  font-size: var(--ent-font-size-sm);
}

.mp-feed-section .mp-info-price {
  font-weight: 700;
  color: var(--ent-text-price);
  font-size: var(--ent-font-size-price);
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .mp-feed-section .mp-info-price {
    font-size: var(--ent-font-size-price-lg);
  }
}

/* ── BOTTOM ROW — CTA + Metadata (10px) ── */
.mp-feed-section .mp-bottom-row {
  display: flex;
  align-items: center;
  gap: var(--ent-space-md);
  margin-top: auto;
  padding-top: 2px;
}

.mp-feed-section .mp-driver-name {
  font-size: var(--ent-font-size-xs);
  color: var(--ent-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.7;
}

.mp-feed-section .mp-actions {
  display: flex;
  gap: var(--ent-space-sm);
  flex-shrink: 0;
}

/* ── CTA Buttons — Enterprise Standard ── */
.mp-feed-section .mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ent-font-size-sm);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--ent-radius-btn);
  line-height: 1.3;
  transition: all 120ms ease;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 28px;
  box-shadow: none;
}

.mp-feed-section .mp-btn--outline {
  border: 1.5px solid var(--ent-cta-outline-border);
  color: var(--ent-cta-outline-text);
  background: rgba(255, 255, 255, 0.9);
}

.mp-feed-section .mp-btn--outline:hover {
  background: var(--ent-bg-muted);
  border-color: var(--ent-text-tertiary);
}

.mp-feed-section .mp-btn--primary {
  border: 1.5px solid var(--ent-cta-bg);
  color: var(--ent-cta-text);
  background: var(--ent-cta-bg);
  box-shadow: var(--ent-shadow-btn);
}

.mp-feed-section .mp-btn--primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

/* ── Feed Header ── */
.mp-feed-header {
  display: flex;
  align-items: center;
  gap: var(--ent-space-md);
  margin-bottom: var(--ent-space-md);
  padding: 0 2px;
}

.mp-feed-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  margin: 0;
}

.mp-feed-count {
  font-weight: 700;
  color: var(--ent-cta-bg);
  font-size: 0.9375rem;
}

.mp-feed-unit {
  font-size: var(--ent-font-size-sm);
  color: var(--ent-text-secondary);
  margin-left: 2px;
}

.mp-freshness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  transition: background-color 300ms ease;
}

/* ===========================================================
   6. TIMELINE — Enterprise Restyle (Unified Design Language)
   =========================================================== */

.ep12-timeline-section {
  padding-top: 8px;
  padding-bottom: 8px;
}

.ep12-timeline-section .ep12-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}

.ep12-timeline-section .timeline-header {
  padding: 12px 0 8px;
  margin-bottom: 4px;
}

.ep12-timeline-section .timeline-header-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep12-timeline-section .timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.ep12-timeline-section .timeline-dot--pulse {
  animation: tl-dot-pulse 1.5s ease-in-out infinite;
}

.ep12-timeline-section .timeline-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  margin: 0;
  letter-spacing: 0.025em;
}

.ep12-timeline-section .timeline-subtitle {
  font-size: var(--ent-font-size-sm);
  color: var(--ent-text-secondary);
  margin: 2px 0 0 16px;
}

/* Timeline items — unified with card design language */
.ep12-timeline-section .tl-item {
  border-bottom: var(--ent-border-width) solid var(--ent-border-color);
  padding: 10px 0 10px 12px;
  border-left: 3px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.ep12-timeline-section .tl-item:hover {
  background: var(--ent-bg-muted);
}

.ep12-timeline-section .tl-item:last-child {
  border-bottom: none;
}

.ep12-timeline-section .tl-item--empty {
  text-align: center;
  padding: 24px 0;
  color: var(--ent-text-tertiary);
  border-left: none !important;
}

.ep12-timeline-section .tl-item-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Timeline badges — enterprise pill style */
.ep12-timeline-section .tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--ent-radius-badge);
  font-size: var(--ent-font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
  align-self: flex-start;
  box-shadow: none;
  border: var(--ent-border-width) solid var(--ent-border-color);
}

.ep12-timeline-section .tl-time {
  font-size: var(--ent-font-size-xs);
  color: var(--ent-text-tertiary);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  user-select: none;
  margin-bottom: 4px;
  display: block;
}

.ep12-timeline-section .tl-actor-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  line-height: 1.4;
}

.ep12-timeline-section .tl-actor-info {
  font-size: var(--ent-font-size-xs);
  color: var(--ent-text-tertiary);
  line-height: 1.4;
}

.ep12-timeline-section .tl-action {
  font-size: var(--ent-font-size-base);
  color: var(--ent-text-secondary);
  line-height: 1.5;
}

.ep12-timeline-section .tl-route-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  line-height: 1.5;
}

.ep12-timeline-section .tl-value {
  font-size: var(--ent-font-size-sm);
  color: var(--ent-text-secondary);
  line-height: 1.4;
  display: inline-block;
  margin-right: 12px;
}

.ep12-timeline-section .tl-value--price {
  color: var(--ent-text-price);
  font-weight: 600;
}

/* Category left borders — keep but adjust opacity */
.ep12-timeline-section .tl-item[data-category="searching"] { border-left-color: #F59E0B; }
.ep12-timeline-section .tl-item[data-category="listing_created"] { border-left-color: #2563EB; }
.ep12-timeline-section .tl-item[data-category="booking"] { border-left-color: #10B981; }
.ep12-timeline-section .tl-item[data-category="matched"] { border-left-color: #8B5CF6; }
.ep12-timeline-section .tl-item[data-category="completed"] { border-left-color: #10B981; }
.ep12-timeline-section .tl-item[data-category="online"] { border-left-color: #10B981; }
.ep12-timeline-section .tl-item[data-category="vehicle_full"] { border-left-color: #EF4444; }

/* ===========================================================
   7. HERO CARD — Enterprise Standard
   =========================================================== */

.mp-card--hero {
  border: 1.5px solid #F59E0B;
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
}

.mp-card--hero .mp-route {
  font-size: 1.125rem;
}

.mp-card--hero .mp-info-price {
  font-size: 1.125rem;
}

.mp-card--hero .mp-badge {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FDE68A;
}

@media (min-width: 640px) {
  .mp-card--hero .mp-route {
    font-size: 1.25rem;
  }

  .mp-card--hero .mp-info-price {
    font-size: 1.25rem;
  }
}

/* ===========================================================
   8. EMPTY STATE — Enterprise Standard
   =========================================================== */

.mp-empty-state {
  text-align: center;
  padding: 24px 16px;
  background: var(--ent-bg-surface);
  border-radius: var(--ent-radius-card);
  border: var(--ent-border-width) solid var(--ent-border-color);
  box-shadow: var(--ent-shadow-card);
}

.mp-empty-icon {
  margin-bottom: 8px;
  opacity: 0.5;
}

.mp-empty-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  margin: 0 0 4px;
}

.mp-empty-text {
  font-size: var(--ent-font-size-sm);
  color: var(--ent-text-secondary);
  margin: 0 0 12px;
  line-height: 1.5;
}

.mp-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--ent-font-size-sm);
  font-weight: 700;
  color: var(--ent-cta-text);
  background: var(--ent-cta-bg);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--ent-radius-btn);
  transition: background 120ms ease;
  box-shadow: var(--ent-shadow-btn);
}

/* ===========================================================
   9. BADGE — Enterprise Pill Style
   =========================================================== */

.mp-badge--opportunity {
  background: #FEF3C7 !important;
  color: #C2410C !important;
  border: 1px solid #FDE68A;
}

.mp-badge--insight {
  background: var(--ent-bg-muted) !important;
  color: var(--ent-text-secondary) !important;
  font-size: var(--ent-font-size-sm);
}

/* ===========================================================
   10. RESPONSIVE — Mobile first
   =========================================================== */

@media (max-width: 640px) {
  /* Market Pulse grid - 2 columns */
  .ep12-market-pulse .mp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    overflow-x: visible;
  }

  .ep12-market-pulse .mp-card {
    flex: none;
    width: auto;
  }

  .ep12-market-pulse .mp-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .ep12-market-pulse .mp-card-value {
    font-size: 1.125rem;
  }

  .ep12-market-pulse .mp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Feed cards compact on mobile */
  .mp-feed-section .mp-card-link {
    padding: 10px;
  }

  .mp-feed-section .mp-route {
    font-size: 0.875rem;
  }

  .mp-feed-section .mp-info-price {
    font-size: 0.875rem;
  }

  .mp-feed-section .mp-info-item {
    font-size: 0.75rem;
  }

  .mp-feed-section .mp-btn {
    font-size: 0.6875rem;
    padding: 3px 8px;
    min-height: 26px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  /* Tablet Market Pulse - 3+2 grid */
  .ep12-market-pulse .mp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow-x: visible;
  }

  .ep12-market-pulse .mp-card:nth-child(4) {
    grid-column: 1 / 3;
  }

  .ep12-market-pulse .mp-card:nth-child(5) {
    grid-column: 3 / 4;
  }

  .ep12-market-pulse .mp-card-value {
    font-size: 1.125rem;
  }
}

@media (min-width: 769px) {
  .mp-feed-section .mp-container {
    max-width: 768px;
    margin: 0 auto;
  }
}

/* ===========================================================
   11. REDUCED MOTION
   =========================================================== */

@media (prefers-reduced-motion: reduce) {
  .mp-card,
  .mp-feed-section .mp-card,
  .ep12-timeline-section .tl-item {
    animation: none;
    transition: none;
  }

  .mp-freshness-dot--active,
  .ep12-timeline-section .timeline-dot--pulse {
    animation: none;
  }
}

/* ===========================================================
   12. PERFORMANCE
   =========================================================== */

.mp-card,
.mp-card-link,
.mp-btn {
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* ===========================================================
   13. LIVE DENSE FEED — Enterprise Alignment
   =========================================================== */

.dlc-container {
  padding-left: 0;
  padding-right: 0;
}

.dlc-live-header {
  display: flex;
  align-items: center;
  gap: var(--ent-space-md);
  margin-bottom: var(--ent-space-md);
  padding: 0 2px;
}

.dlc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.dlc-live-label {
  font-size: var(--ent-font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10B981;
}

.dlc-live-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ent-text-primary);
  margin: 0;
}

.dlc-live-counter {
  font-weight: 800;
  color: var(--ent-cta-bg);
}

/* LIVE feed cards */
.dlc-feed .dlc-card {
  background: var(--ent-bg-surface);
  border-radius: var(--ent-radius-card);
  border: var(--ent-border-width) solid var(--ent-border-color);
  box-shadow: var(--ent-shadow-card);
  margin-bottom: 6px;
  overflow: hidden;
  padding: var(--ent-card-padding);
}

/* ===========================================================
   14. FIX LEFT MISALIGNMENT — Critical Fix
   Ensure NO card is misaligned to the left
   =========================================================== */

/* Ensure all cards in feed have consistent left positioning */
.mp-feed .mp-card,
.dlc-feed .dlc-card,
.ep12-market-pulse .mp-grid .mp-card {
  margin-left: 0;
  margin-right: 0;
}

/* Ensure all section containers have consistent padding */
.ep12-market-pulse .mp-container,
.mp-feed-section .mp-container,
.ep12-timeline-section .ep12-container,
.ep12-live-matching .dlc-container {
  box-sizing: border-box;
  width: 100%;
}

/* Fix any container that might cause offset */
.ep12-home .ep12-container {
  box-sizing: border-box;
}

/* ===========================================================
   15. TIMELINE FEED ALIGNMENT
   =========================================================== */

.timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  max-width: 100%;
}

/* Ensure timeline items are not wider than their container */
.timeline-feed .tl-item {
  width: 100%;
  box-sizing: border-box;
}