.bwg-home-mw {
  width: 100%;
  max-width: 100%;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #1a1a1a;
  --bwg-red: #dc2626;
  --bwg-red-dark: #b91c1c;
  --bwg-red-light: #fee2e2;
  --bwg-black: #1a1a1a;
  --bwg-gray: #6b7280;
  --bwg-gray-light: #f3f4f6;
  --bwg-white: #ffffff;
  --bwg-home-mw-card-min-height: 500px;
}

.bwg-home-mw,
.bwg-home-mw * {
  box-sizing: border-box;
}

.bwg-home-mw__inner {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bwg-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bwg-home-mw__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  background: var(--bwg-gray-light);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 24px;
}

.bwg-home-mw__mobile-intro {
  display: none;
}

.bwg-home-mw__tab {
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font: 600 14px "Montserrat", system-ui, sans-serif;
  color: var(--bwg-black);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.bwg-home-mw__tab:hover {
  background: var(--bwg-red-light);
  color: var(--bwg-red);
}

.bwg-home-mw__tab.is-active,
.bwg-home-mw__tab.is-active:hover {
  background: var(--bwg-red);
  color: var(--bwg-white);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.bwg-home-mw__grid {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 20px;
  align-items: stretch;
}

.bwg-home-mw__quotes-card {
  border: 2px solid var(--bwg-black);
  border-radius: 12px;
  padding: 18px;
  background: var(--bwg-white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: var(--bwg-home-mw-card-min-height);
  height: auto;
}

.bwg-home-mw__quotes-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.bwg-home-mw__quotes-list::-webkit-scrollbar {
  width: 6px;
}

.bwg-home-mw__quotes-list::-webkit-scrollbar-track {
  background: transparent;
}

.bwg-home-mw__quotes-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.bwg-home-mw__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 86px minmax(72px, auto);
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid #f3f4f6;
}

.bwg-home-mw__row:last-child {
  border-bottom: 0;
}

@keyframes bwgHomeFlashUp {
  0% { background: rgba(22, 163, 74, 0.18); }
  100% { background: transparent; }
}

@keyframes bwgHomeFlashDown {
  0% { background: rgba(220, 38, 38, 0.18); }
  100% { background: transparent; }
}

.bwg-home-mw__row.is-up {
  animation: bwgHomeFlashUp 700ms ease-out;
}

.bwg-home-mw__row.is-down {
  animation: bwgHomeFlashDown 700ms ease-out;
}

.bwg-home-mw__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bwg-home-mw__icon img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
}

.bwg-home-mw__icon img[src*="/widget-icons/pair-"] {
  border-radius: 0;
  object-fit: contain;
}

.bwg-home-mw__mono {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font: 700 10px "Montserrat", system-ui, sans-serif;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.bwg-home-mw__code {
  font-size: 13px;
  font-weight: 700;
  color: var(--bwg-black);
  min-width: 0;
}

.bwg-home-mw__name {
  font-size: 10px;
  color: var(--bwg-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bwg-home-mw__spark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bwg-home-mw__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bwg-home-mw__last {
  font-weight: 700;
  color: var(--bwg-black);
}

.bwg-home-mw__pct-up {
  color: #16a34a;
  font-weight: 600;
}

.bwg-home-mw__pct-down {
  color: var(--bwg-red);
  font-weight: 600;
}

.bwg-home-mw__live {
  margin-top: 16px;
  padding: 14px;
  background: var(--bwg-black);
  color: var(--bwg-white);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.bwg-home-mw__live strong {
  color: var(--bwg-red);
  font-weight: 700;
  font-size: 13px;
}

.bwg-home-mw__marketing-card {
  border: 2px solid var(--bwg-black);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(160deg, #fafafa, #ffffff, #f8f8f8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: var(--bwg-home-mw-card-min-height);
}

.bwg-home-mw__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--bwg-red), var(--bwg-red-dark));
  color: var(--bwg-white);
  font: 700 11px "Montserrat", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.bwg-home-mw__image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.bwg-home-mw__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
  transform: translateY(0) rotateX(3deg) scale(1);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  will-change: transform;
}

.bwg-home-mw__image:hover img {
  transform: translateY(-14px) rotateX(0deg) rotateY(-3deg) scale(1.06);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.24)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.14));
}

.bwg-home-mw__title {
  font: 700 16px "Montserrat", system-ui, sans-serif;
  color: var(--bwg-black);
  line-height: 1.3;
  margin: 0;
}

.bwg-home-mw__desc {
  font: 400 12px "Montserrat", system-ui, sans-serif;
  color: var(--bwg-gray);
  line-height: 1.55;
  margin: 0;
}

.bwg-home-mw__btn {
  display: inline-block;
  align-self: center;
  padding: 11px 26px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--bwg-red), var(--bwg-red-dark));
  color: var(--bwg-white);
  font: 600 13px "Montserrat", system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin: auto auto 0;
}

.bwg-home-mw__btn:hover {
  background: linear-gradient(135deg, var(--bwg-red-dark), #991b1b);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.45);
  color: var(--bwg-white);
  text-decoration: none;
}

@media (max-width: 760px) {
  .bwg-home-mw {
    overflow: visible;
  }

  .bwg-home-mw__inner {
    padding: 14px;
    border-radius: 12px;
    overflow: visible;
  }

  .bwg-home-mw__mobile-intro {
    display: block;
    margin-bottom: 18px;
  }

  .bwg-home-mw__mobile-intro h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
  }

  .bwg-home-mw__mobile-intro p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.72;
  }

  .bwg-home-mw__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible !important;
    padding: 0;
    margin-bottom: 16px;
    background: transparent;
    border-radius: 0;
  }

  .bwg-home-mw__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #eceff3;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  }

  .bwg-home-mw__tab.is-active,
  .bwg-home-mw__tab.is-active:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: none;
  }

  .bwg-home-mw__tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .bwg-home-mw__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bwg-home-mw__quotes-card {
    min-height: 0;
    height: 420px;
    padding: 14px;
  }

  .bwg-home-mw__marketing-card {
    min-height: 0;
  }

  .bwg-home-mw__row {
    grid-template-columns: 30px minmax(0, 1fr) 58px minmax(62px, auto);
    gap: 7px;
    padding: 8px 4px;
  }

  .bwg-home-mw__code {
    font-size: 12px;
  }

  .bwg-home-mw__name {
    font-size: 9px;
  }

  .bwg-home-mw__spark svg {
    width: 58px;
  }

  .bwg-home-mw__image {
    height: 180px;
  }
}
