/* ── Rewards frontend page ── */

.rw-page{
  min-height: 80vh;
}

/* Hero */
.rw-hero{
  position: relative;
  padding: 60px 20px 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,135,71,.12) 0%, transparent 65%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.rw-hero__inner{
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rw-hero__eyebrow{
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(196,135,71,.75);
}
.rw-hero__title{
  font-size: 52px;
  font-weight: 950;
  letter-spacing: .4px;
  margin: 0;
  background: linear-gradient(135deg,#ffd77a,#c9912a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.rw-hero__sub{
  color: rgba(170,180,197,.9);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}
.rw-hero__cta{
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg,#ffd77a,#c9912a);
  color: #1b1206;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-top: 6px;
  transition: filter .15s;
}
.rw-hero__cta:hover{ filter: brightness(1.07); }

/* Shell */
.rw-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* How it works */
.rw-how{
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.rw-how__item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 18px;
}
.rw-how__num{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ffd77a,#c9912a);
  color: #1b1206;
  font-weight: 950;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rw-how__text{
  font-size: 13px;
  color: rgba(170,180,197,.90);
  line-height: 1.55;
}

/* Section */
.rw-section{ display: flex; flex-direction: column; gap: 24px; }
.rw-section__head{ display: flex; flex-direction: column; gap: 6px; }
.rw-section__title{ font-size: 28px; font-weight: 950; margin: 0; }
.rw-section__sub{ color: rgba(170,180,197,.8); font-size: 14px; margin: 0; }

/* Grid */
.rw-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* Card */
.rw-card{
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .15s, border-color .15s;
}
.rw-card:hover{
  transform: translateY(-3px);
  border-color: rgba(196,135,71,.22);
}
.rw-card--vip{
  border-color: rgba(196,135,71,.18);
  background: rgba(196,135,71,.04);
}
.rw-card--vip:hover{ border-color: rgba(196,135,71,.38); }

/* Thumbnail */
.rw-card__thumb{
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}
.rw-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rw-card__thumb--empty{
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,135,71,.06);
}
.rw-card__thumb-icon{ font-size: 36px; opacity: .5; }

/* Card body */
.rw-card__body{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}
.rw-card__badge{
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .8px;
  text-transform: uppercase;
  width: fit-content;
}
.rw-card__badge--lossback{ background: rgba(255,140,80,.12); border:1px solid rgba(255,140,80,.28); color:rgba(255,200,160,.90); }
.rw-card__badge--cashback { background: rgba(80,200,120,.12); border:1px solid rgba(80,200,120,.28); color:rgba(140,240,170,.90); }
.rw-card__badge--bonus    { background: rgba(120,180,255,.12); border:1px solid rgba(120,180,255,.28); color:rgba(180,220,255,.90); }
.rw-card__badge--custom   { background: rgba(196,135,71,.12); border:1px solid rgba(196,135,71,.28); color:rgba(243,208,138,.90); }
.rw-card__badge--vip      { background: linear-gradient(135deg,rgba(255,215,122,.15),rgba(201,145,42,.15)); border:1px solid rgba(255,215,122,.30); color:rgba(255,215,122,.95); }

.rw-card__title{
  font-size: 16px;
  font-weight: 900;
  color: rgba(233,238,247,.97);
  line-height: 1.3;
}
.rw-card__desc{
  font-size: 13px;
  color: rgba(170,180,197,.80);
  line-height: 1.5;
}
.rw-card__threshold{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0,0,0,.22);
  border-radius: 10px;
  margin-top: 4px;
}
.rw-card__threshold-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(170,180,197,.65);
}
.rw-card__threshold-val{
  font-size: 18px;
  font-weight: 950;
  color: rgba(233,238,247,.96);
}
.rw-card__reward{
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rw-card__reward-val{
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg,#ffd77a,#c9912a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rw-card__reward-note{
  font-size: 12px;
  color: rgba(170,180,197,.70);
  font-style: italic;
}
.rw-card__period{
  font-size: 11px;
  color: rgba(170,180,197,.50);
  letter-spacing: .3px;
  margin-top: auto;
  padding-top: 4px;
}
.rw-card__claim{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg,#ffd77a,#c9912a);
  color: #1b1206;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: 6px;
  transition: filter .15s;
}
.rw-card__claim:hover{ filter: brightness(1.07); }
.rw-card__claim--locked{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(170,180,197,.70);
}
.rw-card__claim--locked:hover{ filter: none; border-color: rgba(196,135,71,.25); }

.rw-empty{
  text-align: center;
  padding: 60px 20px;
  color: rgba(170,180,197,.55);
  font-size: 15px;
}

@media(max-width:520px){
  .rw-hero__title{ font-size: 38px; }
  .rw-grid{ grid-template-columns: 1fr; }
}

/* ── Claim states ── */
.rw-card__claim--claimed{
  background: rgba(60,200,100,.10);
  border: 1px solid rgba(60,200,100,.25);
  color: rgba(120,240,160,.90);
  cursor: default;
  font-size: 13px;
}
.rw-card__claim--claimed:hover{ filter: none; }

.rw-card__locked{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.rw-card__locked-bar{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.rw-card__locked-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg,#c9912a,#ffd77a);
  transition: width .4s ease;
  min-width: 4px;
}
.rw-card__locked-label{
  font-size: 12px;
  color: rgba(170,180,197,.60);
  text-align: center;
}

/* ── Claim button as button element ── */
.rw-card__claim--btn{
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

/* ── Claim Modal ── */
.rwm-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rwm-box{
  background: #14120e;
  border: 1px solid rgba(196,135,71,.22);
  border-radius: 22px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.rwm-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rwm-title{
  font-size: 20px;
  font-weight: 950;
  color: rgba(233,238,247,.97);
  line-height: 1.2;
}
.rwm-sub{
  font-size: 13px;
  color: rgba(170,180,197,.70);
  margin-top: 4px;
  font-style: italic;
}
.rwm-close{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,238,247,.70);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.rwm-close:hover{ background: rgba(255,80,80,.15); color: rgba(255,190,190,.9); }

/* Form */
.rwm-form{ display: flex; flex-direction: column; gap: 16px; }
.rwm-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rwm-field label{
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(196,135,71,.80);
}
.rwm-field input,
.rwm-field select,
.rwm-field textarea{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 10px 13px;
  color: rgba(233,238,247,.92);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.rwm-field select option{ background: #14120e; }
.rwm-field input:focus,
.rwm-field select:focus,
.rwm-field textarea:focus{ border-color: rgba(196,135,71,.45); }
.rwm-field textarea{ resize: vertical; min-height: 80px; }

/* Upload zone */
.rwm-upload{
  border: 1.5px dashed rgba(255,255,255,.14);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.rwm-upload:hover,
.rwm-upload.is-drag{
  border-color: rgba(196,135,71,.40);
  background: rgba(196,135,71,.05);
}
.rwm-upload input[type=file]{ display: none; }
.rwm-upload__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
}
.rwm-upload__icon{ font-size: 24px; }
.rwm-upload__text{ font-size: 14px; color: rgba(233,238,247,.80); font-weight: 600; }
.rwm-upload__hint{ font-size: 12px; color: rgba(170,180,197,.50); }
.rwm-upload__preview{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.rwm-upload__preview img{
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}
.rwm-upload__remove{
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,80,80,.10);
  border: 1px solid rgba(255,80,80,.20);
  color: rgba(255,190,190,.85);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}

/* Error */
.rwm-error{
  padding: 10px 14px;
  background: rgba(255,80,80,.10);
  border: 1px solid rgba(255,80,80,.25);
  border-radius: 10px;
  color: rgba(255,190,190,.95);
  font-size: 13px;
}

/* Actions */
.rwm-actions{ display: flex; gap: 10px; }
.rwm-submit{ flex: 1; height: 44px; font-size: 14px; }
.rwm-cancel{ height: 44px; }

/* Success */
.rwm-success{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  text-align: center;
}
.rwm-success__icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(60,200,100,.15);
  border: 1px solid rgba(60,200,100,.30);
  color: rgba(120,240,160,.95);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rwm-success__title{ font-size: 20px; font-weight: 950; color: rgba(233,238,247,.97); }
.rwm-success__sub{ font-size: 14px; color: rgba(170,180,197,.80); max-width: 340px; line-height: 1.6; }

/* ── Modal buttons ── */
.rwm-submit{
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  border: 1px solid rgba(255,210,120,.35);
  background: linear-gradient(135deg,#ffd77a 0%,#c9912a 100%);
  color: #1b1206;
  transition: filter .15s;
  font-family: inherit;
}
.rwm-submit:hover{ filter: brightness(1.07); }
.rwm-submit:disabled{ opacity: .55; cursor: not-allowed; filter: none; }

.rwm-cancel{
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(232,224,199,.18);
  color: rgba(255,245,230,.88);
  transition: border-color .15s;
  font-family: inherit;
}
.rwm-cancel:hover{ border-color: rgba(255,210,120,.30); }

/* ── Bonus toggle group ── */
.rwm-toggle-group{
  display: flex;
  gap: 10px;
}
.rwm-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  flex: 1;
  justify-content: center;
  font-size: 14px;
  color: rgba(233,238,247,.85);
  font-weight: 600;
}
.rwm-toggle input[type=radio]{ display: none; }
.rwm-toggle:has(input:checked){
  border-color: rgba(196,135,71,.55);
  background: rgba(196,135,71,.12);
  color: rgba(243,208,138,.95);
}
.rwm-toggle:hover{ border-color: rgba(196,135,71,.30); }
