.coupon-section,
.coupon-wallet-shell,
.coupon-wallet-panel {
  width: min(1490px, calc(100% - 34px));
  margin: 18px auto;
}

.coupon-section {
  padding: 24px;
  border: 1px solid rgba(214, 151, 45, .32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(17, 9, 3, .92), rgba(7, 4, 2, .95));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.coupon-section--detail,
.coupon-wallet-panel {
  width: 100%;
  padding: 18px;
}

.coupon-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.coupon-section-header h2 {
  margin: 6px 0 0;
  color: #f5c66d;
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

.coupon-section-header p,
.coupon-wallet-note,
.coupon-wallet-status,
.coupon-card p,
.coupon-card small,
.coupon-wallet-empty {
  color: #ceb48a;
}

.coupon-source {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(123, 244, 224, .3);
  border-radius: 999px;
  color: #7bf4e0;
  background: rgba(123, 244, 224, .08);
  font: 800 12px var(--font-ui);
  text-transform: uppercase;
}

.coupon-grid,
.coupon-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.coupon-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(214, 151, 45, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.coupon-card img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-radius: 6px;
}

.coupon-card-top,
.coupon-card-meta,
.coupon-wallet-shell,
.coupon-wallet-form,
.coupon-wallet-actions,
.coupon-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coupon-card-top {
  justify-content: space-between;
  align-items: center;
}

.coupon-type,
.coupon-expiry,
.coupon-rule,
.coupon-wallet-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font: 800 11px var(--font-ui);
}

.coupon-type {
  color: #180901;
  background: linear-gradient(180deg, #ffd16b, #c67c20);
  text-transform: uppercase;
}

.coupon-type.is-paid {
  color: #fff3d6;
  background: linear-gradient(180deg, #8f2f14, #4b0f05);
}

.coupon-expiry,
.coupon-rule {
  border: 1px solid rgba(214, 151, 45, .22);
  color: #e0bf83;
  background: rgba(255, 255, 255, .03);
}

.coupon-card h3 {
  margin: 0;
  color: #fff0d0;
  font-family: var(--font-ui);
  font-size: 21px;
}

.coupon-price {
  color: #fff4d4;
  font-family: var(--font-display);
  font-size: 28px;
}

.coupon-discount {
  color: #7bf4e0;
  font: 800 16px var(--font-ui);
}

.coupon-code {
  font: 800 13px var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f6cb74;
}

.coupon-card-actions button,
.coupon-card-actions a,
.coupon-wallet-form button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(214, 151, 45, .38);
  border-radius: 999px;
  color: #160901;
  background: linear-gradient(180deg, #ffd16b, #c67c20);
  font: 800 13px var(--font-ui);
  cursor: pointer;
}

.coupon-card-actions .coupon-btn-secondary {
  color: #f2c874;
  background: rgba(255, 255, 255, .04);
}

.coupon-wallet-form {
  align-items: center;
  margin: 14px 0 18px;
}

.coupon-wallet-form input {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(214, 151, 45, .34);
  border-radius: 6px;
  color: #fae8c4;
  background: rgba(0, 0, 0, .34);
}

.coupon-wallet-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 16px;
}

.coupon-wallet-panel {
  border: 1px solid rgba(214, 151, 45, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.coupon-wallet-empty {
  padding: 18px 0 0;
}

@media (max-width: 980px) {
  .coupon-wallet-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .coupon-section,
  .coupon-wallet-shell,
  .coupon-wallet-panel {
    width: min(100% - 22px, 640px);
  }

  .coupon-section--detail,
  .coupon-wallet-panel {
    width: 100%;
  }

  .coupon-section-header {
    display: grid;
  }
}
