/* Page load fade-in */
@keyframes pageLoadIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body {
  animation: pageLoadIn 0.5s ease-out both;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
}
menu, ol, ul { list-style-type: none; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #06080e;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

.app-layout {
  display: grid;
  grid-template-columns: 236px 1fr 301px;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  background: #06080e;
  border-right: 1px solid #131a27;
  width: 236px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #131a27; border-radius: 2px; }
.sidebar-inner {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 25px;
}
.logo-live-indicator {
  width: 16px; height: 16px;
  background: rgba(108, 24, 25, 0.51);
  border: 0.5px solid rgba(167, 36, 36, 0.42);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.live-dot {
  width: 6px; height: 6px;
  background: #e22b2b;
  border-radius: 50%;
  box-shadow: 0px 0px 5.2px 0px rgba(167, 36, 36, 1);
  display: block;
}
.logo-live-indicator.live {
  background: rgba(24, 108, 30, 0.51);
  border-color: rgba(36, 167, 44, 0.42);
  cursor: pointer;
}
.logo-live-indicator.live .live-dot {
  background: #cffe1a;
  box-shadow: 0px 0px 5.2px 0px rgba(207, 254, 26, 0.8);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.logo-img { height: 21px; width: auto; object-fit: contain; }
.sidebar-section { padding: 10px 0; }
.sidebar-section-title {
  color: #8ba4ba;
  font-size: 9px;
  font-weight: 800;
  padding: 8px 27px;
  letter-spacing: 0.5px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 27px 8px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}
.sidebar-link:hover { opacity: 0.8; }
.sidebar-link.muted { color: #88969c; font-weight: 600; }
.sidebar-icon { width: 19px; height: 19px; flex-shrink: 0; object-fit: contain; }
.sidebar-icon-placeholder { width: 19px; height: 19px; flex-shrink: 0; }
.soon-badge {
  background: #2c3c47;
  border-radius: 2px;
  font-size: 6px;
  font-weight: 800;
  color: #88969c;
  padding: 2px 5px;
  margin-left: 4px;
  transform: rotate(-3.377deg);
}
.sidebar-bottom { margin-top: auto; padding: 20px; }
.sidebar-social-card {
  background: #0e111a;
  border-radius: 5px;
  padding: 12px;
}
.sidebar-social-card .sidebar-section-title {
  padding: 0 0 10px 0;
  font-size: 12px;
}
.social-icons { display: flex; gap: 8px; }
.social-icon-btn {
  width: 25px; height: 25px;
  background: #131a27;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.social-icon-btn:hover { opacity: 0.7; }
.social-icon-btn img { width: 14px; height: 14px; object-fit: contain; }

.chat-sidebar {
  width: 301px;
  background: rgba(19, 26, 39, 0.1);
  border: 1px solid #131a27;
  border-radius: 7px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  margin: 24px 0;
  overflow: hidden;
}
.chat-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
}
.chat-close {
  width: 20px; height: 20px;
  cursor: pointer;
  opacity: 0.6;
}
.chat-close:hover { opacity: 1; }
.chat-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  text-align: center;
}
.chat-header-icons { display: flex; gap: 8px; }
.chat-icon {
  width: 16px; height: 13px;
  cursor: pointer;
  opacity: 0.6;
}
.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.chat-footer {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-input-wrapper { display: flex; gap: 6px; }
.chat-input {
  flex: 1;
  background: rgba(44, 60, 71, 0.24);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.chat-input::placeholder { color: #2e4048; }
.chat-send-btn {
  width: 41px; height: 41px;
  background: #9a3fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-login-btn {
  background: #cffe1a;
  border-radius: 6px;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0e111a;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.chat-login-btn:hover { opacity: 0.9; }

.main-content {
  min-height: 100vh;
  overflow-y: auto;
  padding: 20px;
}

.rewards-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.rewards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 16px;
}
.rewards-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rewards-header-icon {
  width: 36px;
  height: 36px;
  color: #cffe1a;
  flex-shrink: 0;
}
.rewards-header-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.rewards-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  background: rgba(208, 255, 0, 0.08);
  color: #cffe1a;
  border: 1px solid rgba(208, 255, 0, 0.2);
}

.points-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e111a;
  border: 1px solid #131a27;
  border-radius: 8px;
  padding: 14px 24px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.points-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.points-bar-label {
  font-size: 14px;
  font-weight: 700;
  color: #8ba4ba;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.points-bar-right {
  display: flex;
  align-items: center;
}
.points-bar-value {
  font-size: 22px;
  font-weight: 800;
  color: #cffe1a;
  letter-spacing: 0.5px;
}

.category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5a7080;
  background: #131a27;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}
.category-tab.active {
  background: linear-gradient(180deg, rgba(139, 44, 255, 0.15) 0%, rgba(139, 44, 255, 0.05) 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 44, 255, 0.15);
  border: 1px solid rgba(139, 44, 255, 0.2);
}
.category-tab:hover:not(.active) {
  color: #8ba4ba;
  background: rgba(19, 26, 39, 0.8);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.reward-card {
  background: #0e111a;
  border: 1px solid #172236;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.reward-card:hover {
  transform: scale(1.02);
}
.reward-card.sold-out {
  opacity: 0.45;
}

/* Category glow effects — light from below */
.reward-card[data-category="tech"] {
  background: radial-gradient(closest-side at 50% 100%, rgba(150, 118, 254, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(150, 118, 254, 0.15);
}
.reward-card[data-category="tech"]:hover {
  box-shadow: 0px 0px 150px 0px rgba(150, 118, 254, 0.3);
}

.reward-card[data-category="voucher"] {
  background: radial-gradient(closest-side at 50% 100%, rgba(18, 184, 147, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(18, 184, 147, 0.15);
}
.reward-card[data-category="voucher"]:hover {
  box-shadow: 0px 0px 150px 0px rgba(18, 184, 147, 0.3);
}

.reward-card[data-category="digital"] {
  background: radial-gradient(closest-side at 50% 100%, rgba(0, 180, 255, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(0, 180, 255, 0.15);
}
.reward-card[data-category="digital"]:hover {
  box-shadow: 0px 0px 150px 0px rgba(0, 180, 255, 0.3);
}

.reward-card[data-category="exclusive"] {
  background: radial-gradient(closest-side at 50% 100%, rgba(218, 161, 132, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(218, 161, 132, 0.15);
}
.reward-card[data-category="exclusive"]:hover {
  box-shadow: 0px 0px 150px 0px rgba(218, 161, 132, 0.3);
}

.reward-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0d14 0%, #131a27 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reward-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reward-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.reward-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.reward-card-desc {
  font-size: 11px;
  font-weight: 500;
  color: #5a7080;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reward-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.reward-card-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.reward-card-badge[data-cat="tech"] {
  background: rgba(136, 108, 255, 0.2);
  color: #886cff;
  border: 1px solid rgba(136, 108, 255, 0.3);
}
.reward-card-badge[data-cat="voucher"] {
  background: rgba(208, 255, 0, 0.12);
  color: #cffe1a;
  border: 1px solid rgba(208, 255, 0, 0.25);
}
.reward-card-badge[data-cat="digital"] {
  background: rgba(0, 180, 255, 0.12);
  color: #00b4ff;
  border: 1px solid rgba(0, 180, 255, 0.25);
}
.reward-card-badge[data-cat="exclusive"] {
  background: rgba(255, 80, 80, 0.12);
  color: #ff5050;
  border: 1px solid rgba(255, 80, 80, 0.25);
}

.reward-card-limited {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255, 80, 80, 0.15);
  color: #ff5050;
  border: 1px solid rgba(255, 80, 80, 0.3);
}

.reward-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #cffe1a;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-top: auto;
  padding-top: 4px;
}
.reward-card-price svg {
  flex-shrink: 0;
}

.reward-card-btn {
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6c2bd9 0%, #8b2cff 50%, #a855f7 100%);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.reward-card-btn:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(139, 44, 255, 0.4);
  transform: translateY(-1px);
}
.reward-card-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.reward-card-btn.sold-out-btn {
  background: #2c2c2c;
  opacity: 0.6;
}

.rewards-grid-empty, .rewards-grid-loading {
  text-align: center;
  padding: 60px 20px;
  color: #5a7080;
  font-size: 14px;
  font-weight: 600;
  grid-column: 1 / -1;
}

/* Rewards grid responsive */
@media (max-width: 1400px) {
  .rewards-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .rewards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .rewards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .rewards-grid { grid-template-columns: 1fr; gap: 14px; }
  .reward-card-img { height: 100px; }
  .reward-card-body { padding: 12px; }
  .reward-card-name { font-size: 13px; }
  .reward-card-price { font-size: 14px; }
  .reward-card-btn { padding: 9px 14px; font-size: 10px; }
}

.redemptions-section {
  background: #0e111a;
  border: 1px solid #131a27;
  border-radius: 8px;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 32px;
}
.redemptions-header {
  margin-bottom: 20px;
}
.redemptions-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.redemptions-table-wrap {
  overflow-x: auto;
}
.redemptions-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.redemptions-table thead {
  border-bottom: 1px solid #1c2740;
}
.redemptions-table th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #5a7080;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.redemptions-table th:last-child {
  text-align: right;
}
.redemptions-table td {
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(28, 39, 64, 0.4);
  vertical-align: middle;
}
.redemptions-table td:last-child {
  text-align: right;
}
.redemptions-table tbody tr {
  height: 54px;
  transition: background 0.15s;
}
.redemptions-table tbody tr:hover {
  background: rgba(139, 44, 255, 0.03);
}
.redemptions-empty {
  color: #5a7080;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 40px 16px;
}
.redemptions-empty-row td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-badge.pending {
  background: rgba(255, 200, 50, 0.12);
  color: #ffc832;
  border: 1px solid rgba(255, 200, 50, 0.25);
}
.status-badge.approved {
  background: rgba(80, 255, 128, 0.1);
  color: #50ff80;
  border: 1px solid rgba(80, 255, 128, 0.2);
}
.status-badge.shipped {
  background: rgba(0, 180, 255, 0.12);
  color: #00b4ff;
  border: 1px solid rgba(0, 180, 255, 0.25);
}
.status-badge.rejected {
  background: rgba(255, 80, 80, 0.12);
  color: #ff5050;
  border: 1px solid rgba(255, 80, 80, 0.25);
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 20px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  pointer-events: auto;
  transform: translateX(120%);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.toast.removing {
  animation: toastOut 0.3s ease forwards;
}
.toast.success {
  background: linear-gradient(135deg, #1a3a1a 0%, #0e111a 100%);
  border: 1px solid rgba(80, 255, 128, 0.3);
}
.toast.error {
  background: linear-gradient(135deg, #3a1a1a 0%, #0e111a 100%);
  border: 1px solid rgba(255, 80, 80, 0.3);
}
.toast.info {
  background: linear-gradient(135deg, #1a1a3a 0%, #0e111a 100%);
  border: 1px solid rgba(136, 108, 255, 0.3);
}
@keyframes toastIn {
  0% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: #121418;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #0e111a;
  border-top: 1px solid #1c2740;
}
.cookie-text { flex: 1; }
.cookie-title {
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 12px;
  color: #8ba4ba;
  line-height: 1.5;
}
.cookie-text a { color: #886cff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-reject {
  background: #131a27;
  color: #8ba4ba;
  border: 1px solid #1c2740;
}
.cookie-btn-reject:hover { background: #1c2740; color: #fff; }
.cookie-btn-accept {
  background: linear-gradient(180deg, rgba(206, 255, 92, 1) 0%, rgba(208, 255, 0, 1) 100%);
  color: #0e111a;
}
.cookie-btn-accept:hover { box-shadow: 0 4px 15px rgba(208, 255, 0, 0.25); }

@media (max-width: 1400px) {
  .app-layout {
    grid-template-columns: 236px 1fr;
  }
  .chat-sidebar {
    display: none;
  }
}

@media (max-width: 1200px) {
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    transition: left 0.3s ease;
    z-index: 150;
  }
  .sidebar.open { left: 0; }
  .mobile-menu-btn { display: flex; }
  .main-content { padding: 70px 20px 12px; }
}

@media (max-width: 900px) {
}

@media (max-width: 600px) {
  .points-bar {
    padding: 12px 16px;
  }
  .points-bar-value {
    font-size: 18px;
  }
  .points-bar-label {
    font-size: 12px;
  }
  .category-tab {
    padding: 8px 16px;
    font-size: 12px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn { flex: 1; padding: 12px 16px; }
  .redemptions-section {
    padding: 16px;
  }
  .redemptions-table th,
  .redemptions-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .toast-container {
    right: 10px;
    left: 10px;
  }
  .toast {
    max-width: 100%;
  }
}

/* Rewards page redesign */

.main-content {
  padding: 30px 28px 60px;
  background:
    radial-gradient(circle at top right, rgba(136, 108, 255, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(208, 255, 0, 0.06), transparent 24%),
    #06080e;
}

.rewards-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Hero / Page Header ── */

.page-header {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 48px 36px;
  margin-bottom: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 44, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(208, 255, 0, 0.10), transparent 50%),
    linear-gradient(160deg, #0e111a 0%, #06080e 100%);
  border: 1px solid rgba(139, 44, 255, 0.15);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-size: 200% 200%;
  animation: heroGradientShift 12s ease infinite;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(139, 44, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(208, 255, 0, 0.06), transparent 45%);
}

@keyframes heroGradientShift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Particle dots */
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 44, 255, 0.45);
  animation: particleFloat 6s ease-in-out infinite;
}

.hero-particle:nth-child(2n) {
  width: 3px;
  height: 3px;
  background: rgba(208, 255, 0, 0.3);
  animation-duration: 8s;
  animation-delay: -2s;
}

.hero-particle:nth-child(3n) {
  width: 2px;
  height: 2px;
  background: rgba(211, 135, 255, 0.35);
  animation-duration: 10s;
  animation-delay: -4s;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50%      { transform: translateY(-18px) scale(1.3); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.title-icon {
  width: 68px;
  height: auto;
  position: relative;
  animation: iconFloat 4s ease-in-out infinite;
}

.title-icon-bg {
  position: absolute;
  left: 4px;
  width: 68px;
  height: auto;
  opacity: 0.4;
  animation: iconFloat 4s ease-in-out infinite;
  animation-delay: -0.5s;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.page-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-title-sub {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title-main {
  font-size: 52px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(92deg, #8b2cff 0%, #d387ff 40%, #cffe1a 80%, #8b2cff 100%);
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4s linear infinite;
}

@keyframes titleShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.rewards-header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(14, 17, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 44, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rewards-header-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0ff00;
  box-shadow: 0 0 12px rgba(208, 255, 0, 0.7);
  animation: livePulse 1.5s ease-in-out infinite;
}

/* ── How It Works ── */

.how-it-works {
  margin-bottom: 22px;
  padding: 24px 28px;
  background: #0e111a;
  border: 1px solid #131a27;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(35, 49, 73, 0.45);
}

.how-it-works-kicker {
  display: block;
  color: #425a69;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.how-it-works-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 180px;
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 44, 255, 0.12), rgba(19, 26, 39, 0.95));
  border: 1px solid rgba(139, 44, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.how-step:hover .how-step-icon {
  transform: translateY(-3px);
}

.how-step-label {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.how-step-desc {
  font-size: 12px;
  font-weight: 600;
  color: #88969c;
  text-align: center;
  line-height: 1.35;
}

.how-step-arrow {
  display: flex;
  align-items: center;
  padding: 0 12px;
  opacity: 0.5;
}

.rewards-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
  margin-bottom: 18px;
}

.rewards-intro-card,
.rewards-board,
.redemptions-section {
  background: #0e111a;
  border: 1px solid #131a27;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(35, 49, 73, 0.45);
}

.rewards-intro-card {
  min-height: 180px;
}

.rewards-intro-card-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at right top, rgba(136, 108, 255, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(19, 26, 39, 0.98), rgba(14, 17, 26, 1));
}

.rewards-intro-kicker,
.rewards-board-kicker,
.redemptions-kicker,
.points-bar-label,
.reward-card-price-label {
  color: #425a69;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rewards-intro-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  max-width: 18ch;
}

.rewards-intro-text,
.rewards-board-copy,
.points-bar-note {
  margin-top: 10px;
  color: #88969c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.points-bar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at top left, rgba(208, 255, 0, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(19, 26, 39, 1), rgba(14, 17, 26, 1));
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background-clip: padding-box;
}

/* Rotating border glow */
.points-bar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(208, 255, 0, 0.5),
    rgba(136, 108, 255, 0.4),
    rgba(0, 180, 255, 0.3),
    rgba(208, 255, 0, 0.1),
    rgba(208, 255, 0, 0.5)
  );
  z-index: -1;
  animation: rotateBorderGlow 4s linear infinite;
}

.points-bar::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(19, 26, 39, 1), rgba(14, 17, 26, 1));
  z-index: -1;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorderGlow {
  to { --border-angle: 360deg; }
}

.points-bar-top,
.rewards-board-head,
.redemptions-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.points-bar-status {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(208, 255, 0, 0.22);
  background: rgba(208, 255, 0, 0.08);
  color: #d0ff00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.points-bar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Sparkle stars near points value */
.points-bar-main::before,
.points-bar-main::after {
  content: '\2726';
  position: absolute;
  color: #cffe1a;
  pointer-events: none;
  animation: sparkleFloat 2s ease-in-out infinite;
}
.points-bar-main::before {
  top: -6px;
  right: -18px;
  font-size: 14px;
  animation-delay: 0s;
}
.points-bar-main::after {
  top: 6px;
  right: -30px;
  font-size: 10px;
  animation-delay: 0.7s;
  opacity: 0.7;
}

@keyframes sparkleFloat {
  0%, 100% { opacity: 0.3; transform: scale(0.7) translateY(0); }
  50% { opacity: 1; transform: scale(1.2) translateY(-4px); }
}

.points-bar-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(208, 255, 0, 0.35), 0 0 30px rgba(208, 255, 0, 0.15);
  animation: pointsGlow 3s ease-in-out infinite;
}

@keyframes pointsGlow {
  0%, 100% { text-shadow: 0 0 12px rgba(208, 255, 0, 0.35), 0 0 30px rgba(208, 255, 0, 0.15); }
  50% { text-shadow: 0 0 20px rgba(208, 255, 0, 0.55), 0 0 50px rgba(208, 255, 0, 0.25), 0 0 80px rgba(208, 255, 0, 0.1); }
}

/* Confetti particles */
.confetti-particle {
  position: fixed;
  z-index: 99999;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiBurst 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 60px), var(--dy, -80px)) rotate(540deg) scale(0.2);
  }
}

.rewards-board,
.redemptions-section {
  padding: 22px;
}

.rewards-board-title,
.redemptions-title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.category-tab {
  padding: 10px 16px;
  border-radius: 5px;
  border: 1px solid #223044;
  background: #131a27;
  color: #88969c;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover,
.category-tab.active {
  color: #ffffff;
  border-color: rgba(136, 108, 255, 0.4);
  background: linear-gradient(180deg, rgba(136, 108, 255, 0.18), rgba(19, 26, 39, 0.95));
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reward-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at right bottom, rgba(68, 84, 112, 0.18), transparent 34%),
    #0e111a;
  border: 1px solid #1a2436;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.reward-card:hover {
  transform: translateY(-2px);
  border-color: #2a3952;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.reward-card.sold-out,
.reward-card.locked {
  opacity: 0.82;
}

.reward-card[data-category="tech"] .reward-card-media {
  background: radial-gradient(circle at top, rgba(136, 108, 255, 0.3), rgba(19, 26, 39, 1));
}

.reward-card[data-category="voucher"] .reward-card-media {
  background: radial-gradient(circle at top, rgba(208, 255, 0, 0.2), rgba(19, 26, 39, 1));
}

.reward-card[data-category="digital"] .reward-card-media {
  background: radial-gradient(circle at top, rgba(0, 180, 255, 0.25), rgba(19, 26, 39, 1));
}

.reward-card[data-category="exclusive"] .reward-card-media {
  background: radial-gradient(circle at top, rgba(255, 164, 102, 0.25), rgba(19, 26, 39, 1));
}

.reward-card-media {
  width: 94px;
  height: 94px;
  border-radius: 5px;
  border: 1px solid #24344f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.reward-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reward-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.reward-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.reward-card-badge,
.reward-card-flag,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reward-card-badge[data-cat="tech"] {
  background: rgba(136, 108, 255, 0.14);
  border: 1px solid rgba(136, 108, 255, 0.25);
  color: #d6c8ff;
}

.reward-card-badge[data-cat="voucher"] {
  background: rgba(208, 255, 0, 0.1);
  border: 1px solid rgba(208, 255, 0, 0.18);
  color: #d0ff00;
}

.reward-card-badge[data-cat="digital"] {
  background: rgba(0, 180, 255, 0.12);
  border: 1px solid rgba(0, 180, 255, 0.18);
  color: #8adfff;
}

.reward-card-badge[data-cat="exclusive"] {
  background: rgba(255, 164, 102, 0.12);
  border: 1px solid rgba(255, 164, 102, 0.2);
  color: #ffbf8a;
}

.reward-card-flag {
  background: rgba(66, 90, 105, 0.24);
  border: 1px solid rgba(86, 115, 135, 0.24);
  color: #c0d0d8;
}

.reward-card-flag.danger {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.24);
  color: #ff8e8e;
}

.reward-card-name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.reward-card-desc {
  margin-top: 6px;
  color: #88969c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.reward-card-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.reward-card-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reward-card-price-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.reward-card-btn {
  min-width: 128px;
  padding: 11px 14px;
  border-radius: 5px;
  border: 1px solid rgba(136, 108, 255, 0.28);
  background: linear-gradient(180deg, rgba(136, 108, 255, 0.18), rgba(19, 26, 39, 0.95));
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(12, 16, 25, 0.8), inset 0 1px 0 rgba(193, 168, 255, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.reward-card-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(211, 135, 255, 0.5);
}

.reward-card-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.reward-card-btn.sold-out-btn {
  border-color: rgba(255, 80, 80, 0.2);
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.08), rgba(19, 26, 39, 0.95));
}

.rewards-grid-empty,
.rewards-grid-loading {
  grid-column: 1 / -1;
  padding: 36px 18px;
  background: #131a27;
  border: 1px dashed #24344f;
  border-radius: 5px;
  color: #88969c;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.rewards-grid-empty .rewards-empty-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.rewards-grid-empty .rewards-empty-desc {
  font-size: 13px;
  font-weight: 600;
  color: #88969c;
  max-width: 400px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.rewards-empty-reset {
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(136, 108, 255, 0.4);
  background: rgba(136, 108, 255, 0.12);
  color: #c4b5ff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.rewards-empty-reset:hover {
  background: rgba(136, 108, 255, 0.2);
  border-color: rgba(136, 108, 255, 0.55);
}

.rewards-empty-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(136, 108, 255, 0.25);
}

.rewards-grid.is-loading {
  min-height: 220px;
}

.reward-skeleton {
  min-height: 292px;
  border-radius: 8px;
  background: linear-gradient(180deg, #151a24 0%, #0e111a 100%);
  border: 1px solid #223044;
  position: relative;
  overflow: hidden;
}

.reward-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.045) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: rewardSkShimmer 1.25s ease-in-out infinite;
}

@keyframes rewardSkShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.redemptions-title-wrap {
  margin-bottom: 16px;
}

.redemptions-table-wrap {
  overflow-x: auto;
}

.redemptions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.redemptions-table thead th {
  padding: 0 14px 2px;
  color: #425a69;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.redemptions-table thead th:last-child,
.redemptions-table tbody td:last-child {
  text-align: right;
}

.redemptions-table tbody tr {
  background: #131a27;
}

.redemptions-table tbody td {
  padding: 16px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid #1d2a40;
  border-bottom: 1px solid #1d2a40;
}

.redemptions-table tbody td:first-child {
  border-left: 1px solid #1d2a40;
  border-radius: 5px 0 0 5px;
}

.redemptions-table tbody td:last-child {
  border-right: 1px solid #1d2a40;
  border-radius: 0 5px 5px 0;
}

.redemptions-empty {
  text-align: center;
  color: #88969c;
}

.status-badge.pending {
  background: rgba(255, 200, 50, 0.12);
  border: 1px solid rgba(255, 200, 50, 0.22);
  color: #ffd86e;
}

.status-badge.approved {
  background: rgba(80, 255, 128, 0.1);
  border: 1px solid rgba(80, 255, 128, 0.18);
  color: #8dffad;
}

.status-badge.shipped {
  background: rgba(0, 180, 255, 0.12);
  border: 1px solid rgba(0, 180, 255, 0.18);
  color: #8adfff;
}

.status-badge.rejected {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.18);
  color: #ff8e8e;
}

@media (max-width: 1280px) {
  .rewards-overview,
  .rewards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .main-content {
    padding: 78px 18px 30px;
  }
}

@media (max-width: 768px) {
  .hero-content,
  .points-bar-top,
  .rewards-board-head,
  .redemptions-title-wrap,
  .reward-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header {
    padding: 32px 22px;
  }

  .page-title-main {
    font-size: 36px;
  }

  .title-icon,
  .title-icon-bg {
    width: 50px;
  }

  .how-it-works {
    padding: 20px 16px;
  }

  .how-it-works-steps {
    flex-direction: column;
    gap: 6px;
  }

  .how-step {
    flex-direction: row;
    max-width: 100%;
    gap: 12px;
  }

  .how-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .how-step-desc {
    text-align: left;
  }

  .how-step-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .rewards-intro-card-copy,
  .points-bar,
  .rewards-board,
  .redemptions-section {
    padding: 18px;
  }

  .reward-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 12px;
  }

  .reward-card-media {
    width: 78px;
    height: 78px;
  }

  .reward-card-name {
    font-size: 16px;
  }

  .reward-card-btn {
    width: 100%;
  }

  .redemptions-table {
    border-spacing: 0 8px;
  }

  .redemptions-table thead {
    display: none;
  }

  .redemptions-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .redemptions-table tbody td {
    border-radius: 0;
    border-left: 1px solid #1d2a40;
    border-right: 1px solid #1d2a40;
    font-size: 12px;
  }

  .redemptions-table tbody td:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .main-content {
    padding: 74px 12px 24px;
  }

  .page-header {
    padding: 28px 16px;
  }

  .page-title-main {
    font-size: 28px;
  }

  .title-icon,
  .title-icon-bg {
    width: 40px;
  }

  .page-title-sub {
    font-size: 10px;
  }

  .how-step-icon {
    width: 40px;
    height: 40px;
  }

  .how-step-label {
    font-size: 13px;
  }

  .rewards-intro-title {
    font-size: 22px;
  }

  .points-bar-value {
    font-size: 32px;
  }

  .reward-card {
    grid-template-columns: 1fr;
  }

  .reward-card-media {
    width: 100%;
    height: 110px;
  }

  .reward-card-main {
    gap: 0;
  }

  .reward-card-price,
  .reward-card-foot {
    width: 100%;
  }

  .category-tab {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  position: relative;
  opacity: 0.3;
}

/* Ghost/empty box icon built with CSS */
.empty-state-icon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 40px;
  border: 3px solid #5a7080;
  border-radius: 4px 4px 8px 8px;
  border-top: none;
}

.empty-state-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 20px;
  border: 3px solid #5a7080;
  border-radius: 6px 6px 0 0;
  border-bottom: 3px solid #5a7080;
}

.empty-state-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.empty-state-cta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5a7080;
  line-height: 1.5;
}

/* ===================== SCROLL TO TOP ===================== */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c2bd9 0%, #8b2cff 100%);
  border: 1px solid rgba(136, 108, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 44, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #7c3ce9 0%, #a855f7 100%);
  box-shadow: 0 6px 28px rgba(139, 44, 255, 0.5);
  transform: translateY(-2px) scale(1.05);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* ===================== REDEEM MODAL ===================== */
.redeem-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.redeem-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.redeem-modal {
  width: 380px;
  max-width: 92vw;
  background: #0e111a;
  border: 1px solid #1d2a40;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(136, 108, 255, 0.08);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redeem-modal-overlay.active .redeem-modal {
  transform: translateY(0) scale(1);
}

.redeem-modal-img {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(136, 108, 255, 0.2), transparent 60%), #131a27;
}

.redeem-modal-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.redeem-modal-body {
  padding: 24px;
  text-align: center;
}

.redeem-modal-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #425a69;
  margin-bottom: 8px;
}

.redeem-modal-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.redeem-modal-cost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(208, 255, 0, 0.08);
  border: 1px solid rgba(208, 255, 0, 0.18);
  margin-bottom: 6px;
}

.redeem-modal-cost svg {
  flex-shrink: 0;
}

.redeem-modal-cost span {
  font-size: 18px;
  font-weight: 800;
  color: #cffe1a;
}

.redeem-modal-footer {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
}

.redeem-modal-btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.redeem-modal-btn.cancel {
  background: #131a27;
  border: 1px solid #223044;
  color: #88969c;
}

.redeem-modal-btn.cancel:hover {
  background: #1c2740;
  color: #ffffff;
}

.redeem-modal-btn.confirm {
  background: linear-gradient(135deg, #6c2bd9 0%, #8b2cff 100%);
  border: 1px solid rgba(136, 108, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 44, 255, 0.25);
}

.redeem-modal-btn.confirm:hover {
  box-shadow: 0 6px 24px rgba(139, 44, 255, 0.45);
  transform: translateY(-1px);
}

/* ── Toolbar: search + sort ── */
.rewards-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 24px;
  margin: 18px 0 12px;
}

.rewards-toolbar .rewards-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 440px;
  margin: 0;
}

.rewards-sort-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.rewards-sort-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #425a69;
}

.rewards-sort {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 38px 10px 14px;
  background: #131a27 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' stroke='%238b6cff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #223044;
  border-radius: 5px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 200px;
}

.rewards-sort:hover {
  border-color: rgba(136, 108, 255, 0.35);
}

.rewards-sort:focus-visible {
  border-color: rgba(136, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(136, 108, 255, 0.12);
}

/* Search field (inside toolbar) */
.rewards-search-wrap {
  position: relative;
}

.rewards-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #425a69;
  pointer-events: none;
  transition: color 0.2s ease;
}

.rewards-search {
  width: 100%;
  padding: 11px 16px 11px 40px;
  background: #131a27;
  border: 1px solid #223044;
  border-radius: 5px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rewards-search::placeholder {
  color: #425a69;
  font-weight: 600;
}

.rewards-search:focus {
  border-color: rgba(136, 108, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(136, 108, 255, 0.08), 0 0 20px rgba(136, 108, 255, 0.06);
  background: #0e111a;
}

.rewards-search:focus + .rewards-search-icon,
.rewards-search:focus ~ .rewards-search-icon {
  color: #8b6cff;
}

.rewards-search-wrap .rewards-search-icon {
  z-index: 1;
}

.rewards-search:focus ~ .rewards-search-icon {
  color: #886cff;
}

/* ── Improved category tabs ── */
.category-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 6px;
}

.category-tab {
  position: relative;
  padding: 10px 18px;
  border-radius: 5px 5px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #5a7080;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

.category-tab:focus-visible {
  outline: none;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(136, 108, 255, 0.5);
  border-radius: 5px;
}

.category-tab .tab-count {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(90, 112, 128, 0.2);
  color: inherit;
  vertical-align: middle;
  transition: background 0.3s ease, color 0.3s ease;
}

.category-tab:hover {
  color: #a8b8c4;
  background: rgba(19, 26, 39, 0.5);
}

.category-tab.active {
  color: #ffffff;
  background: rgba(136, 108, 255, 0.08);
  border-color: rgba(136, 108, 255, 0.15);
  border-bottom-color: transparent;
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 8px);
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #8b2cff, #d387ff);
  box-shadow: 0 0 12px rgba(139, 44, 255, 0.5), 0 0 24px rgba(139, 44, 255, 0.2);
  animation: tabGlowPulse 2s ease-in-out infinite;
}

.category-tab.active .tab-count {
  background: rgba(136, 108, 255, 0.25);
  color: #d6c8ff;
}

@keyframes tabGlowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(139, 44, 255, 0.5), 0 0 24px rgba(139, 44, 255, 0.2); }
  50% { box-shadow: 0 0 16px rgba(139, 44, 255, 0.7), 0 0 32px rgba(139, 44, 255, 0.3); }
}

/* Category tab icons via ::before */
.category-tab[data-category="all"]::before       { content: "\2726 "; }
.category-tab[data-category="tech"]::before      { content: "\2699 "; }
.category-tab[data-category="voucher"]::before   { content: "\1F3AB "; }
.category-tab[data-category="digital"]::before   { content: "\2601 "; }
.category-tab[data-category="exclusive"]::before { content: "\2B50 "; }

.category-tab-indicator {
  display: none;
}

/* ── Card fade transition ── */
.reward-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.reward-card.card-fade-out {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reward-card.card-fade-in {
  animation: cardFadeIn 0.35s ease forwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive adjustments for search ── */
@media (max-width: 520px) {
  .rewards-toolbar .rewards-search-wrap {
    max-width: 100%;
    flex-basis: 100%;
  }

  .rewards-sort {
    width: 100%;
    min-width: 0;
  }

  .category-tab::before {
    display: none;
  }
}

/* ── Redeem modal: nota 72h ── */
.redeem-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(136, 150, 156, 0.08);
  border: 1px solid rgba(136, 150, 156, 0.15);
  border-radius: 8px;
  font-size: 11px;
  color: #88969c;
  line-height: 1.5;
}
.redeem-modal-note strong { color: #cffe1a; }

/* ── Order success overlay ── */
.order-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.order-success-overlay.active { opacity: 1; }

.order-success-box {
  background: #0e111a;
  border: 1px solid #1c2740;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.order-success-overlay.active .order-success-box {
  transform: translateY(0) scale(1);
}

.order-success-icon {
  width: 70px;
  height: 70px;
  background: rgba(207, 254, 26, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.order-success-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.order-success-product {
  font-size: 14px;
  font-weight: 700;
  color: #cffe1a;
}

.order-success-email {
  font-size: 13px;
  color: #88969c;
  line-height: 1.5;
}
.order-success-email strong { color: #ffffff; }

.order-success-timer {
  font-size: 13px;
  color: #88969c;
  margin-top: -4px;
}
.order-success-timer strong { color: #cffe1a; }

.order-success-close {
  margin-top: 8px;
  padding: 12px 32px;
  background: #cffe1a;
  color: #06080e;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.5px;
}
.order-success-close:hover {
  background: #d4ff3a;
  transform: scale(1.03);
}

/* ── Orders table: tracking chip ── */
.tracking-chip {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(139, 44, 255, 0.15);
  border: 1px solid rgba(139, 44, 255, 0.35);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #d387ff;
  letter-spacing: 0.3px;
  font-family: monospace;
}
.tracking-none {
  font-size: 12px;
  color: #3a4f5c;
}
.tracking-cell { white-space: nowrap; }
.orders-product-name { font-weight: 600; }

/* ── Redemptions section: subtitle ── */
.redemptions-subtitle {
  font-size: 12px;
  color: #3a4f5c;
  margin-top: 6px;
  font-weight: 500;
}
