/* e-GOLD TIGER homepage reference — exact copy from egoldtiger_homepage_current.html */
#egt-home-gold-ticker,
#egt-home-after-banner {
  --crimson: #8b1e2e;
  --gold: #c9922e;
  --cream: #f3dfc0;
  --ink: #1c1c1c;
  --muted: #808080;
  --line: #e5e5e5;
  --pin: #c59275;
  --page-bg: #fcfcfc;
  --success: #1d9e75;
  --danger: #c94a3a;
  box-sizing: border-box;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

#egt-home-after-banner {
  background: var(--page-bg);
}

#egt-home-gold-ticker {
  width: 100%;
  max-width: 100%;
  background: #8a1e2e !important;
  background-image: none !important;
  padding: 8px 0;
  box-sizing: border-box;
}

#egt-home-gold-ticker *,
#egt-home-gold-ticker *::before,
#egt-home-gold-ticker *::after,
#egt-home-after-banner *,
#egt-home-after-banner *::before,
#egt-home-after-banner *::after {
  box-sizing: border-box;
}

#egt-home-gold-ticker .mcx-price-strip {
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 0;
}

#egt-home-gold-ticker .mcx-price-grid {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

#egt-home-gold-ticker .mcx-price-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#egt-home-gold-ticker .mcx-price-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(255, 230, 220, 0.32);
}

#egt-home-gold-ticker .mcx-price-label {
  font-size: 13px;
  font-weight: 500;
  color: #f2d48c;
  margin-bottom: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

#egt-home-gold-ticker .mcx-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

#egt-home-gold-ticker .mcx-price-value {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

#egt-home-gold-ticker .mcx-price-chg {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#egt-home-gold-ticker .mcx-price-chg.up {
  color: #a8e6a0;
}

#egt-home-gold-ticker .mcx-price-chg.down {
  color: #f0a0a0;
}

#egt-home-gold-ticker .mcx-price-chg.same {
  color: rgba(255, 255, 255, 0.55);
}

/* Keep old ticker selectors harmless if reused elsewhere */
#egt-home-after-banner .ticker {
  background: var(--cream);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  flex-wrap: wrap;
}

#egt-home-after-banner .ticker .label {
  color: #a5751a;
  font-weight: 700;
}

#egt-home-after-banner .ticker .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

#egt-home-after-banner .ticker .item b {
  font-weight: 700;
}

#egt-home-after-banner .up { color: var(--success); }
#egt-home-after-banner .down { color: var(--danger); }

#egt-home-after-banner .ticker .updated {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

#egt-home-after-banner .search-section {
  max-width: 95%;
  margin: 20px auto 40px;
  padding: 0 32px;
  position: relative;
  z-index: 3;
}

#egt-home-after-banner .search-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 28px rgba(60, 40, 10, 0.08);
}

#egt-home-after-banner .egt-search-form {
  margin: 0;
}

#egt-home-after-banner .egt-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

#egt-home-after-banner .egt-search-bar .egt-search-field {
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  cursor: text;
  background: #fff;
  box-sizing: border-box;
}

#egt-home-after-banner .egt-search-bar .egt-search-field input {
  border: none !important;
  outline: none;
  font-size: 13px;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  color: var(--ink) !important;
  background: #fff !important;
  box-shadow: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  cursor: text;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  line-height: 1.2 !important;
  -webkit-text-fill-color: var(--ink);
}

#egt-home-after-banner .egt-search-bar .egt-search-field svg {
  color: var(--muted);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

#egt-home-after-banner .btn-search {
  background: var(--crimson) !important;
  color: #fff !important;
  border: none !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 84px !important;
  max-width: none !important;
  text-align: center;
  line-height: 1 !important;
  align-self: center;
  box-sizing: border-box;
}

#egt-home-after-banner .date-select {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
  min-width: 150px;
  width: auto;
  cursor: pointer;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

#egt-home-after-banner .date-select > svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
}

#egt-home-after-banner .date-select > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.2;
}

#egt-home-after-banner #egt-date-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
}

#egt-home-after-banner .date-select .lbl {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

#egt-home-after-banner .date-select .egt-date-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

#egt-home-after-banner .recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

#egt-home-after-banner .recent-row .lbl {
  color: var(--muted);
  margin-right: 4px;
}

#egt-home-after-banner .chip {
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 6px 14px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

#egt-home-after-banner .chip:hover {
  background: var(--cream);
}

#egt-home-after-banner .view-all {
  margin-left: auto;
  color: var(--crimson);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

#egt-home-after-banner .chip.egt-extra-chip.is-hidden {
  display: none;
}

#egt-home-after-banner .filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

#egt-home-after-banner .filters-row .lbl {
  color: var(--muted);
  margin-right: 4px;
}

#egt-home-after-banner .filter-chip {
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  cursor: default;
}

#egt-home-after-banner .egt-type-chip-wrap {
  position: relative;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

#egt-home-after-banner .egt-type-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
}

#egt-home-after-banner .egt-type-display {
  padding: 9px 14px;
  pointer-events: none;
}

#egt-home-after-banner .clear-all {
  color: var(--crimson);
  font-weight: 700;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
}

#egt-home-after-banner .egt-content {
  max-width: 95%;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex !important;
  gap: 28px;
  align-items: flex-start;
  background: #fff;
}

#egt-home-after-banner .main-col {
  flex: 1;
  min-width: 0;
}

#egt-home-after-banner .side-col {
  width: 340px;
  flex-shrink: 0;
}

#egt-home-after-banner .list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

#egt-home-after-banner .list-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--crimson);
  margin: 0;
}

#egt-home-after-banner .list-header .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

#egt-home-after-banner .sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

#egt-home-after-banner .sort-controls .lbl {
  font-size: 13px;
  color: var(--muted);
}

#egt-home-after-banner .sort-select {
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

#egt-home-after-banner .view-toggle {
  display: flex;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

#egt-home-after-banner .view-toggle button {
  border: none;
  background: #fff;
  padding: 9px 10px;
  cursor: pointer;
}

#egt-home-after-banner .view-toggle button.active {
  background: var(--crimson);
  color: #fff;
}

/* Grid view: cards in a responsive multi-column layout */
#egt-home-after-banner.is-grid-view .tab-pane.show.active {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#egt-home-after-banner.is-grid-view .auction-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 0;
  height: 100%;
}

#egt-home-after-banner.is-grid-view .bank-block,
#egt-home-after-banner.is-grid-view .status-block,
#egt-home-after-banner.is-grid-view .price-block {
  width: 100%;
}

#egt-home-after-banner.is-grid-view .view-btn {
  margin-left: 0;
  width: 100%;
  justify-content: center;
}

#egt-home-after-banner.is-grid-view .egt-empty {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  #egt-home-after-banner.is-grid-view .tab-pane.show.active {
    grid-template-columns: 1fr;
  }
}

#egt-home-after-banner .sort-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 220px;
  padding: 6px;
  z-index: 10;
  display: none;
}

#egt-home-after-banner .sort-dropdown.is-open {
  display: block;
}

#egt-home-after-banner .sort-dropdown .opt {
  padding: 9px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}

#egt-home-after-banner .sort-dropdown .opt.active {
  background: var(--cream);
  color: var(--crimson);
  font-weight: 700;
}

#egt-home-after-banner .auction-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
}

#egt-home-after-banner .bank-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: var(--crimson);
  flex-shrink: 0;
}

#egt-home-after-banner .bank-block {
  width: 300px;
  flex-shrink: 0;
  min-width: 0;
}

#egt-home-after-banner .bank-block .name-row {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: #000000;
  min-width: 0;
}

#egt-home-after-banner .bank-block .bank-name {
  display: block;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#egt-home-after-banner .verified {
  font-size: 11px;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
}

#egt-home-after-banner .bank-block .aid {
  font-size: 12px;
  color: var(--crimson);
  font-weight: 600;
  margin-top: 3px;
}

#egt-home-after-banner .bank-block .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#egt-home-after-banner .status-block {
  width: 160px;
  flex-shrink: 0;
}

#egt-home-after-banner .status-block .status {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

#egt-home-after-banner .status-block .timer {
  font-size: 19px;
  font-weight: 800;
}

#egt-home-after-banner .status-block .sub {
  font-size: 12px;
  color: var(--muted);
}

#egt-home-after-banner .status-block .sub.live-close {
  color: var(--danger);
  font-weight: 700;
}

#egt-home-after-banner .status-starts { color: var(--success); }
#egt-home-after-banner .status-soon { color: var(--gold); }
#egt-home-after-banner .status-live { color: var(--danger); }

#egt-home-after-banner .price-block {
  width: 160px;
  flex-shrink: 0;
}

#egt-home-after-banner .egt-location-block {
  width: auto;
  min-width: 150px;
  max-width: 220px;
  flex-shrink: 0;
}

#egt-home-after-banner .egt-location-val {
  font-size: 14px;
  font-weight: 400 !important;
  color: #000000;
  white-space: nowrap;
}

#egt-home-after-banner .egt-location-val .egt-pin {
  color: var(--pin);
  margin-right: 2px;
}

#egt-home-after-banner .price-block .lbl {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

#egt-home-after-banner .price-block .val + .lbl {
  margin-top: 8px;
}

#egt-home-after-banner .price-block .val {
  font-size: 15px;
  font-weight: 400 !important;
  color: #000000;
  margin-top: 2px;
}

#egt-home-after-banner .price-block .est {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

#egt-home-after-banner .view-btn {
  margin-left: auto;
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

#egt-home-after-banner .view-btn:hover {
  color: #fff;
  background: #6e1820;
}

#egt-home-after-banner .trust-strip {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 22px 20px;
  margin-top: 16px;
  flex-wrap: wrap;
  border: none !important;
  border-top: none !important;
  border-radius: 14px !important;
  background: #8a1e2e !important;
  background-image: none !important;
  box-shadow: none;
}

#egt-home-after-banner .trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: none;
  position: relative;
  flex: 1 1 0;
  min-width: 200px;
}

#egt-home-after-banner .trust-item:not(:last-child)::after {
  content: none;
}

#egt-home-after-banner .trust-item .ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

#egt-home-after-banner .trust-item .t {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.3;
}

#egt-home-after-banner .trust-item .d {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
}

#egt-home-after-banner .side-card {
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

#egt-home-after-banner .side-card .head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

#egt-home-after-banner .side-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--crimson);
  margin: 0;
}

#egt-home-after-banner .side-card .mcx-tag {
  font-size: 12px;
  color: var(--muted);
}

#egt-home-after-banner .side-card .updated {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

#egt-home-after-banner .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13px;
}

#egt-home-after-banner .price-row:last-of-type {
  border-bottom: none;
}

#egt-home-after-banner .price-row .price-name {
  color: var(--ink);
  min-width: 0;
}

#egt-home-after-banner .price-row .price-value {
  text-align: right;
  white-space: nowrap;
}

#egt-home-after-banner .price-row .price-value b {
  font-weight: 700;
  color: var(--ink);
}

#egt-home-after-banner .price-row .price-change {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  min-width: 64px;
}

#egt-home-after-banner .price-row .price-change.up {
  color: var(--success);
}

#egt-home-after-banner .price-row .price-change.down {
  color: var(--danger);
}

#egt-home-after-banner .price-row .price-change.same {
  color: var(--muted);
}

#egt-home-after-banner .view-more {
  color: var(--crimson);
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
  display: block;
  text-decoration: none;
}

#egt-home-after-banner .promo-image-link {
  display: block;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 6px 18px rgba(40, 24, 8, 0.12);
  width: 100%;
  max-width: 423px;
  aspect-ratio: 423 / 422;
  background: #f5f5f5;
}

#egt-home-after-banner .promo-image-link:last-child {
  margin-bottom: 0;
}

#egt-home-after-banner .promo-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  vertical-align: middle;
  object-fit: cover;
  object-position: center center;
}

#egt-home-after-banner .promo-image-link video.promo-image {
  aspect-ratio: auto;
  object-fit: cover;
}

#egt-home-after-banner .egt-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

#egt-home-after-banner .egt-hidden-tabs {
  display: none !important;
}

#egt-home-after-banner .egt-tab-content {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  position: relative;
  min-height: 120px;
}

#egt-home-after-banner #egt-auction-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

#egt-home-after-banner .pagination-view {
  margin-top: 8px;
  text-align: center;
}

/* Kill legacy theme overrides inside this block */
#egt-home-after-banner.auction-list,
#egt-home-after-banner .auction-list {
  background: transparent !important;
  padding-top: 0 !important;
}

@media (max-width: 1100px) {
  #egt-home-after-banner .egt-content {
    flex-direction: column;
  }
  #egt-home-after-banner .side-col {
    width: 100%;
  }
  #egt-home-after-banner .auction-card {
    flex-wrap: wrap;
  }
  #egt-home-after-banner .bank-block,
  #egt-home-after-banner .status-block,
  #egt-home-after-banner .price-block {
    width: auto;
    flex: 1 1 140px;
  }
  #egt-home-after-banner .view-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  #egt-home-gold-ticker .mcx-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #egt-home-gold-ticker .mcx-price-card {
    padding: 10px 16px;
  }
  #egt-home-gold-ticker .mcx-price-card:not(:last-child)::after {
    display: none;
  }
  #egt-home-gold-ticker .mcx-price-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 230, 220, 0.32);
  }
  #egt-home-gold-ticker .mcx-price-card:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 230, 220, 0.32);
  }
}

@media (max-width: 768px) {
  #egt-home-gold-ticker {
    padding: 8px 0;
  }
  #egt-home-after-banner .trust-item .d {
    white-space: normal;
  }
  #egt-home-after-banner .trust-item:not(:last-child)::after {
    display: none;
  }
  #egt-home-after-banner .egt-search-bar {
    grid-template-columns: 1fr 1fr;
  }
  #egt-home-after-banner .egt-search-bar .egt-search-field {
    grid-column: 1 / -1;
  }
  #egt-home-after-banner .btn-search,
  #egt-home-after-banner .date-select {
    width: auto;
    max-width: none;
    min-width: 0;
  }
  #egt-home-after-banner .search-section,
  #egt-home-after-banner .egt-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  #egt-home-after-banner .search-section {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  #egt-home-gold-ticker .mcx-price-grid {
    grid-template-columns: 1fr 1fr;
  }
  #egt-home-gold-ticker .mcx-price-card {
    padding: 8px 12px;
  }
  #egt-home-gold-ticker .mcx-price-label {
    font-size: 11px;
  }
  #egt-home-gold-ticker .mcx-price-value {
    font-size: 16px;
  }
  #egt-home-gold-ticker .mcx-price-chg {
    font-size: 11px;
  }
}
