:root {
  --amin-accent-gold: #f8b500;
}

.promoted-feed-shell {
  position: relative;
  min-height: 248px;
}

.promoted-feed-shell.is-collapsed {
  display: none !important;
  min-height: 0 !important;
}

.promoted-feed-shell.is-loaded .promoted-feed-skeleton {
  display: none;
}

.promoted-feed-card {
  border: none;
  border-radius: 14px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
  animation: promotedSlideUp 0.3s ease;
}

.promoted-feed-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.promoted-feed-card .card-header {
  background: linear-gradient(135deg, var(--amin-accent-gold) 0%, #ef9f00 100%);
  border-bottom: none;
  padding: 12px 16px;
}

.promoted-feed-card .card-header i,
.promoted-feed-card .card-header strong {
  color: #fff;
}

.promoted-feed-card .card-header i {
  font-size: 18px;
  margin-right: 8px;
}

.promoted-feed-card .card-header strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-grow: 1;
}

.promoted-feed-card .card-header .js_dismiss-promoted {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.promoted-feed-card .card-header .js_dismiss-promoted:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.promoted-feed-card .card-body {
  padding: 12px 8px;
  position: relative;
}

.promoted-feed-card .card-body::before,
.promoted-feed-card .card-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
}

.promoted-feed-card .card-body::before {
  left: 0;
  background: linear-gradient(to right, #fff 20%, rgba(255, 255, 255, 0));
}

.promoted-feed-card .card-body::after {
  right: 0;
  background: linear-gradient(to left, #fff 20%, rgba(255, 255, 255, 0));
}

.promoted-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amin-accent-gold);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  filter: blur(7px);
  transform: scale(1.03);
  transition: filter 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease;
}

.promoted-avatar.loaded {
  filter: blur(0);
  transform: scale(1);
}

.promoted-card-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 14px;
  margin: 6px 4px;
  min-width: 200px;
  max-width: 260px;
  transition: all 0.2s ease;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
}

.promoted-card-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.promoted-card-item:hover {
  background: #fff;
  border-color: #e8e8e8;
  box-shadow: 0 2px 8px rgba(248, 181, 0, 0.15);
  transform: translateY(-2px);
}

.promoted-card-item:hover .promoted-avatar {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.promoted-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.promoted-name:hover {
  color: var(--amin-accent-gold);
}

.promoted-name-truncate {
  max-width: 120px;
}

.promoted-meta-col {
  min-width: 0;
}

.promoted-meta-time {
  font-size: 12px;
}

.promoted-meta-time-sm {
  font-size: 11px;
}

.promoted-text {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  margin: 10px 0;
  max-height: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.promoted-text-compact {
  font-size: 13px;
}

.promoted-card-item .btn {
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.2s ease;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.promoted-card-item .btn-outline-primary {
  border-color: var(--amin-accent-gold);
  color: #b07700;
  background: transparent;
}

.promoted-card-item .btn-outline-primary:hover {
  background: var(--amin-accent-gold);
  border-color: var(--amin-accent-gold);
  color: #fff;
}

.promoted-card-item .btn-xs {
  padding: 4px 10px;
  font-size: 11px;
}

.promoted-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: promotedRipple 0.55s linear;
  background-color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.promoted-feed-wrapper {
  display: block;
  margin: 0;
}

.promoted-feed-wrapper:not(.slick-initialized) {
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.promoted-feed-wrapper:not(.slick-initialized)::-webkit-scrollbar {
  display: none;
}

.promoted-feed-wrapper .slick-track {
  display: flex !important;
  align-items: stretch;
}

.promoted-feed-wrapper .slick-slide {
  height: auto !important;
  display: flex !important;
}

.promoted-feed-wrapper .slick-slide > div {
  display: flex;
  width: 100%;
}

.promoted-feed-wrapper .slick-prev,
.promoted-feed-wrapper .slick-next {
  z-index: 1;
  width: 32px;
  height: 32px;
  display: none !important;
}

.promoted-feed-wrapper .slick-prev:before,
.promoted-feed-wrapper .slick-next:before {
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.promoted-feed-wrapper .slick-prev:hover:before,
.promoted-feed-wrapper .slick-next:hover:before {
  opacity: 1;
}

.promoted-card-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.promoted-feed-wrapper.slick-initialized .promoted-card-item {
  transform: scale(0.985);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.promoted-feed-wrapper.slick-initialized .promoted-card-item.slick-active,
.promoted-feed-wrapper.slick-initialized .promoted-card-item.is-centered {
  transform: scale(1);
}

.promoted-card-item > .mt8,
.promoted-card-item > .mt10 {
  margin-top: auto !important;
}

.promoted-feed-skeleton .card-body {
  padding: 10px 8px;
}

.promoted-skeleton-item {
  pointer-events: none;
  opacity: 1 !important;
  transform: none !important;
  background: #f7f8fa;
  border: 1px solid #e4e8ee;
}

.promoted-skeleton-hint {
  color: #7f8a98;
  font-size: 12px;
  margin: 2px 8px 10px;
}

.promoted-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  background: #ececec;
}

.promoted-skeleton-meta {
  width: calc(100% - 60px);
}

.promoted-skeleton-line,
.promoted-skeleton-btn {
  display: block;
  border-radius: 8px;
  background: #ececec;
}

.promoted-skeleton-name {
  height: 12px;
  width: 72%;
  margin-bottom: 8px;
}

.promoted-skeleton-time {
  height: 10px;
  width: 40%;
}

.promoted-skeleton-text {
  height: 10px;
  width: 100%;
  margin-bottom: 8px;
}

.promoted-skeleton-text-short {
  width: 72%;
}

.promoted-skeleton-btn {
  margin-top: 12px;
  height: 28px;
  width: 45%;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: promotedShimmer 1.2s infinite;
}

.promoted-users-section .promoted-search-wrap {
  width: 100%;
}

.promoted-users-section .promoted-search-group {
  max-width: 420px;
  position: relative;
}

.promoted-users-section .promoted-max-input {
  width: 90px;
}

.promoted-users-section .promoted-search-results {
  display: none;
  max-height: 240px;
  overflow-y: auto;
  position: absolute;
  z-index: 1000;
}

.promoted-admin-row {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  transition: all 0.2s ease;
  cursor: grab;
}

.promoted-admin-row:hover {
  background: #f8fbff;
  border-color: var(--amin-accent-gold);
  box-shadow: 0 2px 8px rgba(248, 181, 0, 0.15);
  transform: translateX(4px);
}

.promoted-admin-row img {
  border: 2px solid var(--amin-accent-gold);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promoted-admin-row .fa-grip-vertical {
  cursor: grab;
  transition: color 0.2s ease;
}

.promoted-admin-row:hover .fa-grip-vertical {
  color: var(--amin-accent-gold);
}

.promoted-admin-count {
  width: 94px;
}

.promoted-admin-count .form-label {
  font-size: 11px;
  color: #868686;
}

.promoted-admin-count .form-control {
  height: 32px;
  padding: 4px 8px;
  text-align: center;
}

.promoted-admin-metrics {
  font-size: 12px;
  white-space: nowrap;
}

.promoted-empty-msg {
  font-size: 13px;
  color: #999;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

#js_promoted-search {
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: border-color 0.2s ease;
}

#js_promoted-search:focus {
  border-color: var(--amin-accent-gold);
  box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.1);
}

#js_promoted-search-results .dropdown-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

#js_promoted-search-results .dropdown-item:hover {
  background-color: #f8fbff;
  border-left: 3px solid var(--amin-accent-gold);
  padding-left: 11px;
}

#js_promoted-search-results .dropdown-item img {
  border: 1px solid #e8e8e8;
}

@keyframes promotedRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes promotedSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes promotedShimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 767px) {
  .promoted-feed-card .card-body::before,
  .promoted-feed-card .card-body::after {
    width: 14px;
  }

  .promoted-feed-wrapper {
    overflow-x: auto;
    display: flex;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .promoted-feed-wrapper::-webkit-scrollbar {
    display: none;
  }

  .promoted-card-item {
    min-width: 200px;
    flex-shrink: 0;
    max-width: 200px;
  }

  .promoted-feed-card {
    border-radius: 12px;
  }

  .promoted-avatar {
    width: 44px;
    height: 44px;
  }

  .promoted-admin-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .promoted-admin-count {
    width: 100%;
  }
}
