.bons {
  background-color: var(--color-bg-second);
  padding: 40px 0 100px 0;
}

.bons .container {
  max-width: 1100px;
}

.bons .heading {
  margin-bottom: 40px;
  text-align: center;
  justify-self: center;
}

.separator-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.divider {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: translateY(-50%);
  z-index: 0;
}

.elipse {
  width: 80px;
  height: 80px;
  background-color: var(--color-bg-second);
  border: 2px solid var(--color-accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 1;
}

.elipse img {
  width: 42px;
  height: auto;
}

.bons-subtitle {
  color: var(--color-muted, #9aa0a6);
  margin: 0 0 20px;
}

.bons-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-bg);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.filter.is-active {
  background: var(--color-accent);
  color: var(--color-bg);
}

.search input {
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border: 1px solid var(--color-bg-headerfooter);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 260px;
  outline: none;
}

.search input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.15);
}

.bons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.coupon {
  position: relative;
  background: var(--color-bg-headerfooter);
  color: var(--color-bg);
  border: 1px dashed var(--color-accent);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon.used {
  opacity: 0.65;
}

.coupon.expired {
  opacity: 0.5;
}

.coupon-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 14px;
}

.coupon-title {
  font-size: 18px;
  margin: 0;
}

.coupon-desc {
  color: var(--color-muted, #9aa0a6);
  margin: 0;
}

.coupon-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-muted, #9aa0a6);
}

.coupon-code {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 8px;
}

.coupon-code kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.coupon-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.coupon .btn,
.coupon .btn-ghost {
  height: 38px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.flag {
  position: absolute;
  top: 8px;
  right: -28px;
  transform: rotate(35deg);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: var(--color-muted, #9aa0a6);
}

.flag.used {
  background: rgba(62, 207, 142, 0.12);
  border-color: rgba(62, 207, 142, 0.35);
  color: #3ecf8e;
}

.flag.expired {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff6b6b;
}

.bons-note {
  margin-top: 16px;
  color: var(--color-muted, #9aa0a6);
  font-size: 13px;
}

@media screen and (max-width: 767px) {
  .bons-grid {
    grid-template-columns: auto;
  }
  .bons-toolbar {
    flex-direction: column;
  }
}
