.codes-hero {
  background: radial-gradient(circle at 50% 30%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, rgba(124, 45, 18, 0.2) 0%, transparent 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
}

.code-card {
  position: relative;
  background: linear-gradient(145deg, rgba(124, 45, 18, 0.25), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.code-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(245, 158, 11, 0.15), transparent 30%);
  animation: rotate 6s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.code-card:hover::before {
  opacity: 1;
}

.code-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.22);
}

.code-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.75rem;
}

.code-label {
  font-family: 'Zcool QingKe HuangYou', 'Noto Serif SC', cursive;
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.code-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rebate-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.rebate-table thead {
  background: rgba(124, 45, 18, 0.5);
}

.rebate-table th,
.rebate-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.rebate-table th {
  color: var(--accent);
  font-family: 'Zcool QingKe HuangYou', 'Noto Serif SC', cursive;
  font-weight: 400;
}

.rebate-table tbody tr {
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

.rebate-table tbody tr:hover {
  background: rgba(217, 119, 6, 0.1);
}

.rebate-table td {
  color: var(--text-muted);
}

.rebate-amount {
  color: var(--accent);
  font-family: 'Zcool QingKe HuangYou', 'Noto Serif SC', cursive;
  font-size: 1.1rem;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .rebate-table th,
  .rebate-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .code-card {
    padding: 1.5rem 1rem;
  }
}
