/* ══════════════════════════════════════════════════════════════════════════
   TOPBOARD — Universal Dual-Tier Navbar Design System
   Exact match to the reference design
   Tier 1: Brand + Live Online Stats + Nav Links + Search / Moon / CTA
   Tier 2: Rounded Category Pill Bar (All, Marketing, SEO, ..., Explore →)
   ══════════════════════════════════════════════════════════════════════════ */

.topboard-navbar-wrapper {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: none;
}

/* ─── Top Main Row ─────────────────────────────────────────────── */
.topboard-navbar {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;
  gap: 16px;
}

.topboard-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.topboard-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.topboard-brand-crown {
  width: 32px;
  height: 26px;
  flex-shrink: 0;
}

.topboard-brand-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ea580c;
}

/* ─── Live Traffic Pill Badge ───────────────────────────────────── */
.tb-nav-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff8f5;
  border: 1px solid #ffedd5;
  border-radius: 9999px;
  padding: 4.5px 13px;
  font-size: 13px;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.04);
}

.tb-nav-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: tb-pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes tb-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.tb-nav-live-online {
  color: #16a34a;
  font-weight: 700;
}

.tb-nav-live-sep {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
}

.tb-nav-live-visitors {
  color: #64748b;
  font-weight: 500;
}

.tb-nav-live-link {
  color: #ea580c;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-left: 1px;
}

.tb-nav-live-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* ─── Center/Right Nav Links ─────────────────────────────────────── */
.topboard-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topboard-nav-link {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.topboard-nav-link:hover {
  color: #0f172a;
}

.topboard-nav-link.active {
  color: #ea580c;
  font-weight: 700;
}

.topboard-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #ea580c;
  border-radius: 9999px;
}

/* ─── Far Right Actions ─────────────────────────────────────────── */
.topboard-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tb-nav-divider {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 4px;
}

.tb-nav-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tb-nav-icon-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

.tb-nav-icon-btn.active {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}

/* ─── Search Expandable in Navbar ───────────────────────────────── */
.tb-nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tb-nav-search-expandable {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.22s ease, opacity 0.2s ease, margin 0.2s ease;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 9999px;
  box-sizing: border-box;
}

.tb-nav-search-expandable.open {
  width: 230px;
  opacity: 1;
  border-color: #fed7aa;
  background: #ffffff;
  padding: 4px 10px;
  margin-right: 6px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.tb-nav-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: #0f172a;
  padding: 2px 4px;
}

.tb-nav-search-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.tb-nav-search-close:hover {
  color: #0f172a;
}

.tb-nav-search-wrap .stage-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1200;
  max-height: 360px;
  overflow-y: auto;
}

/* ─── CTA Button ────────────────────────────────────────────────── */
.topboard-btn-list-nav {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.28);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.topboard-btn-list-nav:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(234, 88, 12, 0.35);
}

/* ─── Row 2: Secondary Category Navigation Pill Bar ─────────────── */
.tb-nav-categories-bar-wrapper {
  width: 100%;
  padding: 4px 28px 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.tb-nav-categories-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff8f5;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  padding: 4px 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.04);
}

.tb-nav-categories-track::-webkit-scrollbar {
  display: none;
}

.tb-nav-cat-item {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.tb-nav-cat-item .tb-cat-icon {
  color: #ea580c;
  flex-shrink: 0;
  transition: color 0.16s ease;
}

.tb-nav-cat-item:hover {
  background: #ffedd5;
  color: #ea580c;
}

.tb-nav-cat-item.active {
  background: #ea580c;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.32);
}

.tb-nav-cat-item.active .tb-cat-icon {
  color: #ffffff;
}

.tb-nav-cat-divider {
  width: 1px;
  height: 18px;
  background: #fed7aa;
  margin: 0 4px;
  flex-shrink: 0;
}

.tb-nav-cat-explore {
  color: #ea580c;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.tb-nav-cat-explore:hover {
  color: #c2410c;
  transform: translateX(2px);
}

/* ─── Row 3: Live Activity Running Ticker Strip (Right to Left) ─── */
.tb-nav-ticker-strip {
  width: 100%;
  background: transparent;
  border-top: none;
  border-bottom: none;
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.tb-nav-ticker-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 32px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.tb-nav-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  padding: 3px 10px;
  margin-right: 18px;
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 4px 0 12px rgba(255, 255, 255, 0.95);
}

.tb-ticker-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  animation: tb-ticker-pulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes tb-ticker-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
}

.tb-ticker-label-text {
  font-size: 11px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tb-nav-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}

.tb-nav-ticker-marquee {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: tbTickerMarquee 38s linear infinite;
}

.tb-nav-ticker-marquee:hover {
  animation-play-state: paused;
}

@keyframes tbTickerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tb-ticker-set {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
}

.tb-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #475569;
}

.tb-ticker-avatar {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

.tb-ticker-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.tb-ticker-msg {
  white-space: nowrap;
}

.tb-ticker-msg strong {
  color: #0f172a;
  font-weight: 700;
}

.tb-ticker-amt {
  color: #16a34a;
  font-weight: 700;
}

.tb-ticker-time {
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  margin-left: 2px;
}

.tb-ticker-sep {
  color: #cbd5e1;
  font-size: 12px;
}

/* ─── Mobile Elements ───────────────────────────────────────────── */
.topboard-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topboard-mobile-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.topboard-mobile-drawer {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.topboard-mobile-search {
  margin-bottom: 14px;
}

.topboard-mobile-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
}

.topboard-mobile-search-input:focus {
  background: #ffffff;
  border-color: #ea580c;
}

.topboard-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.topboard-mobile-link {
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.topboard-mobile-link:hover,
.topboard-mobile-link.active {
  color: #ea580c;
  background: #fff7ed;
  font-weight: 700;
}

.topboard-mobile-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

/* ─── Responsive Breakpoints ────────────────────────────────────── */
@media (min-width: 961px) and (max-width: 1200px) {
  .topboard-nav-links {
    gap: 14px;
  }
  .topboard-nav-link {
    font-size: 13.5px;
  }
  .topboard-btn-list-nav {
    padding: 8px 14px;
    font-size: 13px;
  }
  .tb-nav-live-visitors {
    display: none;
  }
}

@media (max-width: 960px) {
  .topboard-nav-links {
    display: none;
  }
  .topboard-btn-list-nav {
    display: none;
  }
  .topboard-mobile-toggle {
    display: inline-flex;
  }
  .topboard-navbar {
    padding: 0 16px;
    height: 62px;
  }
  .tb-nav-categories-bar-wrapper {
    padding: 2px 12px 10px;
    justify-content: flex-start;
  }
  .tb-nav-categories-track {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .tb-nav-live-visitors,
  .tb-nav-live-sep {
    display: none !important;
  }
}

@media (max-width: 580px) {
  .tb-nav-live-pill {
    display: none !important;
  }
  .topboard-navbar {
    padding: 0 12px;
    height: 60px;
    gap: 8px;
  }
  .topboard-nav-left {
    gap: 8px;
  }
  .topboard-brand-text {
    font-size: 19px;
  }
  .topboard-brand-crown {
    width: 26px;
    height: 22px;
  }
  .tb-nav-icon-btn {
    width: 34px;
    height: 34px;
  }
  .topboard-mobile-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   TOPBOARD — Universal Global Footer Design System
   Exact match across the entire application
   ══════════════════════════════════════════════════════════════════════════ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.page-body {
  flex: 1 0 auto;
  width: 100%;
}

.topboard-global-footer {
  border-top: 1px solid #f1f5f9;
  background: #fffdfb;
  padding: 32px 0;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.topboard-footer-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.topboard-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topboard-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.topboard-footer-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.topboard-footer-tagline {
  font-size: 12.5px;
  color: #94a3b8;
}

.topboard-footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topboard-footer-link {
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topboard-footer-link:hover {
  color: #ea580c;
}

.topboard-footer-link.active {
  color: #ea580c;
  font-weight: 700;
}

.topboard-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

.topboard-footer-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 3px 10px;
  color: #059669;
  font-weight: 600;
  font-size: 12px;
}

.topboard-footer-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

@media (max-width: 768px) {
  .topboard-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 16px;
  }
}

/* ═════════════════════════════════════════════════════════════════
   REAL-TIME LIVE ACTIVITY & TOAST NOTIFICATION SYSTEM
   ═════════════════════════════════════════════════════════════════ */
.tb-ticker-item.tb-ticker-fresh {
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: 9999px;
  padding: 2px 8px;
  animation: tbTickerFreshPulse 2.5s ease-out;
}

@keyframes tbTickerFreshPulse {
  0% { transform: scale(1.15); background: rgba(234, 88, 12, 0.28); }
  50% { transform: scale(1.04); background: rgba(234, 88, 12, 0.15); }
  100% { transform: scale(1); background: rgba(234, 88, 12, 0.08); }
}

/* Floating Realtime Live Activity Toasts Container */
#tb-live-activity-toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 32px);
}

.tb-live-toast-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(234, 88, 12, 0.1);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-live-toast-card.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tb-live-toast-card.leaving {
  transform: translateY(-10px) scale(0.94);
  opacity: 0;
}

.tb-live-toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tb-live-toast-content {
  flex: 1;
  min-width: 0;
}

.tb-live-toast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.tb-live-toast-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ea580c;
}

.tb-live-toast-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ea580c;
  animation: tb-ticker-pulse 1.4s infinite;
}

.tb-live-toast-time {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
}

.tb-live-toast-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-live-toast-amt {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
