.vsg-freshness,
.vsg-back,
.vsg-calculator {
  border: 1px solid #e8e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(22, 22, 34, .06);
  margin: 22px 0;
  padding: 20px;
}

.vsg-freshness {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 13px 16px;
}

.vsg-freshness span:last-child { color: #666; }
.vsg-dot { background: #18a957; border-radius: 50%; height: 9px; width: 9px; }
.vsg-freshness.is-stale { background: #fff8ed; border-color: #f0c47c; }
.vsg-freshness.is-stale .vsg-dot { background: #d47b00; }

.vsg-calculator h2,
.vsg-back h2 { margin: 0 0 8px; }
.vsg-calculator__form label { display: block; font-weight: 700; margin-bottom: 7px; }
.vsg-calculator__form > div { display: flex; gap: 9px; }
.vsg-calculator__form input {
  border: 1px solid #cfcfd8;
  border-radius: 9px;
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
}
.vsg-calculator__form button,
.vsg-button {
  align-items: center;
  background: #ee4d2d;
  border: 0;
  border-radius: 9px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 10px 15px;
  text-decoration: none !important;
}
.vsg-calculator__result { margin-top: 16px; }
.vsg-calculator__result h3 { font-size: 17px; margin: 0 0 10px; }
.vsg-recommend {
  align-items: center;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 0;
}
.vsg-recommend span,
.vsg-recommend small { display: block; }
.vsg-recommend small { color: #087a3f; font-weight: 700; margin-top: 4px; }
.vsg-disclaimer { color: #666; font-size: 13px; margin: 13px 0 0; }
.vsg-calculator__result .is-error { color: #b32d2e; }

.vsg-category-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.vsg-category-nav span { color: #666; font-size: 13px; font-weight: 700; margin-right: 3px; }
.vsg-category-nav a {
  background: #fff1ed;
  border: 1px solid #ffd4ca;
  border-radius: 999px;
  color: #b9341e;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
}
.vsg-category-nav a:hover { background: #ee4d2d; color: #fff; }
.vsg-empty {
  background: #fff8ed;
  border: 1px solid #f0c47c;
  border-radius: 13px;
  margin: 20px 0;
  padding: 18px;
}
.vsg-empty p { margin: 6px 0 12px; }

.vsg-deals { display: grid; gap: 12px; margin: 20px 0 28px; }
.vsg-deal {
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 13px;
  display: grid;
  gap: 13px;
  grid-template-columns: 38px 1fr auto;
  padding: 15px;
}
.vsg-deal__rank {
  align-items: center;
  background: #fff1ed;
  border-radius: 50%;
  color: #d33b1d;
  display: flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.vsg-deal__brand { color: #777; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.vsg-deal h3 { font-size: 16px; line-height: 1.45; margin: 2px 0 5px; }
.vsg-deal__time { color: #666; font-size: 13px; margin: 0; }
.vsg-deal__code { align-items: center; display: flex; gap: 7px; margin: 7px 0 0; }
.vsg-deal__code span { color: #777; font-size: 12px; }
.vsg-deal__code strong { background: #f5f5f8; border: 1px dashed #aaa; border-radius: 5px; padding: 2px 7px; }

.vsg-back { background: linear-gradient(135deg, #fff6f2, #fff); text-align: center; }
.vsg-back__eyebrow { color: #d33b1d; font-size: 12px; font-weight: 800; letter-spacing: .08em; margin: 0 0 5px; text-transform: uppercase; }
.vsg-back__clock { color: #ee4d2d; font-size: clamp(34px, 8vw, 58px); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .04em; line-height: 1.1; margin: 16px 0; }

@media (max-width: 640px) {
  .vsg-calculator__form > div { flex-direction: column; }
  .vsg-recommend { align-items: stretch; flex-direction: column; }
  .vsg-deal { align-items: start; grid-template-columns: 38px 1fr; }
  .vsg-deal > .vsg-button { grid-column: 1 / -1; }
}
