/* Customer-facing premium UI only. Staff/Admin workspaces keep the existing stylesheet. */
.customer-premium-ui{
  --cp-bg:#080b0f;
  --cp-panel:#11161b;
  --cp-panel-2:#151b20;
  --cp-line:#293138;
  --cp-text:#f7f8fa;
  --cp-muted:#a7b0ba;
  --cp-red:#ed1b2f;
  --cp-red-deep:#7e0b16;
  --cp-gold:#f1c75b;
  --cp-green:#61d39b;
  width:min(100%,760px);
  margin:0 auto;
  padding:10px 0 80px;
  color:var(--cp-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.customer-premium-ui *{box-sizing:border-box}
.customer-premium-ui button,.customer-premium-ui input{font:inherit}

.premium-app-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:4px 4px 16px;
  text-align:center;
}
.premium-heading-mark{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  font-size:11px;font-weight:900;letter-spacing:.08em;
  background:linear-gradient(145deg,#f2273a,#8f0814);
  box-shadow:0 0 20px rgba(237,27,47,.28);
}
.premium-app-heading h2{margin:0;font-size:clamp(18px,4vw,26px);line-height:1.15;letter-spacing:.01em}
.premium-app-heading p{margin:3px 0 0;color:var(--cp-muted);font-size:12px}

.premium-loyalty-card{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(237,27,47,.94);
  padding:22px 24px 20px;
  min-height:330px;
  box-shadow:0 18px 50px rgba(0,0,0,.38),inset 0 0 0 1px rgba(255,255,255,.025),0 0 22px rgba(237,27,47,.12);
  isolation:isolate;
}
.premium-loyalty-card::after{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 92% 52%,rgba(237,27,47,.20),transparent 30%),
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 40%);
  z-index:-1;
  pointer-events:none;
}
.premium-card-stripes{
  position:absolute;
  width:250px;height:150px;
  right:80px;top:-30px;
  transform:skewX(-27deg);
  background:repeating-linear-gradient(90deg,transparent 0 24px,rgba(237,27,47,.6) 24px 38px,rgba(255,255,255,.11) 38px 47px,rgba(25,27,31,.9) 47px 68px);
  opacity:.72;z-index:-1;
  mask-image:linear-gradient(90deg,transparent,#000 25%,#000 85%,transparent);
}
.premium-card-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;position:relative;z-index:2}
.premium-brand-lockup{display:flex;align-items:center;gap:12px;min-width:0;padding-right:8px}
.premium-brand-lockup img{width:52px;height:40px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(237,27,47,.25))}
.premium-brand-lockup strong{display:block;font-size:15px;letter-spacing:.12em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.premium-brand-lockup small{display:block;margin-top:3px;color:#c1c5c9;font-size:8px;letter-spacing:.28em}

.premium-qr-box{
  flex:0 0 auto;width:106px;padding:7px 7px 5px;
  border-radius:13px;background:#fff;color:#111;text-align:center;
  box-shadow:0 7px 20px rgba(0,0,0,.32);
}
.premium-qr-box canvas{display:block;width:92px!important;height:92px!important;margin:0 auto}
.premium-qr-box small{display:block;margin-top:2px;font-size:8px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.premium-card-title{margin-top:16px;position:relative;z-index:1}
.premium-card-title h1{margin:0;font-size:clamp(27px,6vw,40px);line-height:.98;letter-spacing:.035em;font-weight:800;text-shadow:0 1px 0 rgba(255,255,255,.18)}
.premium-card-title p{margin:8px 0 0;font-size:9px;letter-spacing:.22em;color:#c5c9ce}

.premium-member-grid{
  margin-top:23px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12);
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;position:relative;z-index:1
}
.premium-member-grid>div{min-width:0}
.premium-member-grid span{display:block;color:#9ea6af;font-size:11px;margin-bottom:3px}
.premium-member-grid strong{display:block;font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.premium-member-main{grid-column:1/-1}
.premium-member-main strong{font-size:19px}

.premium-progress-area{margin-top:18px;padding-top:13px;border-top:1px solid rgba(255,255,255,.11)}
.premium-progress-label{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;margin-bottom:8px}
.premium-progress-label span{color:#f0f2f4}.premium-progress-label strong{font-size:12px}
.premium-progress-track{height:10px;border-radius:99px;background:#444a50;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
.premium-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff2037,#e6001e);box-shadow:0 0 14px rgba(237,27,47,.58)}

.premium-panel{
  margin-top:14px;
  border-radius:20px;
  border:1px solid var(--cp-line);
  background:linear-gradient(145deg,rgba(22,28,33,.98),rgba(13,17,21,.98));
  box-shadow:0 13px 34px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.018);
}
.premium-journey-panel{padding:17px 18px 14px}
.premium-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.premium-section-head>div{display:flex;align-items:center;gap:9px;min-width:0}
.premium-section-head h3{margin:0;font-size:17px;white-space:nowrap}
.premium-section-head>span{font-size:10px;color:var(--cp-muted);text-align:right}
.premium-section-head.compact{margin-bottom:12px}
.premium-section-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-size:18px;background:rgba(255,255,255,.04);color:#fff}
.premium-text-button{border:0;background:transparent;color:#c3cbd2;padding:4px 0;font-size:11px;cursor:pointer}
.premium-text-button:hover{color:#fff}

.premium-service-scroll{overflow-x:auto;overflow-y:hidden;padding:3px 1px 5px;scrollbar-width:thin;scrollbar-color:#4a5258 transparent}
.premium-service-row{display:flex;align-items:flex-start;gap:12px;min-width:max-content}
.premium-marker-wrap{width:66px;display:flex;flex-direction:column;align-items:center;gap:5px}
.premium-service-marker{
  width:58px;height:58px;border-radius:50%;
  border:2px solid #6b737b;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.06),rgba(255,255,255,.01) 50%,rgba(0,0,0,.22));
  color:#d7dce1;line-height:1;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.01);
}
.premium-service-marker strong{font-size:11px;margin-top:2px}.premium-service-marker small{font-size:9px;margin-top:3px;color:inherit;opacity:.9}.premium-marker-icon{font-size:17px;font-weight:900;line-height:1}
.premium-service-marker.is-complete{border-color:#f21c32;background:radial-gradient(circle at 35% 28%,#51202a,#210d12 65%);color:#fff;box-shadow:0 0 14px rgba(237,27,47,.16),inset 0 0 0 3px rgba(237,27,47,.05)}
.premium-service-marker.is-complete .premium-marker-icon{color:#ff4858}
.premium-service-marker.is-reward{border-color:#c8a951}
.premium-service-marker.is-reward .premium-marker-icon{color:var(--cp-gold)}
.premium-service-marker.is-redeemed{background:radial-gradient(circle at 35% 28%,#59491a,#1f1908 68%);box-shadow:0 0 18px rgba(241,199,91,.20)}
.premium-service-marker.is-missed{border-color:#8b4048;background:radial-gradient(circle at 35% 28%,#3b171b,#170b0d 68%);color:#f19ca5}
.premium-service-marker.is-missed .premium-marker-icon{color:#ff6775}
.premium-service-marker.is-blocked{border-color:#80636a}
.premium-reward-tag{min-height:18px;display:flex;align-items:center;justify-content:center;padding:3px 7px;border-radius:5px;background:var(--cp-gold);color:#251c06;font-size:8px;font-weight:900;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.24)}
.premium-service-marker.is-blocked+.premium-reward-tag{background:#6e5960;color:#fff}

.premium-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.premium-info-grid .premium-panel{padding:16px 17px;min-height:140px}
.premium-reward-content{display:flex;align-items:center;gap:14px}
.premium-reward-orb{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--cp-gold);color:var(--cp-gold);font-size:23px;background:#211b08;box-shadow:0 0 16px rgba(241,199,91,.14)}
.premium-reward-content small{display:block;color:#aeb7c0;margin-bottom:3px}.premium-reward-content strong{display:block;font-size:17px;line-height:1.15}.premium-reward-content p{margin:4px 0 0;color:#c6cdd3;font-size:11px}
.premium-reward-panel.blocked .premium-reward-orb{border-color:#b3515d;color:#ff7a87;background:#2a1014}.premium-reward-panel.blocked .premium-reward-content strong{color:#ff9ca5}
.premium-reward-panel.redeemed .premium-reward-orb{box-shadow:0 0 18px rgba(241,199,91,.28)}
.premium-big-number{display:block;font-size:29px;line-height:1;margin:4px 0 8px}.premium-stamp-summary p{margin:0;color:#abb4bc;font-size:11px}

.premium-history-panel{padding:16px 18px}
.premium-history-list{display:flex;flex-direction:column}
.premium-history-row{display:grid;grid-template-columns:28px 1.7fr 1fr auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid rgba(255,255,255,.07)}
.premium-history-row:first-child{border-top:0}
.premium-history-index{font-size:12px;color:#d7dce0;text-align:center}.premium-history-service strong{display:block;font-size:12px}.premium-history-service small{display:block;font-size:9px;color:#8f9aa4;margin-top:2px}.premium-history-date{font-size:11px;color:#b9c1c8}.premium-status-pill{border-radius:99px;padding:5px 9px;font-size:9px;font-weight:800;text-align:center;white-space:nowrap}.premium-status-pill.completed{background:#143e2d;color:#77e0ad}.premium-status-pill.missed{background:#4a1f26;color:#ff9aa4}.premium-empty{margin:4px 0;color:#9da7b0;font-size:12px}

.premium-campaign-panel{padding:16px 18px}.premium-campaign-item{padding:12px 0;border-top:1px solid rgba(255,255,255,.07)}.premium-campaign-item:first-of-type{border-top:0}.premium-campaign-item strong{display:inline-block;margin-right:7px}.premium-campaign-item span{display:inline-block;border-radius:99px;padding:3px 8px;background:#3c2510;color:#f4ce75;font-size:9px;font-weight:800}.premium-campaign-item p{margin:5px 0;color:#c5ccd2;font-size:11px}.premium-campaign-item small{color:#8f99a3;font-size:9px}

@media (max-width:640px){
  .customer-premium-ui{width:100%;padding:2px 0 72px}
  .premium-app-heading{margin-bottom:12px}
  .premium-heading-mark{display:none}
  .premium-loyalty-card{border-radius:18px;padding:16px 16px 15px;min-height:0}
  .premium-card-stripes{right:54px;width:185px;height:120px}
  .premium-brand-lockup{gap:8px}.premium-brand-lockup img{width:40px;height:33px}.premium-brand-lockup strong{font-size:12px;max-width:180px}.premium-brand-lockup small{font-size:6px;letter-spacing:.18em}
  .premium-qr-box{width:82px;padding:5px 5px 4px;border-radius:10px}.premium-qr-box canvas{width:70px!important;height:70px!important}.premium-qr-box small{font-size:6px}
  .premium-card-title{margin-top:12px}.premium-card-title h1{font-size:28px}.premium-card-title p{font-size:7px;letter-spacing:.15em}
  .premium-member-grid{margin-top:17px;padding-top:11px;grid-template-columns:1fr 1fr;gap:11px 14px}.premium-member-main{grid-column:1/-1}.premium-member-grid span{font-size:9px}.premium-member-grid strong{font-size:13px}.premium-member-main strong{font-size:16px}
  .premium-progress-area{margin-top:14px}.premium-progress-label{font-size:10px}.premium-progress-label strong{font-size:10px}.premium-progress-track{height:8px}
  .premium-panel{border-radius:16px;margin-top:11px}.premium-journey-panel{padding:14px 13px 12px}.premium-section-head{margin-bottom:11px}.premium-section-head h3{font-size:14px}.premium-section-head>span,.premium-text-button{font-size:9px}.premium-section-icon{width:24px;height:24px;font-size:15px;border-radius:7px}
  .premium-service-row{gap:8px}.premium-marker-wrap{width:55px}.premium-service-marker{width:50px;height:50px}.premium-marker-icon{font-size:14px}.premium-service-marker strong{font-size:10px}.premium-service-marker small{font-size:8px}.premium-reward-tag{font-size:7px;padding:3px 5px}
  .premium-info-grid{grid-template-columns:1fr 1fr;gap:8px}.premium-info-grid .premium-panel{padding:13px 12px;min-height:130px}.premium-reward-content{gap:9px}.premium-reward-orb{width:40px;height:40px;flex-basis:40px;font-size:19px}.premium-reward-content strong{font-size:13px}.premium-reward-content p,.premium-stamp-summary p{font-size:9px}.premium-big-number{font-size:25px}
  .premium-history-panel{padding:14px 13px}.premium-history-row{grid-template-columns:22px 1fr auto;gap:8px;padding:9px 0}.premium-history-date{display:none}.premium-history-service strong{font-size:10px}.premium-history-service small{font-size:8px}.premium-status-pill{font-size:8px;padding:4px 7px}
}

@media (max-width:400px){
  .premium-info-grid{grid-template-columns:1fr}
  .premium-brand-lockup strong{max-width:135px}
  .premium-card-title h1{font-size:25px}
}

/* ===== Responsive premium customer refinements ===== */
.customer-premium-ui { container-type: inline-size; }

/* Desktop / web */
@media (min-width: 901px) {
  .customer-premium-ui { width: min(100%, 820px); padding-bottom: 96px; }
  .premium-loyalty-card { min-height: 350px; padding: 24px 26px 22px; }
  .premium-service-scroll { overflow-x: visible; }
  .premium-service-row { min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; }
  .premium-marker-wrap { width: auto; min-width: 0; }
  .premium-service-marker { width: 62px; height: 62px; }
  .premium-info-grid { grid-template-columns: 1fr 1fr; }
  .premium-history-row { grid-template-columns: 34px minmax(0,1.7fr) minmax(110px,.8fr) auto; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 900px) {
  .customer-premium-ui { width: min(100%, 760px); }
  .premium-loyalty-card { padding: 20px; }
  .premium-service-scroll { margin-inline: -2px; }
  .premium-info-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .customer-premium-ui { width: 100%; padding: 0 0 88px; }
  .premium-app-heading { padding-inline: 4px; }
  .premium-app-heading h2 { font-size: clamp(17px,5vw,22px); }
  .premium-app-heading p { font-size: 11px; }

  .premium-loyalty-card {
    padding: 14px;
    border-radius: 17px;
    min-height: 0;
  }
  .premium-card-topline { gap: 10px; }
  .premium-brand-lockup { gap: 7px; padding-right: 0; min-width: 0; }
  .premium-brand-lockup img { width: 38px; height: 30px; }
  .premium-brand-lockup strong { font-size: 11px; max-width: 46vw; letter-spacing: .07em; }
  .premium-brand-lockup small { display: none; }

  .premium-qr-box { width: 76px; padding: 4px; border-radius: 9px; }
  .premium-qr-box canvas { width: 66px!important; height: 66px!important; }
  .premium-qr-box small { font-size: 5.5px; }

  .premium-card-title { margin-top: 10px; }
  .premium-card-title h1 { font-size: clamp(23px,8vw,30px); }
  .premium-card-title p { font-size: 6.5px; letter-spacing: .12em; line-height: 1.35; }

  .premium-member-grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; padding-top: 10px; }
  .premium-member-main { grid-column: 1/-1; }
  .premium-member-grid span { font-size: 8.5px; }
  .premium-member-grid strong { font-size: 12px; }
  .premium-member-main strong { font-size: 15px; }

  .premium-progress-area { margin-top: 12px; padding-top: 10px; }
  .premium-progress-label { font-size: 9.5px; }
  .premium-progress-label strong { font-size: 9.5px; }
  .premium-progress-track { height: 7px; }

  .premium-panel { margin-top: 10px; border-radius: 15px; }
  .premium-journey-panel { padding: 12px 10px 10px; }
  .premium-section-head { margin-bottom: 10px; gap: 8px; }
  .premium-section-head h3 { font-size: 13px; }
  .premium-section-head>span { display: none; }
  .premium-section-icon { width: 23px; height: 23px; font-size: 14px; }

  .premium-service-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .premium-service-row { gap: 7px; padding-right: 8px; }
  .premium-marker-wrap { width: 52px; flex: 0 0 52px; scroll-snap-align: start; }
  .premium-service-marker { width: 48px; height: 48px; }
  .premium-marker-icon { font-size: 13px; }
  .premium-service-marker strong { font-size: 9.5px; }
  .premium-service-marker small { font-size: 7.5px; }
  .premium-reward-tag { font-size: 6.5px; padding: 3px 4px; max-width: 58px; overflow: hidden; text-overflow: ellipsis; }

  .premium-info-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .premium-info-grid .premium-panel { min-height: 116px; padding: 11px 10px; }
  .premium-reward-content { gap: 8px; align-items: flex-start; }
  .premium-reward-orb { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; }
  .premium-reward-content small { font-size: 8px; }
  .premium-reward-content strong { font-size: 11.5px; }
  .premium-reward-content p, .premium-stamp-summary p { font-size: 8.5px; }
  .premium-big-number { font-size: 23px; }

  .premium-history-panel { padding: 12px 10px; }
  .premium-history-row { grid-template-columns: 20px minmax(0,1fr) auto; gap: 7px; padding: 8px 0; }
  .premium-history-date { display: none; }
  .premium-history-index { font-size: 10px; }
  .premium-history-service strong { font-size: 9.5px; }
  .premium-history-service small { font-size: 7.5px; }
  .premium-status-pill { font-size: 7px; padding: 4px 6px; }
}

/* Narrow phone */
@media (max-width: 420px) {
  .premium-info-grid { grid-template-columns: 1fr; }
  .premium-brand-lockup strong { max-width: 38vw; }
  .premium-card-stripes { right: 40px; width: 150px; opacity: .55; }
  .premium-member-grid { gap: 9px; }
}

/* Very narrow phone */
@media (max-width: 360px) {
  .premium-loyalty-card { padding: 12px; }
  .premium-qr-box { width: 68px; }
  .premium-qr-box canvas { width: 58px!important; height: 58px!important; }
  .premium-brand-lockup img { width: 32px; }
  .premium-brand-lockup strong { font-size: 10px; }
  .premium-card-title h1 { font-size: 22px; }
  .premium-marker-wrap { width: 48px; flex-basis: 48px; }
  .premium-service-marker { width: 44px; height: 44px; }
}

/* Safe areas for iPhone and modern phones */
@supports (padding: max(0px)) {
  .customer-premium-ui { padding-bottom: max(88px, env(safe-area-inset-bottom)); }
}

/* ===== Native-phone + wide-web refinement v2 ===== */

/* Wide desktop: preserve the mockup composition, just give it breathing room. */
@media (min-width: 1180px) {
  .customer-premium-ui {
    width: min(100%, 1040px);
    padding: 18px 0 110px;
  }
  .premium-app-heading { margin-bottom: 20px; }
  .premium-loyalty-card {
    padding: 30px 32px 26px;
    min-height: 388px;
    border-radius: 26px;
  }
  .premium-brand-lockup img { width: 64px; height: 48px; }
  .premium-brand-lockup strong { font-size: 17px; }
  .premium-qr-box { width: 122px; padding: 8px 8px 6px; }
  .premium-qr-box canvas { width: 106px !important; height: 106px !important; }
  .premium-card-title h1 { font-size: 44px; }
  .premium-member-grid { grid-template-columns: 1.65fr 1fr 1fr; gap: 24px; }
  .premium-member-grid strong { font-size: 18px; }
  .premium-member-main strong { font-size: 22px; }
  .premium-progress-track { height: 11px; }
  .premium-panel { border-radius: 22px; }
  .premium-journey-panel { padding: 21px 22px 18px; }
  .premium-service-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
  }
  .premium-marker-wrap { width: auto; min-width: 0; }
  .premium-service-marker { width: 68px; height: 68px; margin-inline: auto; }
  .premium-service-marker strong { font-size: 12px; }
  .premium-service-marker small { font-size: 10px; }
  .premium-marker-icon { font-size: 19px; }
  .premium-info-grid { gap: 16px; }
  .premium-info-grid .premium-panel { min-height: 155px; padding: 20px 21px; }
  .premium-history-panel { padding: 19px 22px; }
  .premium-history-row { grid-template-columns: 34px 1.8fr 1fr auto; padding: 12px 0; }
}

/* Standard desktop/laptop */
@media (min-width: 821px) and (max-width: 1179px) {
  .customer-premium-ui { width: min(100%, 900px); padding-bottom: 100px; }
  .premium-service-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
  }
  .premium-marker-wrap { width: auto; min-width: 0; }
  .premium-service-marker { margin-inline: auto; }
}

/* Phone: make the customer view feel like a native app instead of a desktop page squeezed down. */
@media (max-width: 640px) {
  .customer-premium-ui {
    width: 100%;
    margin: 0;
    padding: 0 0 calc(90px + env(safe-area-inset-bottom));
  }
  .premium-app-heading {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0 -2px 10px;
    padding: 10px 12px 9px;
    background: linear-gradient(180deg, rgba(8,11,15,.98), rgba(8,11,15,.90));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .premium-app-heading h2 { font-size: 18px; }
  .premium-app-heading p { font-size: 10px; }
  .premium-loyalty-card {
    margin-inline: 0;
    border-radius: 18px;
    padding: 14px 14px 15px;
    box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 18px rgba(237,27,47,.10);
  }
  .premium-card-topline { gap: 10px; }
  .premium-brand-lockup { min-width: 0; flex: 1 1 auto; }
  .premium-brand-lockup strong { max-width: 160px; font-size: 11px; }
  .premium-brand-lockup small { display: none; }
  .premium-qr-box {
    width: 76px;
    padding: 4px 4px 3px;
    border-radius: 9px;
  }
  .premium-qr-box canvas { width: 66px !important; height: 66px !important; }
  .premium-qr-box small { font-size: 5.5px; }
  .premium-card-title { margin-top: 10px; }
  .premium-card-title h1 { font-size: clamp(24px, 8vw, 29px); }
  .premium-card-title p { font-size: 6.5px; letter-spacing: .12em; }
  .premium-member-grid {
    margin-top: 14px;
    padding-top: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }
  .premium-member-grid span { font-size: 8.5px; }
  .premium-member-grid strong { font-size: 12.5px; }
  .premium-member-main strong { font-size: 15px; }
  .premium-progress-area { margin-top: 12px; padding-top: 10px; }
  .premium-progress-label { font-size: 9.5px; }
  .premium-progress-label strong { font-size: 9.5px; }
  .premium-panel { margin-top: 10px; border-radius: 15px; }
  .premium-journey-panel { padding: 13px 12px 11px; }
  .premium-section-head { margin-bottom: 10px; }
  .premium-section-head h3 { font-size: 13.5px; }
  .premium-section-head > span { font-size: 8.5px; }
  .premium-service-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 7px;
  }
  .premium-service-row { display: flex; gap: 8px; min-width: max-content; }
  .premium-marker-wrap { width: 54px; scroll-snap-align: start; }
  .premium-service-marker { width: 49px; height: 49px; }
  .premium-marker-icon { font-size: 13px; }
  .premium-service-marker strong { font-size: 9.5px; }
  .premium-service-marker small { font-size: 7.5px; }
  .premium-reward-tag { font-size: 6.5px; padding: 3px 5px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
  .premium-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .premium-info-grid .premium-panel { min-height: 122px; padding: 12px 11px; }
  .premium-reward-orb { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; }
  .premium-reward-content { gap: 8px; }
  .premium-reward-content strong { font-size: 12px; }
  .premium-big-number { font-size: 23px; }
  .premium-history-panel { padding: 13px 12px; }
  .premium-history-row { grid-template-columns: 20px 1fr auto; gap: 7px; padding: 8px 0; }
  .premium-history-date { display: none; }
  .premium-history-service strong { font-size: 9.5px; }
  .premium-history-service small { font-size: 7.5px; }
  .premium-status-pill { font-size: 7.5px; padding: 4px 6px; }
}

/* Very narrow phones: stack summary cards and keep the loyalty card readable. */
@media (max-width: 390px) {
  .premium-info-grid { grid-template-columns: 1fr; }
  .premium-brand-lockup strong { max-width: 125px; }
  .premium-card-title h1 { font-size: 23px; }
  .premium-qr-box { width: 70px; }
  .premium-qr-box canvas { width: 60px !important; height: 60px !important; }
}

/* ============================================================
   OPTION B - CUSTOMER LOYALTY CARD HEADER
   Mitsubishi Premium Sporty / EON Auto Mart Kota Kinabalu
   ============================================================ */

.customer-premium-ui .premium-loyalty-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(238, 31, 55, .92);
  box-shadow:
    0 18px 46px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 0 24px rgba(237,27,47,.08);
}

.customer-premium-ui .premium-loyalty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(0,0,0,.12) 0 45%, transparent 62%),
    linear-gradient(120deg, transparent 55%, rgba(228,12,39,.12) 78%, rgba(228,12,39,.24) 100%);
  z-index: 0;
}

.customer-premium-ui .premium-card-topline {
  align-items: flex-start;
  gap: 18px;
}

.customer-premium-ui .premium-brand-lockup-option-b {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding-right: 0;
}

.customer-premium-ui .premium-brand-lockup-option-b > img {
  width: 104px;
  height: 58px;
  max-width: 28vw;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.25));
}

.customer-premium-ui .premium-brand-copy-option-b {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.30);
}

.customer-premium-ui .premium-brand-copy-option-b strong,
.customer-premium-ui .premium-brand-copy-option-b span,
.customer-premium-ui .premium-brand-copy-option-b small {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.customer-premium-ui .premium-brand-copy-option-b strong {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: .015em;
  font-weight: 850;
}

.customer-premium-ui .premium-brand-copy-option-b span {
  margin-top: 3px;
  color: #fff;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: .005em;
  font-weight: 900;
}

.customer-premium-ui .premium-brand-copy-option-b small {
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .08em;
  font-weight: 650;
}

.customer-premium-ui .premium-qr-box {
  width: auto;
  min-width: 104px;
  padding: 7px 7px 5px;
  border-radius: 15px;
  flex: 0 0 auto;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.customer-premium-ui .premium-qr-box canvas {
  width: 92px !important;
  height: 92px !important;
}

.customer-premium-ui .premium-qr-box small {
  display: block;
  max-width: 92px;
  margin-top: 3px;
  color: #16181c;
  text-align: center;
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-premium-ui .premium-card-title {
  margin-top: 22px;
}

.customer-premium-ui .premium-card-title h1 {
  font-size: clamp(36px, 7vw, 54px);
  line-height: .94;
  letter-spacing: -.025em;
  font-weight: 900;
}

.customer-premium-ui .premium-card-title p {
  margin-top: 10px;
  font-size: 8.5px;
  line-height: 1.35;
  letter-spacing: .20em;
  color: rgba(255,255,255,.74);
}

.customer-premium-ui .premium-member-grid {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px;
}

.customer-premium-ui .premium-member-grid span {
  color: rgba(255,255,255,.60);
}

.customer-premium-ui .premium-progress-area {
  border-top-color: rgba(255,255,255,.16);
}

@media (min-width: 760px) {
  .customer-premium-ui .premium-brand-lockup-option-b > img {
    width: 132px;
    height: 68px;
  }

  .customer-premium-ui .premium-brand-copy-option-b strong {
    font-size: 19px;
  }

  .customer-premium-ui .premium-brand-copy-option-b span {
    font-size: 24px;
  }

  .customer-premium-ui .premium-brand-copy-option-b small {
    font-size: 11px;
  }

  .customer-premium-ui .premium-qr-box canvas {
    width: 106px !important;
    height: 106px !important;
  }

  .customer-premium-ui .premium-qr-box small {
    max-width: 106px;
  }
}

@media (max-width: 600px) {
  .customer-premium-ui .premium-loyalty-card {
    padding: 17px 16px 16px;
  }

  .customer-premium-ui .premium-card-topline {
    gap: 9px;
  }

  .customer-premium-ui .premium-brand-lockup-option-b {
    gap: 8px;
  }

  .customer-premium-ui .premium-brand-lockup-option-b > img {
    width: 78px;
    height: 44px;
    max-width: 24vw;
  }

  .customer-premium-ui .premium-brand-copy-option-b {
    padding-left: 8px;
  }

  .customer-premium-ui .premium-brand-copy-option-b strong {
    font-size: 12px;
  }

  .customer-premium-ui .premium-brand-copy-option-b span {
    font-size: 15px;
    line-height: 1.06;
  }

  .customer-premium-ui .premium-brand-copy-option-b small {
    display: block;
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: .035em;
  }

  .customer-premium-ui .premium-qr-box {
    min-width: 78px;
    padding: 5px 5px 4px;
    border-radius: 11px;
  }

  .customer-premium-ui .premium-qr-box canvas {
    width: 68px !important;
    height: 68px !important;
  }

  .customer-premium-ui .premium-qr-box small {
    max-width: 68px;
    font-size: 5.8px;
  }

  .customer-premium-ui .premium-card-title {
    margin-top: 18px;
  }

  .customer-premium-ui .premium-card-title h1 {
    font-size: clamp(33px, 10vw, 43px);
  }

  .customer-premium-ui .premium-card-title p {
    font-size: 7px;
    letter-spacing: .14em;
  }
}

@media (max-width: 390px) {
  .customer-premium-ui .premium-brand-lockup-option-b > img {
    width: 68px;
    height: 40px;
    max-width: 22vw;
  }

  .customer-premium-ui .premium-brand-copy-option-b strong {
    font-size: 10.5px;
  }

  .customer-premium-ui .premium-brand-copy-option-b span {
    font-size: 13px;
  }

  .customer-premium-ui .premium-brand-copy-option-b small {
    font-size: 7px;
  }

  .customer-premium-ui .premium-qr-box {
    min-width: 70px;
  }

  .customer-premium-ui .premium-qr-box canvas {
    width: 60px !important;
    height: 60px !important;
  }

  .customer-premium-ui .premium-qr-box small {
    max-width: 60px;
  }
}

/* =========================================================
   REWARD VISUAL STATUS - CUSTOMER VIEW
   Future reward = grey outline + muted gold star + no glow
   Auto redeemed = bright gold + glow + Redeemed badge
   Not eligible = muted / blocked
   ========================================================= */

/* A future reward must not look active yet. */
.customer-premium-ui .premium-service-marker.is-reward.is-future-reward {
  border-color: #68717b;
  background: radial-gradient(circle at 35% 28%, #171c22, #0e1217 70%);
  color: #c0c6cd;
  box-shadow: none;
}

.customer-premium-ui .premium-service-marker.is-reward.is-future-reward .premium-marker-icon {
  color: #9d8850;
  opacity: .72;
  text-shadow: none;
}

.customer-premium-ui .premium-reward-tag.is-future {
  background: #30363d;
  color: #aa955b;
  border: 1px solid #5e6670;
  box-shadow: none;
  opacity: .9;
}

/* Once the 4th service is completed and auto-redeemed, make it clearly active. */
.customer-premium-ui .premium-service-marker.is-reward.is-redeemed {
  border-color: #f1c75b;
  background: radial-gradient(circle at 35% 28%, #66521a, #241d08 68%);
  color: #fff7d8;
  box-shadow:
    0 0 22px rgba(241,199,91,.34),
    inset 0 0 0 3px rgba(241,199,91,.08);
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed .premium-marker-icon {
  color: #ffd766;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255,215,102,.38);
}

.customer-premium-ui .premium-reward-tag.is-redeemed-tag {
  background: #f1c75b;
  color: #251c06;
  border: 1px solid #ffe6a0;
  box-shadow: 0 0 14px rgba(241,199,91,.26);
  opacity: 1;
}

/* Blocked rewards stay visually quiet. */
.customer-premium-ui .premium-service-marker.is-reward.is-blocked {
  border-color: #655d62;
  background: radial-gradient(circle at 35% 28%, #211a1d, #111013 70%);
  box-shadow: none;
}

.customer-premium-ui .premium-service-marker.is-reward.is-blocked .premium-marker-icon {
  color: #81747b;
  opacity: .75;
  text-shadow: none;
}


/* =========================================================
   FINAL REWARD VISUAL TUNING
   Future reward tag on top, redeemed text diagonal in center.
   ========================================================= */

.customer-premium-ui .premium-marker-wrap {
  position: relative;
}

.customer-premium-ui .premium-reward-tag.is-top {
  order: -1;
  margin-bottom: 6px;
}

.customer-premium-ui .premium-service-marker.is-reward.is-future-reward {
  border-color: #6f7882;
  background: radial-gradient(circle at 35% 28%, #181d24, #0d1117 70%);
  color: #d0d5db;
  box-shadow: none;
}

.customer-premium-ui .premium-service-marker.is-reward.is-future-reward .premium-marker-icon {
  color: #a38d56;
  opacity: .78;
  text-shadow: none;
}

.customer-premium-ui .premium-reward-tag.is-future {
  background: #2f363d;
  color: #bca267;
  border: 1px solid #5d6670;
  box-shadow: none;
  opacity: .96;
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed {
  position: relative;
  overflow: hidden;
  border-color: #f1c75b;
  background: radial-gradient(circle at 35% 28%, #65511b, #241d08 68%);
  color: #fff7d8;
  box-shadow:
    0 0 22px rgba(241,199,91,.34),
    inset 0 0 0 3px rgba(241,199,91,.08);
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed .premium-marker-icon {
  color: #ffd766;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255,215,102,.38);
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed strong,
.customer-premium-ui .premium-service-marker.is-reward.is-redeemed small {
  position: relative;
  z-index: 2;
}

.customer-premium-ui .premium-redeemed-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88%;
  padding: 2px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,245,210,.98), rgba(255,229,156,.98));
  border: 1px solid rgba(126,85,6,.45);
  color: #6b4200;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,.24);
  pointer-events: none;
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed .premium-marker-icon {
  margin-top: 2px;
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed strong {
  margin-top: 7px;
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed small {
  margin-top: 2px;
}

@media (max-width: 560px) {
  .customer-premium-ui .premium-redeemed-banner {
    font-size: 6px;
    min-width: 92%;
    padding: 2px 0;
  }
}


/* =========================================================
   FINAL REWARD VISUAL TUNING V2
   Softer REDEEMED angle + centered future Rewards label
   ========================================================= */

.customer-premium-ui .premium-service-row {
  padding-top: 18px;
}

.customer-premium-ui .premium-marker-wrap {
  position: relative;
}

.customer-premium-ui .premium-marker-wrap.has-future-reward .premium-reward-tag.is-top {
  position: absolute;
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  min-height: 16px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 7px;
  line-height: 1;
  white-space: nowrap;
  background: #2f363d;
  color: #bca267;
  border: 1px solid #5d6670;
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
  opacity: .96;
}

.customer-premium-ui .premium-redeemed-banner {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  min-width: 82%;
  padding: 2px 1px;
  font-size: 6.5px;
  letter-spacing: .08em;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .customer-premium-ui .premium-service-row {
    padding-top: 17px;
  }

  .customer-premium-ui .premium-marker-wrap.has-future-reward .premium-reward-tag.is-top {
    top: -14px;
    font-size: 6.2px;
    padding: 2px 5px;
    min-height: 15px;
  }

  .customer-premium-ui .premium-redeemed-banner {
    transform: translate(-50%, -50%) rotate(-26deg);
    min-width: 84%;
    font-size: 5.8px;
    letter-spacing: .07em;
  }
}

/* =========================================================
   EAM KK - FINAL SERVICE / REWARD STATUS VISUAL
   Customer + Staff + Admin Service UI
   UI presentation only
   ========================================================= */

/* Extra top room because all Admin-custom reward wording now sits above the circle. */
.customer-premium-ui .premium-service-row,
.staff-service-record .premium-service-row {
  padding-top: 31px;
}

/* ----- NORMAL STAMPED: green circle + green check ----- */
.customer-premium-ui .premium-service-marker.is-complete:not(.is-reward):not(.is-missed),
.staff-service-record .premium-service-marker.is-complete:not(.is-reward):not(.is-missed) {
  border-color: #35d07f;
  background: radial-gradient(circle at 35% 28%, #174d36, #09261a 68%);
  color: #effff6;
  box-shadow:
    0 0 10px rgba(53, 208, 127, .40),
    inset 0 0 0 3px rgba(53, 208, 127, .08);
}

.customer-premium-ui .premium-service-marker.is-complete:not(.is-reward):not(.is-missed) .premium-marker-icon,
.staff-service-record .premium-service-marker.is-complete:not(.is-reward):not(.is-missed) .premium-marker-icon {
  color: #56e99a;
  opacity: 1;
  text-shadow: 0 0 8px rgba(86, 233, 154, .50);
}

/* ----- MISSED: red circle + red X ----- */
.customer-premium-ui .premium-service-marker.is-missed,
.customer-premium-ui .premium-service-marker.is-reward.is-missed,
.staff-service-record .premium-service-marker.is-missed,
.staff-service-record .premium-service-marker.is-reward.is-missed {
  border-color: #ff4659;
  background: radial-gradient(circle at 35% 28%, #54131d, #21090e 68%);
  color: #ffdfe3;
  box-shadow:
    0 0 10px rgba(255, 55, 75, .40),
    inset 0 0 0 3px rgba(255, 70, 89, .08);
}

.customer-premium-ui .premium-service-marker.is-missed .premium-marker-icon,
.staff-service-record .premium-service-marker.is-missed .premium-marker-icon {
  color: #ff5365;
  opacity: 1;
  text-shadow: 0 0 9px rgba(255, 65, 85, .55);
}

/* ----- REDEEM: gold circle ----- */
.customer-premium-ui .premium-service-marker.is-reward.is-redeemed:not(.is-missed),
.staff-service-record .premium-service-marker.is-reward.is-redeemed:not(.is-missed) {
  position: relative;
  overflow: hidden;
  border-color: #f1c75b;
  background: radial-gradient(circle at 35% 28%, #65511b, #241d08 68%);
  color: #fff7d8;
  box-shadow:
    0 0 12px rgba(241, 199, 91, .62),
    0 0 26px rgba(241, 199, 91, .26),
    inset 0 0 0 3px rgba(241, 199, 91, .08);
}

.customer-premium-ui .premium-service-marker.is-reward.is-redeemed:not(.is-missed) .premium-marker-icon,
.staff-service-record .premium-service-marker.is-reward.is-redeemed:not(.is-missed) .premium-marker-icon {
  color: #ffd766;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 215, 102, .48);
}

/* ----- NOT ENTITLE: grey circle ----- */
.customer-premium-ui .premium-service-marker.is-reward.is-blocked:not(.is-missed),
.staff-service-record .premium-service-marker.is-reward.is-blocked:not(.is-missed) {
  position: relative;
  overflow: hidden;
  border-color: #727b84;
  background: radial-gradient(circle at 35% 28%, #252b31, #11161b 70%);
  color: #d4dae0;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.025);
}

.customer-premium-ui .premium-service-marker.is-reward.is-blocked:not(.is-missed) .premium-marker-icon,
.staff-service-record .premium-service-marker.is-reward.is-blocked:not(.is-missed) .premium-marker-icon {
  color: #9ba3aa;
  opacity: .85;
  text-shadow: none;
}

/* ----- ADMIN-CUSTOM REWARD WORDING: moved ABOVE every reward circle ----- */
.customer-premium-ui .premium-marker-wrap,
.staff-service-record .premium-marker-wrap {
  position: relative;
}

.customer-premium-ui .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label,
.staff-service-record .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label {
  position: absolute;
  left: 50%;
  top: -29px;
  transform: translateX(-50%);
  z-index: 12;
  margin: 0;
  width: max-content;
  min-width: 52px;
  max-width: 76px;
  min-height: 16px;
  padding: 3px 5px;
  border-radius: 6px;
  white-space: normal;
  text-align: center;
  line-height: 1.05;
  font-size: 6.8px;
  font-weight: 900;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #ffe49a, #e4b93f);
  border: 1px solid rgba(255, 238, 170, .92);
  color: #3c2900;
  box-shadow:
    0 0 7px rgba(241, 199, 91, .55),
    0 3px 7px rgba(0,0,0,.25);
}

/* Future rewards keep the same Admin-custom text on top,
   while their circle remains in the existing future state. */
.customer-premium-ui .premium-service-marker.is-future-reward:not(.is-redeemed):not(.is-blocked),
.staff-service-record .premium-service-marker.is-future-reward:not(.is-redeemed):not(.is-blocked) {
  box-shadow: none;
}

/* ----- SAME CENTER WORDING DESIGN FOR REDEEM / NOT ENTITLE ----- */
.customer-premium-ui .premium-status-banner,
.staff-service-record .premium-status-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84%;
  padding: 2px 2px;
  border-radius: 999px;
  font-size: 6.2px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .07em;
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
}

/* REDEEM wording = glowing gold */
.customer-premium-ui .premium-status-banner.is-redeem,
.staff-service-record .premium-status-banner.is-redeem {
  background: linear-gradient(90deg, #fff1ae, #f1c75b, #d8a62c);
  border: 1px solid rgba(255, 242, 186, .95);
  color: #4d3300;
  box-shadow:
    0 0 8px rgba(241,199,91,.95),
    0 0 18px rgba(241,199,91,.62),
    0 4px 9px rgba(0,0,0,.25);
  text-shadow: 0 0 4px rgba(255,255,255,.58);
}

/* NOT ENTITLE wording = same shape, glowing red */
.customer-premium-ui .premium-status-banner.is-not-entitle,
.staff-service-record .premium-status-banner.is-not-entitle {
  background: linear-gradient(90deg, #ff4258, #d20b2e);
  border: 1px solid rgba(255, 205, 211, .95);
  color: #fff;
  box-shadow:
    0 0 8px rgba(255, 65, 85, .95),
    0 0 18px rgba(255, 20, 50, .65),
    0 4px 9px rgba(0,0,0,.25);
  text-shadow: 0 0 4px rgba(255,255,255,.60);
}

/* Keep KM / month text behind the center status ribbon. */
.customer-premium-ui .premium-service-marker strong,
.customer-premium-ui .premium-service-marker small,
.customer-premium-ui .premium-marker-icon,
.staff-service-record .premium-service-marker strong,
.staff-service-record .premium-service-marker small,
.staff-service-record .premium-marker-icon {
  position: relative;
  z-index: 2;
}

/* Reward transaction status chips use the same language and colour family. */
.staff-service-record .staff-status-chip.redeemed {
  background: linear-gradient(90deg, #fff1ae, #f1c75b, #d8a62c);
  border-color: rgba(255,242,186,.95);
  color: #4d3300;
  box-shadow: 0 0 10px rgba(241,199,91,.48);
}

.staff-service-record .staff-status-chip.not_eligible {
  background: linear-gradient(90deg, #ff4258, #d20b2e);
  border-color: rgba(255,205,211,.95);
  color: #fff;
  box-shadow: 0 0 10px rgba(255,45,70,.45);
}

@media (max-width: 640px) {
  .customer-premium-ui .premium-service-row,
  .staff-service-record .premium-service-row {
    padding-top: 29px;
  }

  .customer-premium-ui .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label,
  .staff-service-record .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label {
    top: -27px;
    max-width: 64px;
    min-width: 48px;
    padding: 2px 4px;
    font-size: 6px;
  }

  .customer-premium-ui .premium-status-banner,
  .staff-service-record .premium-status-banner {
    min-width: 86%;
    padding: 2px 1px;
    font-size: 5.6px;
    transform: translate(-50%, -50%) rotate(-26deg);
  }
}


/* =========================================================
   EAM KK - REWARD LABEL SOURCE/POSITION CORRECTION
   Only Service Journey reward presentation is affected.
   ========================================================= */

/* Keep enough room for the label but bring it very close to the circle. */
.customer-premium-ui .premium-service-row,
.staff-service-record .premium-service-row {
  padding-top: 23px;
}

.customer-premium-ui .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label,
.staff-service-record .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label {
  top: -20px;
  min-height: 14px;
  min-width: 50px;
  max-width: 86px;
  padding: 2px 5px;
  font-size: 6.4px;
  line-height: 1.02;
  border-radius: 5px;
}

/* Remove any older/legacy reward wording that may still be positioned below a circle. */
.customer-premium-ui .premium-service-row .premium-marker-wrap > .premium-reward-tag:not(.reward-offer-label),
.staff-service-record .premium-service-row .premium-marker-wrap > .premium-reward-tag:not(.reward-offer-label) {
  display: none !important;
}

@media (max-width: 640px) {
  .customer-premium-ui .premium-service-row,
  .staff-service-record .premium-service-row {
    padding-top: 21px;
  }

  .customer-premium-ui .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label,
  .staff-service-record .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label {
    top: -18px;
    min-height: 13px;
    min-width: 46px;
    max-width: 72px;
    padding: 2px 4px;
    font-size: 5.8px;
  }
}


/* =========================================================
   EAM KK - STAMP AREA STABLE TIDY OVERRIDE
   Built on the confirmed VHU2777 working baseline.
   This affects ONLY Service Journey stamp/reward presentation.
   ========================================================= */

/* Reserve only the space actually needed for the top reward label. */
.customer-premium-ui .premium-service-row,
.staff-service-record .premium-service-row {
  padding-top: 17px;
}

/* Reward wording from Admin sits 2px above the circle, regardless of label height. */
.customer-premium-ui .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label,
.staff-service-record .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, calc(-100% - 2px));
  z-index: 20;
  margin: 0;
  width: max-content;
  min-width: 44px;
  max-width: 72px;
  min-height: 13px;
  padding: 2px 5px;
  border-radius: 5px;
  white-space: normal;
  text-align: center;
  line-height: 1.02;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .01em;
}

/* Do not show any legacy/secondary reward label underneath the circle. */
.customer-premium-ui .premium-service-row .premium-service-marker + .premium-reward-tag,
.staff-service-record .premium-service-row .premium-service-marker + .premium-reward-tag,
.customer-premium-ui .premium-service-row .premium-marker-wrap > .premium-reward-tag:not(.reward-offer-label),
.staff-service-record .premium-service-row .premium-marker-wrap > .premium-reward-tag:not(.reward-offer-label) {
  display: none !important;
}

@media (max-width: 640px) {
  .customer-premium-ui .premium-service-row,
  .staff-service-record .premium-service-row {
    padding-top: 16px;
  }

  .customer-premium-ui .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label,
  .staff-service-record .premium-marker-wrap.has-reward-offer .premium-reward-tag.reward-offer-label {
    transform: translate(-50%, calc(-100% - 1px));
    min-width: 42px;
    max-width: 64px;
    min-height: 12px;
    padding: 2px 4px;
    font-size: 5.6px;
  }
}


/* =========================================================
   EAM KK - STAFF STAMP VISUAL ALIGNMENT
   Same reward/status visual language as Customer.
   Stamp area only.
   ========================================================= */
.staff-service-record .staff-premium-marker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding-top: 17px;
}

.staff-service-record .staff-premium-marker-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  min-width: 0;
  cursor: pointer;
}

.staff-service-record .staff-premium-marker-button:disabled {
  cursor: default;
  opacity: 1;
}

.staff-service-record .staff-premium-marker-button .premium-marker-wrap {
  width: auto;
  min-width: 0;
  margin-inline: auto;
}

.staff-service-record .staff-premium-marker-button .premium-service-marker {
  margin-inline: auto;
}

@media (max-width: 640px) {
  .staff-service-record .staff-premium-marker-grid {
    gap: 8px;
    padding-top: 16px;
  }
}
