/* Style cho trang Săn Sản Phẩm Hoa Hồng Cao */
:root {
  --primary-orange: #ff5722;
  --dark-orange: #e64a19;
  --light-orange: #fff5f2;
  --accent-gold: #ffb300;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border-color: #f1f5f9;
}

.deals-container {
  padding: 16px 0 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Banner hướng dẫn nhận hoa hồng - Redesign chuẩn màu sắc phong cách Ảnh 1 */
.deals-hero-banner {
  position: relative;
  background: linear-gradient(115deg, #fffdfb 0%, #fff7f0 61%, #ffeddc 100%);
  border: 1.5px solid #f2e0d3;
  border-radius: 24px;
  padding: 30px 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(55, 39, 25, 0.06);
  overflow: hidden;
}

.deals-hero-main {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
}

.deals-hero-copy {
  position: relative;
  z-index: 2;
}

.deals-hero-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.deals-hero-header-row .deals-badge,
.deals-hero-header-row .deals-hero-date {
  margin-bottom: 0;
}

.deals-badge {
  display: inline-block;
  color: #e9560b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid #ffd5b3;
  border-radius: 999px;
  background: #fff5eb;
  margin-bottom: 10px;
}

.deals-hero-title {
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}

.deals-hero-title em {
  color: #f45711;
  font-style: normal;
}

.deals-hero-desc {
  max-width: 580px;
  color: #65748c;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.deals-hero-desc b {
  color: #ee4d2d;
  font-weight: 700;
}

.deals-hero-date {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(73, 45, 25, 0.06);
  border: 1px solid #fce8db;
  color: #53647d;
  font-size: 12px;
  font-weight: 700;
}

/* Artwork chiếc hộp quà và đồng xu phong cách Ảnh 1 */
.deals-hero-art {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deals-hero-art img {
  position: relative;
  z-index: 3;
  width: 180px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 15px 12px rgba(147, 67, 5, 0.18));
  transform: rotate(-2deg);
}

.deals-orbit {
  position: absolute;
  border: 1px solid rgba(255, 122, 29, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.deals-orbit.orbit-one {
  width: 160px;
  height: 160px;
  top: 10px;
  right: 35px;
  box-shadow: 0 0 0 18px rgba(255, 144, 47, 0.04);
}

.deals-orbit.orbit-two {
  width: 230px;
  height: 230px;
  top: -25px;
  right: 5px;
}

.deals-coin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
  background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
  color: #78350f;
  border: 2px solid #fff;
}

.deals-coin.coin-one {
  width: 32px;
  height: 32px;
  font-size: 14px;
  top: 20px;
  right: 20px;
}

.deals-coin.coin-two {
  width: 26px;
  height: 26px;
  font-size: 12px;
  bottom: 20px;
  left: 20px;
}

/* 3 Bước nhận hoàn tiền: Thẻ con trắng thanh lịch */
.deals-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  background: transparent;
  padding: 0;
}

.deals-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #f2e3d8;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 3px 10px rgba(55, 39, 25, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deals-step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(55, 39, 25, 0.08);
}

.deals-step-num {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #ff7321 0%, #f45711 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(244, 87, 17, 0.3);
}

.deals-step-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.deals-step-text span {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Responsive cho banner */
@media (min-width: 641px) and (max-width: 1024px) {
  .deals-hero-banner {
    padding: 24px 24px 20px;
    border-radius: 20px;
  }
  .deals-hero-main {
    grid-template-columns: 1fr 180px;
    gap: 16px;
    margin-bottom: 18px;
  }
  .deals-hero-art {
    display: flex;
    height: 140px;
  }
  .deals-hero-art img {
    width: 140px;
    height: 130px;
  }
  .deals-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .deals-step-item {
    padding: 12px 10px;
  }
  .deals-step-text strong {
    font-size: 13px;
  }
  .deals-step-text span {
    font-size: 11.5px;
  }
}

@media (max-width: 640px) {
  .deals-container {
    padding-top: 10px;
    padding-bottom: 24px;
  }
  .deals-hero-banner {
    padding: 13px 13px 11px;
    border-radius: 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fffcf9 0%, #fff6ee 60%, #ffeedd 100%);
    border: 1.5px solid #f2dfd0;
    box-shadow: 0 4px 16px rgba(55, 39, 25, 0.05);
  }
  .deals-hero-main {
    display: block;
    margin-bottom: 8px;
    gap: 0;
  }
  .deals-hero-art {
    display: none;
  }
  .deals-hero-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
    gap: 6px;
  }
  .deals-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .deals-hero-date {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    border: 1px solid #fed7aa;
    color: #ea580c;
    font-weight: 600;
    white-space: nowrap;
  }
  .desktop-only-txt {
    display: none;
  }
  .deals-desc-full {
    display: none;
  }
  .deals-hero-title {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
  }
  .deals-hero-desc {
    font-size: 11.5px;
    line-height: 1.35;
    margin: 0 0 9px 0;
    color: #64748b;
  }
  .deals-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    padding: 0;
  }
  .deals-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 3px 6px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #f2e2d5;
    box-shadow: 0 1px 3px rgba(55, 39, 25, 0.04);
    gap: 3px;
    text-align: center;
  }
  .deals-step-num {
    width: 19px;
    height: 19px;
    min-width: 19px;
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(244, 87, 17, 0.25);
    border-radius: 50%;
  }
  .deals-step-text {
    width: 100%;
  }
  .deals-step-text strong {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .deals-step-sub,
  .deals-step-text span {
    display: none;
  }
}

/* Thanh tìm kiếm và bộ lọc danh mục */
.deals-controls {
  margin-bottom: 20px;
}

.deals-search-bar {
  position: relative;
  margin-bottom: 16px;
}

.deals-search-input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.deals-search-input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
}

.deals-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
}

/* Slider danh mục 1 hàng ngang chuẩn Shopee */
.deals-cat-tabs-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.deals-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  user-select: none;
  z-index: 2;
  padding: 0;
}

.deals-slider-btn:hover:not(.disabled) {
  background: #fff7ed;
  color: #ee4d2d;
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.2);
  transform: scale(1.08);
}

.deals-slider-btn:active:not(.disabled) {
  transform: scale(0.95);
}

.deals-slider-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.deals-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  flex: 1;
}

.deals-cat-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .deals-slider-btn {
    display: none;
  }
  .deals-cat-tabs {
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .deals-cat-tabs::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  .deals-cat-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
}

.deals-cat-tab {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.deals-cat-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.deals-cat-tab.active {
  background: #ee4d2d;
  color: #ffffff;
  border-color: #ee4d2d;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
}

/* Lưới sản phẩm */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.deal-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.deal-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f8fafc;
  overflow: hidden;
}

.deal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Badge Hoa Hồng Extra */
.deal-comm-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff2d55 0%, #ff5e3a 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 45, 85, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.deal-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.deal-price {
  font-size: 16px;
  font-weight: 800;
  color: #ee4d2d;
  white-space: nowrap;
}

.deal-sold {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.deal-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11.5px;
}

.deal-rating {
  font-size: 11.5px;
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.deal-shop {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.deal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.btn-copy-deal {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-copy-deal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-convert-deal {
  background: linear-gradient(135deg, #ff6b35 0%, #ee4d2d 100%);
  border: none;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(238, 77, 45, 0.25);
}

.btn-convert-deal:hover {
  filter: brightness(1.08);
}

/* Toast thông báo sao chép hiện đại, nổi bật */
.deal-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #ffffff;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(238, 77, 45, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.deal-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.deal-toast-icon {
  width: 26px;
  height: 26px;
  background: #ffffff;
  color: #ee4d2d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.deal-toast-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.deal-toast-title {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.deal-toast-desc {
  font-size: 11.5px;
  opacity: 0.92;
  font-weight: 500;
  white-space: nowrap;
}

.deal-toast-btn {
  background: #ffffff;
  color: #ee4d2d;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.deal-toast-btn:hover {
  background: #fff5eb;
  transform: scale(1.04);
}

.deal-toast-btn:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .deal-toast {
    top: 14px;
    padding: 8px 10px 8px 12px;
    gap: 8px;
    width: auto;
    max-width: calc(100vw - 20px);
  }
  .deal-toast-desc {
    display: none;
  }
  .deal-toast-title {
    font-size: 13px;
  }
  .deal-toast-btn {
    padding: 6px 11px;
    font-size: 11.5px;
  }
}

/* Phân trang danh sách deal (Pagination) - Thiết kế chuẩn theo ảnh mẫu */
.deals-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 36px 0 28px;
  width: 100%;
}

.deals-pagination-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deals-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.deals-page-btn:hover:not(.active):not(.disabled) {
  border-color: #ee4d2d;
  color: #ee4d2d;
  background: #fff8f6;
}

.deals-page-btn.active {
  background: #ee4d2d !important;
  border-color: #ee4d2d !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.4) !important;
  cursor: default;
  pointer-events: none;
}

.deals-page-btn.nav-btn {
  padding: 0 14px;
  color: #0284c7;
  font-weight: 500;
}

.deals-page-btn.disabled,
.deals-page-btn:disabled {
  background: #fafafa !important;
  border-color: #f1f5f9 !important;
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none;
}

.deals-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 640px) {
  .deals-pagination-container {
    margin: 24px 0 16px;
  }

  .deals-pagination-bar {
    gap: 6px;
  }

  .deals-page-btn {
    min-width: 35px;
    height: 35px;
    font-size: 13px;
    padding: 0 6px;
    border-radius: 7px;
  }

  .deals-page-btn.nav-btn {
    padding: 0 10px;
    font-size: 12.5px;
  }

  .deals-page-ellipsis {
    min-width: 20px;
    height: 35px;
    font-size: 12px;
  }
}

/* ==========================================================
   2 TAB LỚN CHỌN SÀN: SHOPEE VS TIKTOK SHOP
   ========================================================== */
.deals-platform-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  background: #ffffff;
  padding: 8px;
  border-radius: 20px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.deals-platform-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  user-select: none;
  font-family: inherit;
}

.deals-platform-tab:hover:not(.active) {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.platform-tab-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: all 0.25s;
}

.platform-tab-svg {
  width: 24px;
  height: 24px;
}

.deals-platform-tab[data-platform="shopee"] .platform-tab-icon {
  color: #ee4d2d;
}

.deals-platform-tab[data-platform="tiktok"] .platform-tab-icon {
  color: #0f172a;
}

.platform-tab-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.platform-tab-name {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.platform-tab-pill {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

/* Active State - Shopee */
.deals-platform-tab[data-platform="shopee"].active {
  background: linear-gradient(135deg, #fff5f2 0%, #ffece6 100%);
  border-color: #ffd2c7;
  color: #ee4d2d;
  box-shadow: 0 6px 18px rgba(238, 77, 45, 0.12);
}

.deals-platform-tab[data-platform="shopee"].active .platform-tab-icon {
  background: #ee4d2d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

.deals-platform-tab[data-platform="shopee"].active .platform-tab-pill {
  color: #d73211;
  font-weight: 700;
}

/* Active State - TikTok */
.deals-platform-tab[data-platform="tiktok"].active {
  background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
  border-color: #334155;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.deals-platform-tab[data-platform="tiktok"].active .platform-tab-icon {
  background: #1e293b;
  color: #25f4ee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.deals-platform-tab[data-platform="tiktok"].active .platform-tab-pill {
  color: #25f4ee;
  background: rgba(37, 244, 238, 0.15);
  padding: 1px 8px;
  border-radius: 99px;
  display: inline-block;
  font-weight: 700;
}

/* Meta trên thẻ sản phẩm */
.deal-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.deal-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.deal-platform-tag .tag-svg {
  width: 12px;
  height: 12px;
}

.deal-platform-tag.shopee {
  background: #fff1ee;
  color: #ee4d2d;
}

.deal-platform-tag.tiktok {
  background: #f1f5f9;
  color: #0f172a;
}

.deal-shop-name {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Badge TikTok trên ảnh sản phẩm */
.deal-comm-badge.tiktok-badge {
  background: linear-gradient(135deg, #0f172a 0%, #000000 100%) !important;
  color: #25f4ee !important;
  border: 1px solid rgba(37, 244, 238, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Giao diện khi chọn Tab TikTok */
.deals-container.platform-tiktok .deals-hero-banner {
  background: linear-gradient(115deg, #f8fafc 0%, #f1f5f9 60%, #e2e8f0 100%);
  border-color: #cbd5e1;
}

.deals-container.platform-tiktok .deals-badge.tiktok-badge {
  background: #0f172a;
  color: #25f4ee;
  border-color: #334155;
}

.deals-container.platform-tiktok .deals-hero-title em {
  color: #fe2c55;
}

.deals-container.platform-tiktok .btn-convert-deal {
  background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
  color: #ffffff;
  border: 1px solid #334155;
}

.deals-container.platform-tiktok .btn-convert-deal:hover {
  background: linear-gradient(135deg, #fe2c55 0%, #e11d48 100%);
  border-color: #fe2c55;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.35);
}

@media (max-width: 640px) {
  .deals-platform-tabs {
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .deals-platform-tab {
    padding: 10px 10px;
    border-radius: 12px;
  }
  .platform-tab-inner {
    gap: 8px;
  }
  .platform-tab-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .platform-tab-svg {
    width: 18px;
    height: 18px;
  }
  .platform-tab-name {
    font-size: 13.5px;
  }
  .platform-tab-pill {
    font-size: 10.5px;
  }
}


