:root {
  --black: #000;
  --primary: #000;
  --green : #01AC26;
  --big-font: 'Malvie', sans-serif;
}

body{
  background-color: #FF0000;
  background-size: cover;
  background-position: top;
  font-family: 'Malvie', sans-serif;
  background-image: url('../images/bg.png');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

header {
  width: 100%;
  background: linear-gradient(to right, #c60000, #d80000, #f11212);
  padding: 10px 20px;
  height: 100px;
}

.body{
  height: calc(100% - 100px);
  position: absolute;
  width: 100%;
  background-repeat: no-repeat;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 70px;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.header-nav .active{
  color: yellow;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.username {

  font-weight: bold;
}

/* User pill / trigger */
.user-dropdown { position:relative; }
.user-trigger{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.35);
  color:#fff; padding:6px 10px; border-radius:999px; cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,0.15); backdrop-filter: blur(2px);
}
.user-trigger .chevron{ font-size:12px; opacity:0.85; }
.avatar{
  width:28px; height:28px; display:grid; place-items:center;
  background:#ffe24d; color:#b40000; font-weight:800; border-radius:50%;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.username{ font-weight:700; }

/* Dropdown */
.dropdown-panel{
  position:absolute; top:calc(100% + 8px); right:0;
  min-width:190px; background:#fff; border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  padding:8px; display:none; z-index:50;
}
.user-dropdown.open .dropdown-panel{ display:block; }
.dropdown-item{
  display:flex; align-items:center; gap:10px;
  width:100%; padding:10px 12px; border-radius:8px;
  color:#222; text-decoration:none; background:transparent; border:none;
}
.dropdown-item:hover{ background:#f3f4f6; }
.dropdown-item i{ width:16px; text-align:center; }
.dropdown-item.danger{ color:#b00020; }
.dropdown-item.danger:hover{ background:#fdecec; }

/* Keep your existing points box/bell styles */

.points-box {
  background: linear-gradient(to bottom, #1aa31a, #0c6f0c);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid white;
  box-shadow: 0 4px 0 #0b4f0b, 0 6px 10px rgba(0, 0, 0, 0.4);
}

.points-box .points {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: yellow;
}

.points-box .label {
  font-size: 11px;
  text-transform: uppercase;
}

.bell {
  font-size: 24px;
  cursor: pointer;
}

.yellow-strip {
  width: 100%;
  height: 6px;
  background: #ffc400;
}


.container{
  width: 90%;
  height: 100%;
}

.div-left,
.div-right{
  width: 50%;
  height: 100%;
}

.div-left{
  float: left;
  display: flex;
  align-items: start;
  justify-content: center;
  margin-top: 20px;
}

.div-right{
  float: right;
  padding-top: 20px;
  padding-bottom: 20px;
}

.div-left img{
  width: 75%;
}

.boxx{
  width: 70%;
  align-self: center;
  justify-self: center;
}


.signup-container {
  background: linear-gradient(to bottom, #fff, #f8f8d8);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.form-control-x{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 15px;
  /*gap: 20px;*/
}

.text-danger{
  font-size: 13px;
}

.form-control-x-term{
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
}

.form-control-x label{
  width: 50%;
}

.signup-form label {
  display: block;
  color: #000;
  font-weight: bold;
  margin: 10px 0 5px;
  font-size: 14px;
}

.input-style{
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #ccc;
  margin-bottom: 0px;
  font-size: 14px;
  height: 45px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.signup-form select {
  color: #000;
}

.terms {
  
}

.terms-text {
  color: #000;
  font-size: 12px;
}

.signup-btn {
  width: 100%;
  background: #01AC26;
  color: white;
  font-weight: bold;
  /*font-style: italic;*/
  font-size: 18px;
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 15px;
  cursor: pointer;
  margin-top: 20px;
  width: 50%;
  padding: 10px 20px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.signup-btn:hover {
  background: #0b8d0b;
}

.food{
  width: 60%;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.character{
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.character img{
  width: 200px;
}

.badge{
  background-color: yellow;
  padding: 5px;
  color: #000;
}

.badge-icon i{
  font-size: 22px !important;
}

.badge-icon span{
  background-color: yellow;
  font-weight: bold !important;
}

.extra-design .left,
.extra-design .right{
  position: fixed;
  bottom: 0px;
  z-index: 0;
}

.extra-design .right{
   right: 0px;
}

.extra-design img{
  height: 500px;
}

.gift-grid-holder{
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  display: absolute;
   z-index: 1000;
}

/* Grid */
.gift-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:24px;
  padding:20px;
  width: 100%;
  z-index: 100;
}

.gift-card{
  border-radius:16px;
  overflow:hidden;
  background: linear-gradient(180deg,#fff 0%, #fff7c9 100%); 
  box-shadow: 0 2px 0 rgba(0,0,0,.18) inset;
  display:flex;
  flex-direction:column;
  min-height: 200px;
}

.gift-media{
  position:relative;
  background:#f0f0f0;
  height: 160px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
  margin: 16px 16px 10px;
  overflow:hidden;
}
.gift-media::after{             
  content:"";
  position:absolute;
  left:0; right:0; bottom:-10px;
  height:10px;
  border-radius:0 0 10px 10px;
  background: #e7da82;
  box-shadow: 0 6px 10px rgba(0,0,0,.25);
}
.gift-media img{
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.gift-body{
  padding: 10px 16px 18px;
}

.gift-title{
  margin: 8px 0 2px;
  color:#e40000;
  font-weight: 800;
  font-size: 16px;
}
.gift-sub{
  margin: 0 0 10px;
  color:#555;
  font-size: small;
}
.gift-points{
  margin: 0;
  color:#000;
  font-size: 16px;
}
.gift-points strong{
  font-weight: 900;
}

.buying{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.buying button{
  background-color: var(--green);
  color: #fff;
  border: 1px solid yellow;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: small;
  display: flex;
  align-items: center;     
  justify-content: center;  
  gap: 6px;          
}

.btn-success:hover,
.buying button:hover {
  background: #0b8d0b;
}

.buying button img{
  width: 25px;
}

.btn-success{
   background-color: var(--green);
   border-color: var(--green);
}

button{
  border: 1px solid #fff !important;
  border-radius: 10px !important;
}



.sideimg{
  width: 100% !important;
  margin-top: 30px;
}


.redeem-field{
  position: relative;
  margin: 20px auto;
  padding: 16px 16px 8px;
  background: linear-gradient(#fff, #fff7d8);
  border-radius: 10px;
}

/* Pack image overlaps the input area */
.redeem-field .pack{
  position: absolute;
  left: 0;                 
  bottom: 0px;            
  width: 150px;            
  transform: translateX(-15%); 
  pointer-events: none;
}

/* Red italic title */
.redeem-label{
  display: block;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 16px !important;
}

.redeem-field .input-style{
  text-align: center;
}

/* Input styled like your mock */
.redeem-input{
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #ddd;
  box-shadow: 0 6px 12px rgba(0,0,0,.2);
  background: #fff;
  font-size: 16px;
  padding: 0 14px 0 140px; 
  outline: none;
}


.promo-banner{
  width: 100%;
  background: linear-gradient(180deg,#FFC400 0%, #FFB300 100%);
  border-top: 6px solid #C81300;     /* red line on top */
  border-bottom: 6px solid #C81300;  /* red line at bottom */
  padding: 14px 16px;
  text-align: center;
  position: relative;
    overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Text style */
.promo-banner p{
  margin: 0;
  color: #111;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 32px);
}

.marquee {
  display: inline-block;
  padding-left: 100%; /* Push start position to the right */
  animation: marquee 12s linear infinite;
}

.marquee p {
  display: inline-block;
}

@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}



/*leaderboard*/

/* Background wrapper like your art */


.leaderboard-wrap{
  width: 80%;
  /*padding: 24px 16px 40px;*/
  /*background: radial-gradient(ellipse at center, #0c4a92 0%, #0a3c77 55%, #072e5d 100%);*/
  border-radius: 20px;
  position: relative;
  color:#111;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;

}

.leaderboard-wrap-2{
  width: 60%;
  padding-bottom: 30px;
  padding-top: 30px;
}


/* Podium */
.podium{
  display:grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap:20px;
  align-items:end;
  justify-items:center;
  margin-bottom:28px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.card{
  /*background: linear-gradient(180deg, #ffe66a 0%, #fcd34d 10%, #f97316 70%, #dc2626 100%);
  border-radius:14px;
  padding:8px;
  box-shadow: 0 12px 16px rgba(0,0,0,.35);
  border: 3px solid #fff;*/
  background-color: transparent;
  border: none;
}


.thumb{
 /* background: transparent;
  border-radius:10px;
  padding:14px;*/
  background: linear-gradient(180deg, #ffe66a 0%, #fcd34d 10%, #f97316 70%, #dc2626 100%);
  border-radius:14px;
  padding:8px;
  box-shadow: 0 12px 16px rgba(0,0,0,.35);
  border: 3px solid #fff;
  display:flex; align-items:center; justify-content:center;
  min-height: 160px;
  margin-left: 10px;
  margin-right: 10px;
}
.card.small .thumb{ min-height: 120px; }

.thumb img{ max-width:100%; max-height: 160px; object-fit:contain; }

.rank-badge{
  position:absolute; top:-14px; left:-14px;
  width:40px; height:40px; border-radius:999px;
  background: #ff1e1e; color:#fff; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 10px rgba(0,0,0,.35);
  border:3px solid #fff;
}
.rank-badge.star::after{
  content:"★"; position:absolute; top:-10px; left:28px; color:#ffd400; font-size:18px; text-shadow:0 1px 0 #b88900;
}

.plaque{
  margin-top:3px;
  background:#f4f5f7;
  border-radius:12px;
  padding:10px 14px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 10px 16px rgba(0,0,0,.25);
}
.plaque span{
  font-weight:800;  white-space:nowrap;
}
.medal{ width:24px; height:24px; object-fit:contain; }

/* Board/Table */
.board{
  margin-top: 10px;
  background:#fff;
  border-radius:18px;
  padding: 15px 30px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  overflow-y: auto;
}
.board-head{
  display:grid; grid-template-columns: 1.6fr .6fr .6fr;
  padding:12px 16px;
  border-radius:14px;
  color:#e11d1d; font-weight:900; 
  background: #fff;
  height: auto !important;
  margin-bottom: 0px;
}
.board-rows{
  list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:12px;
}
.row{
  display:grid; grid-template-columns: 1.6fr .6fr .6fr;
  padding:12px 12px;
  border-radius:18px;
  background: #B0D5FF;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.06);
}
.row .name{ font-weight:800; }

.terms{
  margin-top: 20px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  padding: 20px 20px;
  border-radius: 20px;
  text-align: center;
}

.terms h1{
  font-size: 25px;
}

.yellow{
  width: 100%;
  height: 10px;
  background: linear-gradient(180deg, #FFC400 0%, #FFB300 100%);
}


.dashboard-container {
  max-width: 900px;
  margin: 0px auto;
  padding: 20px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.tab-btn {
  background: #ffc400;
  border: none;
  padding: 10px 25px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  background: #ff3333;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.profile-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom: 30px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-header .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff3333;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: bold;
}

.welcome {
  color: #888;
  font-size: 14px;
}


.profile-header h2{
  margin-bottom: 0px;
  margin-top: 10px;
}

.stats-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 15px;
}

.stat-box {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.stat-label {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 40px;
  font-weight: bold;
}

.stat-value-big {
  font-size: 60px;
  font-weight: bold;
}

.text-green {
  color: #28a745;
}

.redeem-btn {
  margin-top: 10px;
  background: #28a745;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.glow{
  font-size: 20px;
  transition: transform 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
  animation: pulseGlowRed 1s infinite;
}

.redeem-btn:hover {
  transform: scale(1.05);
}

@keyframes pulseGlowRed {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); /* bootstrap red */
  }
  70% {
    box-shadow: 0 0 20px 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}


.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom: 30px;
}

.order-card {
  display: flex;
  gap: 15px;
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 15px;
}

.order-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.order-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.order-id {
  font-size: 13px;
  color: #555;
}

.order-status {
  font-size: 14px;
  font-weight: bold;
  margin: 3px 0;
}

.order-status.pending { color: orange; }
.order-status.complete { color: green; }
.order-status.failed { color: red; }
.order-status.processing { color: blue; }

.order-date {
  font-size: 12px;
  color: #777;
}

.empty-msg {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 20px;
}

.win-page{
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.win-page-2{
  width: 60% !important;
}

.noti .list-group-item{
  box-shadow: none;
  border: none;
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-top: 20px;
  text-align: left;
  margin-bottom: 10px;
}

.noti .fw-bold{
 margin-bottom: 10px;
}

.search-box{ position:relative; margin-bottom:0px; }
.search-input{
  width:100%; padding:14px 48px 14px 16px; border:none; border-radius:20px;
  background:#e5e5e5; outline:none; font-size:16px;
}
.search-clear,
.search-submit{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  border:0 !important; background:transparent !important; padding:6px 8px; cursor:pointer;
}
.search-icon{ font-size:18px; color:#0b4f0b; }
.board-rows .row.highlight{ background:#fff9d6;}
.d-none{ display:none !important; }


/* Responsive */
/*@media (max-width: 1100px){
  .gift-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 800px){
  .gift-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .gift-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .podium{ grid-template-columns: 1fr 1fr; }
  .card.big{ grid-column: 1 / -1; justify-self:center; }
  .board-head, .row{ grid-template-columns: 1fr .5fr .6fr; }
}
@media (max-width: 480px){
  .card.small{ width: 150px; }
  .card.big{ width: 190px; }
  .board{ padding:12px; }
  .board-head, .row{ grid-template-columns: 1fr .4fr .6fr; }
}

@media (max-width: 480px){
  .redeem-field .pack{ width: 100px; transform: translateX(-10%); }
  .redeem-input{ padding-left: 120px; }
}

*/















