.tb-staff-picker-wrap,
.tb-staff-dashboard-wrap {
  max-width: 1200px;
  margin: 30px auto;
  padding: 24px;
  background: #f7f7fb;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tb-staff-picker-wrap h2,
.tb-staff-dashboard-wrap h2,
.tb-staff-dashboard-wrap h3 {
  margin-top: 0;
  color: #1f2430;
}

.tb-staff-picker-wrap select,
.tb-staff-picker-wrap input,
.tb-staff-picker-wrap button,
.tb-staff-dashboard-wrap select,
.tb-staff-dashboard-wrap input,
.tb-staff-dashboard-wrap button,
.tb-staff-dashboard-wrap textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dce7;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

.tb-staff-picker-wrap button,
.tb-staff-dashboard-wrap button {
  background: linear-gradient(135deg, #315fda, #4c7dff);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.tb-staff-picker-wrap button:hover,
.tb-staff-dashboard-wrap button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.tb-staff-dashboard-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.tb-staff-customer-card,
.tb-staff-summary-card {
  background: linear-gradient(135deg, #182848, #223b73);
  color: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.tb-staff-customer-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tb-staff-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
}

.tb-staff-customer-info h2 {
  color: #fff;
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.tb-staff-customer-info div {
  opacity: 0.95;
  margin-bottom: 6px;
  font-size: 18px;
}

.tb-staff-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.tb-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-bottom: 6px;
}

.tb-big-number {
  font-size: 42px;
  font-weight: 800;
  color: #70e08d;
}

.tb-level-name {
  font-size: 32px;
  font-weight: 800;
  color: #ffd05a;
  margin-bottom: 8px;
}

.tb-progress-text {
  margin-bottom: 10px;
  opacity: 0.92;
}

.tb-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  overflow: hidden;
}

.tb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd05a, #ffb11f);
  border-radius: 999px;
}

.tb-rewards-section,
.tb-points-form-section {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tb-rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.tb-reward-card {
  position: relative;
  z-index: 2;
  background: #fdf8ec;
  border: 1px solid #ece2c5;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tb-reward-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

.tb-reward-card.is-locked {
  opacity: 0.55;
}

.tb-reward-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.tb-reward-title {
  font-size: 28px;
  font-weight: 800;
  color: #1f2430;
  margin-bottom: 8px;
  line-height: 1.15;
}

.tb-reward-subtitle {
  color: #4d5566;
  font-size: 16px;
  margin-bottom: 14px;
  min-height: 40px;
}

.tb-reward-points {
  display: inline-block;
  background: #2ea85c;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  margin: 0 auto;
}

.tb-reward-lock {
  margin-top: 12px;
  font-size: 14px;
  color: #a74848;
  font-weight: 600;
}

.tb-points-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tb-points-form-note {
  margin-top: 16px;
}

.tb-points-form-actions {
  margin-top: 18px;
}

.tb-staff-success,
.tb-staff-error {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.5;
}

.tb-staff-success {
  background: #dff4e4;
  color: #1f5a2f;
}

.tb-staff-error {
  background: #f8d7da;
  color: #7e1f27;
}

.tb-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,18,35,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tb-reward-modal-content {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  text-align: center;
}

.tb-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px !important;
  min-height: 40px !important;
  border-radius: 50%;
  border: none;
  background: #eef1f7;
  color: #1f2430;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tb-modal-icon {
  font-size: 52px;
  margin-bottom: 10px;
}

.tb-modal-actions {
  margin-top: 20px;
}

.tb-modal-actions button {
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .tb-staff-dashboard-top {
    grid-template-columns: 1fr;
  }

  .tb-rewards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-points-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tb-staff-picker-wrap,
  .tb-staff-dashboard-wrap {
    margin: 16px;
    padding: 16px;
    border-radius: 16px;
  }

  .tb-staff-customer-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tb-staff-summary-row {
    grid-template-columns: 1fr;
  }

  .tb-rewards-grid,
  .tb-points-form-grid {
    grid-template-columns: 1fr;
  }

  .tb-staff-customer-info h2 {
    font-size: 30px;
  }

  .tb-big-number {
    font-size: 34px;
  }

  .tb-reward-title {
    font-size: 24px;
  }
}



.tb-user-qr-box {
margin-top: 18px;
background: rgba(255,255,255,0.12);
padding: 16px;
border-radius: 16px;
max-width: 280px;
}

.tb-user-qr-image {
width: 180px;
height: 180px;
background: #fff;
padding: 10px;
border-radius: 14px;
display: block;
margin: 10px 0;
}

.tb-user-qr-box p {
margin: 8px 0 0;
font-size: 14px;
opacity: 0.9;
}


.tb-qr-scanner-box {
background: #fff;
border-radius: 18px;
padding: 20px;
margin-bottom: 24px;
box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

#tb-qr-reader {
width: 100%;
max-width: 420px;
min-height: 260px;
margin: 16px 0;
border-radius: 18px;
overflow: hidden;
background: #111;
}

#tb-qr-status {
margin: 10px 0 14px;
font-size: 14px;
color: #555;
}

#tb-start-qr,
#tb-stop-qr {
max-width: 220px;
margin-right: 10px;
}


.tb-user-qr-actions {
margin-top: 16px;
}

.tb-fidelity-card-modal-content {
max-width: 420px;
}

.tb-user-qr-image-modal {
width: 240px;
height: 240px;
margin: 18px auto;
}


.tb-pos-selected-receipt {
margin: 16px 0;
padding: 12px 14px;
border-radius: 12px;
background: #eef6ff;
color: #123;
}

.tb-secondary-btn {
background: #f1f1f1 !important;
color: #111 !important;
margin-bottom: 14px;
}

.tb-pos-modal-content {
max-width: 760px;
}

.tb-pos-receipts-list {
display: grid;
gap: 12px;
max-height: 520px;
overflow-y: auto;
}

.tb-pos-receipt-row {
text-align: left;
background: #fff;
border: 1px solid #e4e4e4;
border-radius: 14px;
padding: 14px;
cursor: pointer;
color: #111;
}

.tb-pos-receipt-row:hover {
background: #f5f8ff;
border-color: #315fda;
}

.tb-pos-receipt-row small {
display: block;
margin-top: 6px;
color: #666;
line-height: 1.4;
}


.tb-dashboard-back-wrap {
margin-bottom: 18px;
}

.tb-dashboard-back-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
border-radius: 12px;
background: #f1f5ff;
color: #234;
text-decoration: none;
font-weight: 600;
transition: all 0.2s ease;
}

.tb-dashboard-back-btn:hover {
background: #dfe8ff;
color: #111;
transform: translateY(-1px);
}
.tb-fidelity-card-modal-content {
max-width: 420px;
width: calc(100% - 32px);
text-align: center;
padding: 26px 22px 28px;
}

.tb-fidelity-card-modal-content h3 {
font-size: 34px;
line-height: 1.1;
margin-bottom: 24px;
text-align: center;
}

.tb-user-qr-image-modal {
width: 260px !important;
height: 260px !important;
max-width: 80vw;
max-height: 80vw;
display: block;
margin: 0 auto 22px;
background: #fff;
padding: 14px;
border-radius: 24px;
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.tb-fidelity-card-modal-content p {
text-align: center;
margin-top: 10px;
}

@media (max-width: 768px) {

.tb-fidelity-card-modal-content {
padding: 24px 18px 26px;
border-radius: 28px;
}

.tb-fidelity-card-modal-content h3 {
font-size: 28px;
margin-bottom: 20px;
}

.tb-user-qr-image-modal {
width: 72vw !important;
height: 72vw !important;
max-width: 320px;
max-height: 320px;
padding: 12px;
border-radius: 22px;
}

.tb-modal-actions button {
width: 100%;
}
}

.tb-fidelity-auth-pro-wrap {
max-width: 1080px;
margin: 0 auto;
padding: 42px 18px 70px;
}

.tb-fidelity-auth-pro-hero {
background: linear-gradient(135deg, #071f22, #123f42);
color: #fff;
border-radius: 30px;
padding: 42px 34px;
margin-bottom: 28px;
box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.tb-fidelity-auth-badge {
display: inline-block;
background: rgba(255,255,255,0.12);
border: 1px solid rgba(255,255,255,0.25);
padding: 8px 14px;
border-radius: 999px;
font-size: 13px;
margin-bottom: 16px;
}

.tb-fidelity-auth-pro-hero h1 {
color: #fff;
font-size: 46px;
line-height: 1.05;
margin: 0 0 14px;
}

.tb-fidelity-auth-pro-hero p {
max-width: 650px;
font-size: 18px;
line-height: 1.5;
margin: 0;
opacity: 0.9;
}

.tb-fidelity-choice-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 22px;
}

.tb-fidelity-choice-card {
background: #fff;
border-radius: 26px;
padding: 34px;
text-decoration: none;
color: #142224;
box-shadow: 0 12px 34px rgba(0,0,0,0.08);
border: 1px solid rgba(0,0,0,0.06);
transition: all 0.25s ease;
}

.tb-fidelity-choice-card:hover {
transform: translateY(-4px);
box-shadow: 0 18px 44px rgba(0,0,0,0.14);
color: #142224;
}

.tb-fidelity-choice-card-gold {
background: linear-gradient(135deg, #fff8eb, #fff);
border-color: #e2bd7a;
}

.tb-fidelity-choice-icon {
width: 58px;
height: 58px;
border-radius: 18px;
background: #eef4f5;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
margin-bottom: 18px;
}

.tb-fidelity-choice-card h2 {
font-size: 32px;
margin: 0 0 10px;
}

.tb-fidelity-choice-card p {
font-size: 16px;
color: #667;
line-height: 1.5;
margin-bottom: 22px;
}

.tb-fidelity-choice-card span {
display: inline-flex;
background: #123f42;
color: #fff;
padding: 12px 18px;
border-radius: 14px;
font-weight: 700;
}

.tb-fidelity-auth-panel {
background: #fff;
border-radius: 28px;
padding: 34px;
box-shadow: 0 14px 42px rgba(0,0,0,0.09);
max-width: 720px;
margin: 0 auto;
}

.tb-fidelity-auth-panel h2 {
font-size: 34px;
margin: 0 0 8px;
}

.tb-fidelity-auth-panel > p {
color: #667;
margin-bottom: 24px;
}

.tb-fidelity-back-link {
display: inline-block;
margin-bottom: 18px;
text-decoration: none;
color: #123f42;
font-weight: 700;
}

.tb-fidelity-auth-panel label {
display: block;
font-size: 13px;
font-weight: 800;
text-transform: uppercase;
margin-bottom: 7px;
color: #263238;
}

.tb-fidelity-auth-panel input[type="text"],
.tb-fidelity-auth-panel input[type="email"],
.tb-fidelity-auth-panel input[type="tel"],
.tb-fidelity-auth-panel input[type="password"] {
width: 100%;
height: 52px;
border-radius: 14px;
border: 1px solid #dce3e4;
padding: 0 14px;
background: #f8fafb;
font-size: 16px;
}

.tb-fidelity-auth-panel input:focus {
outline: none;
border-color: #123f42;
background: #fff;
box-shadow: 0 0 0 4px rgba(18,63,66,0.09);
}

.tb-fidelity-auth-panel button,
.tb-fidelity-auth-panel input[type="submit"] {
background: #123f42;
color: #fff;
border: 0;
border-radius: 15px;
padding: 15px 22px;
font-weight: 800;
cursor: pointer;
}

.tb-fidelity-form-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}

.tb-fidelity-switch {
margin-top: 22px;
padding-top: 20px;
border-top: 1px solid #edf0f0;
color: #667;
}

.tb-fidelity-switch a {
color: #123f42;
font-weight: 800;
text-decoration: none;
}

@media (max-width: 768px) {
.tb-fidelity-auth-pro-hero {
padding: 30px 22px;
border-radius: 24px;
}

.tb-fidelity-auth-pro-hero h1 {
font-size: 34px;
}

.tb-fidelity-choice-grid,
.tb-fidelity-form-row {
grid-template-columns: 1fr;
}

.tb-fidelity-auth-panel {
padding: 24px 18px;
border-radius: 24px;
}

.tb-fidelity-choice-card {
padding: 26px;
}
}


body .tb-fidelity-auth-pro-wrap {
max-width: 980px !important;
margin: 40px auto 80px !important;
padding: 0 20px !important;
}

body .tb-fidelity-auth-pro-hero {
background: radial-gradient(circle at top left, #d7b074 0, transparent 34%),
linear-gradient(135deg, #071f22 0%, #123f42 100%) !important;
color: #fff !important;
border-radius: 32px !important;
padding: 48px 42px !important;
margin-bottom: 28px !important;
box-shadow: 0 24px 70px rgba(0,0,0,0.25) !important;
}

body .tb-fidelity-auth-pro-hero h1 {
color: #fff !important;
font-size: 52px !important;
line-height: 1 !important;
margin: 10px 0 16px !important;
letter-spacing: -1px !important;
}

body .tb-fidelity-auth-pro-hero p {
color: rgba(255,255,255,0.88) !important;
font-size: 19px !important;
max-width: 680px !important;
line-height: 1.5 !important;
}

body .tb-fidelity-auth-badge {
display: inline-flex !important;
background: rgba(255,255,255,0.12) !important;
border: 1px solid rgba(255,255,255,0.24) !important;
color: #fff !important;
border-radius: 999px !important;
padding: 8px 14px !important;
font-size: 13px !important;
font-weight: 700 !important;
}

body .tb-fidelity-auth-panel {
max-width: 620px !important;
margin: -18px auto 0 !important;
background: #fff !important;
border-radius: 28px !important;
padding: 34px !important;
box-shadow: 0 22px 60px rgba(0,0,0,0.18) !important;
border: 1px solid rgba(0,0,0,0.05) !important;
}

body .tb-fidelity-auth-panel h2 {
font-size: 34px !important;
line-height: 1.1 !important;
margin: 0 0 10px !important;
color: #111827 !important;
}

body .tb-fidelity-auth-panel > p {
color: #5f6b6d !important;
font-size: 16px !important;
margin-bottom: 24px !important;
}

body .tb-fidelity-back-link {
display: inline-flex !important;
margin-bottom: 18px !important;
color: #123f42 !important;
text-decoration: none !important;
font-weight: 800 !important;
}

body .tb-fidelity-auth-panel form p {
margin-bottom: 16px !important;
}

body .tb-fidelity-auth-panel label {
font-size: 12px !important;
font-weight: 900 !important;
text-transform: uppercase !important;
letter-spacing: .04em !important;
color: #253235 !important;
margin-bottom: 7px !important;
display: block !important;
}

body .tb-fidelity-auth-panel input[type="text"],
body .tb-fidelity-auth-panel input[type="email"],
body .tb-fidelity-auth-panel input[type="tel"],
body .tb-fidelity-auth-panel input[type="password"] {
width: 100% !important;
height: 54px !important;
border: 1px solid #d9e0e1 !important;
border-radius: 15px !important;
background: #f8fbfb !important;
padding: 0 15px !important;
font-size: 16px !important;
box-sizing: border-box !important;
}

body .tb-fidelity-auth-panel input:focus {
outline: none !important;
background: #fff !important;
border-color: #123f42 !important;
box-shadow: 0 0 0 4px rgba(18,63,66,.10) !important;
}

body .tb-fidelity-auth-panel input[type="submit"],
body .tb-fidelity-auth-panel button {
width: 100% !important;
min-height: 54px !important;
border: 0 !important;
border-radius: 16px !important;
background: linear-gradient(135deg, #123f42, #09282b) !important;
color: #fff !important;
font-weight: 900 !important;
font-size: 16px !important;
cursor: pointer !important;
box-shadow: 0 12px 24px rgba(18,63,66,.22) !important;
}

body .tb-fidelity-switch {
margin-top: 22px !important;
padding-top: 20px !important;
border-top: 1px solid #edf1f1 !important;
color: #5f6b6d !important;
text-align: center !important;
}

body .tb-fidelity-switch a {
color: #123f42 !important;
font-weight: 900 !important;
text-decoration: none !important;
}

body .tb-fidelity-choice-grid {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 22px !important;
}

body .tb-fidelity-choice-card {
background: #fff !important;
border-radius: 28px !important;
padding: 34px !important;
text-decoration: none !important;
color: #111827 !important;
box-shadow: 0 18px 46px rgba(0,0,0,0.12) !important;
border: 1px solid rgba(0,0,0,0.06) !important;
}

body .tb-fidelity-choice-card h2 {
font-size: 34px !important;
margin: 0 0 10px !important;
color: #111827 !important;
}

body .tb-fidelity-choice-card p {
color: #5f6b6d !important;
font-size: 16px !important;
line-height: 1.5 !important;
}

body .tb-fidelity-choice-card span {
display: inline-flex !important;
margin-top: 14px !important;
padding: 13px 18px !important;
border-radius: 15px !important;
background: #123f42 !important;
color: #fff !important;
font-weight: 900 !important;
}

body .tb-fidelity-choice-icon {
width: 62px !important;
height: 62px !important;
border-radius: 20px !important;
background: #eef5f5 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 30px !important;
margin-bottom: 18px !important;
}

@media (max-width: 768px) {
body .tb-fidelity-auth-pro-wrap {
margin: 24px auto 50px !important;
}

body .tb-fidelity-auth-pro-hero {
padding: 34px 24px !important;
border-radius: 26px !important;
}

body .tb-fidelity-auth-pro-hero h1 {
font-size: 38px !important;
}

body .tb-fidelity-choice-grid {
grid-template-columns: 1fr !important;
}

body .tb-fidelity-auth-panel {
margin-top: -12px !important;
padding: 24px 18px !important;
border-radius: 24px !important;
}
}


/* ==========================================================
   Fidelity area premium redesign (scoped to customer area)
   Neutral palette, closer to Techno Bridge visual language
   ========================================================== */

.tb-user-fidelity-wrap {
  max-width: 1240px;
  background: linear-gradient(180deg, #f7f8fa 0%, #f3f5f7 100%);
  border: 1px solid #e7ebf0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}

.tb-user-fidelity-wrap .tb-staff-dashboard-top {
  align-items: stretch;
  gap: 22px;
}

.tb-user-fidelity-wrap .tb-staff-customer-card,
.tb-user-fidelity-wrap .tb-staff-summary-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,250,251,0.98) 100%);
  color: #0f172a;
  border: 1px solid #e7ebef;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.tb-user-fidelity-wrap .tb-staff-customer-card::before,
.tb-user-fidelity-wrap .tb-staff-summary-card::before,
.tb-user-fidelity-wrap .tb-rewards-section::before,
.tb-user-fidelity-wrap .tb-reward-modal-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #162231 0%, #556274 55%, #b0a287 100%);
}

.tb-user-fidelity-wrap .tb-staff-customer-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 28px;
}

.tb-user-fidelity-wrap .tb-user-card-topline {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.tb-user-fidelity-wrap .tb-user-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #64748b;
}

.tb-user-fidelity-wrap .tb-user-card-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #c7cfda;
}

.tb-user-fidelity-wrap .tb-staff-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, #1f2f45 0%, #4a5b72 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 28px rgba(31, 47, 69, 0.18);
}

.tb-user-fidelity-wrap .tb-staff-customer-info h2 {
  color: #0f172a;
  font-size: 38px;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.tb-user-fidelity-wrap .tb-staff-customer-info > div {
  opacity: 1;
  margin-bottom: 0;
  font-size: 16px;
}

.tb-user-fidelity-wrap .tb-user-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tb-user-fidelity-wrap .tb-user-meta-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
}

.tb-user-fidelity-wrap .tb-user-meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
}

.tb-user-fidelity-wrap .tb-user-meta-value {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
}

.tb-user-fidelity-wrap .tb-user-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.tb-user-fidelity-wrap .tb-user-links,
.tb-user-fidelity-wrap .tb-user-qr-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tb-user-fidelity-wrap .tb-user-link-btn,
.tb-user-fidelity-wrap button,
.tb-user-fidelity-wrap .tb-modal-actions button {
  width: auto;
  min-width: 170px;
  min-height: 52px;
  border-radius: 16px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #162231 0%, #334155 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 34, 49, 0.14);
}

.tb-user-fidelity-wrap a.tb-user-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tb-user-fidelity-wrap .tb-user-link-btn:hover {
  color: #fff;
}

.tb-user-fidelity-wrap .tb-user-link-btn-ghost {
  background: #ffffff;
  color: #162231;
  border: 1px solid #d7dee8;
  box-shadow: none;
}

.tb-user-fidelity-wrap .tb-user-link-btn-minimal {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e5eaf1;
  box-shadow: none;
}

.tb-user-fidelity-wrap .tb-user-link-btn-ghost:hover,
.tb-user-fidelity-wrap .tb-user-link-btn-minimal:hover {
  color: #0f172a;
}

.tb-user-fidelity-wrap .tb-staff-summary-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
}

.tb-user-fidelity-wrap .tb-staff-summary-row {
  gap: 14px;
}

.tb-user-fidelity-wrap .tb-user-stat-box {
  padding: 16px 18px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
}

.tb-user-fidelity-wrap .tb-label {
  color: #64748b;
  opacity: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tb-user-fidelity-wrap .tb-big-number {
  color: #162231;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tb-user-fidelity-wrap .tb-staff-level-box {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid #e7ebef;
}

.tb-user-fidelity-wrap .tb-level-name {
  color: #8e7448;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.tb-user-fidelity-wrap .tb-progress-text {
  color: #475569;
  font-size: 15px;
  margin-bottom: 12px;
}

.tb-user-fidelity-wrap .tb-progress-bar {
  height: 12px;
  background: #e9eef4;
}

.tb-user-fidelity-wrap .tb-progress-fill {
  background: linear-gradient(90deg, #b79b67 0%, #d8c29b 100%);
}

.tb-user-fidelity-wrap .tb-rewards-section {
  position: relative;
  background: rgba(255,255,255,0.98);
  border-radius: 22px;
  padding: 30px;
  border: 1px solid #e7ebef;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.tb-user-fidelity-wrap .tb-rewards-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tb-user-fidelity-wrap .tb-rewards-section h3 {
  color: #0f172a;
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
}

.tb-user-fidelity-wrap .tb-rewards-section > p,
.tb-user-fidelity-wrap .tb-rewards-heading p {
  color: #64748b;
  font-size: 16px;
  margin: 0;
  max-width: 760px;
}

.tb-user-fidelity-wrap .tb-rewards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tb-user-fidelity-wrap .tb-reward-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border: 1px solid #e6ebf1;
  border-radius: 22px;
  min-height: 310px;
  text-align: left;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.tb-user-fidelity-wrap .tb-reward-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
  border-color: #d7dee8;
}

.tb-user-fidelity-wrap .tb-reward-card.is-locked {
  opacity: 0.72;
}

.tb-user-fidelity-wrap .tb-reward-image-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 18px;
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid #e8edf3;
  overflow: hidden;
}

.tb-user-fidelity-wrap .tb-reward-image {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: contain;
}

.tb-user-fidelity-wrap .tb-reward-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f7, #f8fafc);
  font-size: 34px;
  margin: 4px 0 18px;
}

.tb-user-fidelity-wrap .tb-reward-title {
  font-size: 28px;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.tb-user-fidelity-wrap .tb-reward-subtitle {
  min-height: 42px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.tb-user-fidelity-wrap .tb-reward-points {
  background: linear-gradient(135deg, #162231 0%, #334155 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  margin: auto 0 0;
}

.tb-user-fidelity-wrap .tb-reward-lock {
  margin-top: 12px;
  color: #9a5e4a;
  font-size: 13px;
  font-weight: 700;
}

.tb-user-fidelity-wrap .tb-reward-modal {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.tb-user-fidelity-wrap .tb-reward-modal-content {
  max-width: 620px;
  border-radius: 28px;
  padding: 34px 30px 30px;
  text-align: left;
  border: 1px solid #e7ebef;
  overflow: hidden;
}

.tb-user-fidelity-wrap .tb-reward-modal-content h3 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin: 0 0 8px;
}

.tb-user-fidelity-wrap #tb-modal-subtitle {
  color: #8e7448;
  font-weight: 700;
  margin: 0 0 12px;
}

.tb-user-fidelity-wrap #tb-modal-description {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
}

.tb-user-fidelity-wrap .tb-modal-close {
  background: #f2f5f8;
  border: 1px solid #e4e8ef;
}

.tb-user-fidelity-wrap .tb-modal-image-wrap {
  background: #f8fafc;
  border-radius: 22px;
  border: 1px solid #e8edf3;
  padding: 18px;
  margin-bottom: 18px;
}

.tb-user-fidelity-wrap .tb-modal-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.tb-user-fidelity-wrap .tb-modal-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #f3f6fa;
  margin-bottom: 16px;
}

.tb-user-fidelity-wrap .tb-modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tb-user-fidelity-wrap .tb-modal-details p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  color: #334155;
  line-height: 1.45;
}

.tb-user-fidelity-wrap #tb-modal-reason {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.tb-user-fidelity-wrap .tb-fidelity-card-modal-content {
  max-width: 460px;
  text-align: center;
}

.tb-user-fidelity-wrap .tb-fidelity-card-modal-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 12px;
}

.tb-user-fidelity-wrap .tb-fidelity-card-modal-content h3 {
  text-align: center;
  color: #0f172a;
}

.tb-user-fidelity-wrap .tb-user-qr-image-modal {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e8edf3;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.tb-user-fidelity-wrap .tb-fidelity-card-modal-content p {
  color: #475569;
}

@media (max-width: 1100px) {
  .tb-user-fidelity-wrap .tb-user-meta-list {
    grid-template-columns: 1fr;
  }

  .tb-user-fidelity-wrap .tb-modal-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tb-user-fidelity-wrap {
    padding: 16px;
  }

  .tb-user-fidelity-wrap .tb-staff-customer-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tb-user-fidelity-wrap .tb-staff-avatar {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .tb-user-fidelity-wrap .tb-staff-customer-info h2,
  .tb-user-fidelity-wrap .tb-rewards-section h3 {
    font-size: 30px;
  }

  .tb-user-fidelity-wrap .tb-big-number {
    font-size: 36px;
  }

  .tb-user-fidelity-wrap .tb-user-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tb-user-fidelity-wrap .tb-user-links,
  .tb-user-fidelity-wrap .tb-user-qr-actions {
    width: 100%;
  }

  .tb-user-fidelity-wrap .tb-user-link-btn,
  .tb-user-fidelity-wrap button,
  .tb-user-fidelity-wrap .tb-modal-actions button {
    width: 100%;
    min-width: 0;
  }

  .tb-user-fidelity-wrap .tb-rewards-section {
    padding: 24px 18px;
  }

  .tb-user-fidelity-wrap .tb-reward-card {
    min-height: auto;
  }

  .tb-user-fidelity-wrap .tb-reward-modal-content {
    padding: 28px 18px 20px;
  }
}

/* ==========================================================
   Fidelity area mobile compact refinements
   - less page padding on phones
   - compact personal data card
   - rewards as horizontal swipe slider
   ========================================================== */

@media (max-width: 700px) {
  body .tb-staff-dashboard-wrap.tb-user-fidelity-wrap {
    width: calc(100vw - 12px) !important;
    max-width: none !important;
    margin: 8px 6px 28px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    box-shadow: none !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-dashboard-top {
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-card,
  body .tb-user-fidelity-wrap .tb-staff-summary-card,
  body .tb-user-fidelity-wrap .tb-rewards-section {
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-card {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 18px 14px 14px !important;
    align-items: start !important;
  }

  body .tb-user-fidelity-wrap .tb-user-card-topline {
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
  }

  body .tb-user-fidelity-wrap .tb-user-card-kicker {
    font-size: 10px !important;
    letter-spacing: .12em !important;
  }

  body .tb-user-fidelity-wrap .tb-user-card-kicker::before {
    width: 20px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    font-size: 22px !important;
    box-shadow: none !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-info h2 {
    font-size: 27px !important;
    line-height: 1.02 !important;
    margin: 0 0 10px !important;
    word-break: break-word !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-list > div {
    padding: 9px 11px !important;
    border-radius: 13px !important;
    gap: 2px !important;
    background: #f8fafc !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-label {
    font-size: 9px !important;
    letter-spacing: .11em !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-value {
    font-size: 14px !important;
    line-height: 1.28 !important;
  }

  body .tb-user-fidelity-wrap .tb-user-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body .tb-user-fidelity-wrap .tb-user-qr-actions {
    width: 100% !important;
  }

  body .tb-user-fidelity-wrap .tb-user-link-btn,
  body .tb-user-fidelity-wrap button.tb-user-link-btn {
    min-height: 46px !important;
    min-width: 0 !important;
    width: 100% !important;
    border-radius: 14px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-summary-card {
    padding: 18px 14px 14px !important;
    gap: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-summary-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  body .tb-user-fidelity-wrap .tb-user-stat-box {
    padding: 11px 10px !important;
    border-radius: 15px !important;
  }

  body .tb-user-fidelity-wrap .tb-label {
    font-size: 9px !important;
    letter-spacing: .10em !important;
    margin-bottom: 4px !important;
  }

  body .tb-user-fidelity-wrap .tb-big-number {
    font-size: 28px !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-level-box {
    padding: 13px 14px !important;
    border-radius: 16px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-name {
    font-size: 27px !important;
    margin-bottom: 4px !important;
  }

  body .tb-user-fidelity-wrap .tb-progress-text {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  body .tb-user-fidelity-wrap .tb-progress-bar {
    height: 9px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section {
    padding: 20px 0 20px 14px !important;
    overflow: hidden !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading {
    padding-right: 14px !important;
    margin-bottom: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section h3 {
    font-size: 28px !important;
    margin: 8px 0 6px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 14px 12px 0 !important;
    margin: 0 !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid::-webkit-scrollbar {
    height: 6px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 999px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-card {
    flex: 0 0 min(78vw, 285px) !important;
    max-width: 285px !important;
    min-height: 260px !important;
    scroll-snap-align: start !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-image-wrap {
    min-height: 108px !important;
    height: 108px !important;
    margin-bottom: 14px !important;
    border-radius: 15px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-image {
    height: 108px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-title {
    font-size: 22px !important;
    line-height: 1.08 !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-subtitle {
    font-size: 14px !important;
    min-height: 34px !important;
    margin-bottom: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-points {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 390px) {
  body .tb-user-fidelity-wrap .tb-staff-customer-info h2 {
    font-size: 24px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-links {
    grid-template-columns: 1fr !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-summary-row {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   Mobile full-bleed alignment fix
   Keeps the fidelity area centered against the viewport even
   when the WordPress/Elementor container has internal padding.
   ========================================================== */
@media (max-width: 700px) {
  body .tb-staff-dashboard-wrap.tb-user-fidelity-wrap {
    box-sizing: border-box !important;
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    margin-left: calc(50% - 50vw + 4px) !important;
    margin-right: calc(50% - 50vw + 4px) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-card,
  body .tb-user-fidelity-wrap .tb-staff-summary-card,
  body .tb-user-fidelity-wrap .tb-rewards-section {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section {
    padding-left: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading {
    padding-right: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid {
    padding-right: 12px !important;
  }
}

/* ==========================================================
   Fidelity area redesign - black & gold compact premium
   Inspired by luxury membership apps, adapted for TB Fidelity
   Version 0.2.5
   ========================================================== */

body .tb-staff-dashboard-wrap.tb-user-fidelity-wrap {
  --tbf-bg: #f7f4ee;
  --tbf-card: #fffdf8;
  --tbf-ink: #111111;
  --tbf-muted: #6f675b;
  --tbf-line: #e8dfcf;
  --tbf-gold: #a88745;
  --tbf-gold-soft: #d8c79d;
  --tbf-black: #141414;
  --tbf-black-2: #252525;
  max-width: 1180px !important;
  background: linear-gradient(180deg, #faf7f1 0%, #f2ecdf 100%) !important;
  border: 1px solid rgba(168,135,69,.18) !important;
  box-shadow: 0 22px 55px rgba(20,20,20,.08) !important;
  color: var(--tbf-ink) !important;
}

body .tb-user-fidelity-wrap .tb-staff-dashboard-top {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

body .tb-user-fidelity-wrap .tb-staff-customer-card,
body .tb-user-fidelity-wrap .tb-staff-summary-card,
body .tb-user-fidelity-wrap .tb-rewards-section {
  background: linear-gradient(180deg, rgba(255,253,248,.96) 0%, rgba(250,246,238,.96) 100%) !important;
  border: 1px solid rgba(168,135,69,.22) !important;
  box-shadow: 0 16px 36px rgba(20,20,20,.07) !important;
  color: var(--tbf-ink) !important;
  overflow: hidden !important;
}

body .tb-user-fidelity-wrap .tb-staff-customer-card::before,
body .tb-user-fidelity-wrap .tb-staff-summary-card::before,
body .tb-user-fidelity-wrap .tb-rewards-section::before,
body .tb-user-fidelity-wrap .tb-reward-modal-content::before {
  background: linear-gradient(90deg, #111111 0%, #3a3429 42%, #a88745 100%) !important;
}

body .tb-user-fidelity-wrap .tb-staff-customer-card {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 24px !important;
  border-radius: 24px !important;
}

body .tb-user-fidelity-wrap .tb-user-card-topline {
  grid-column: 1 / -1 !important;
  margin-bottom: 2px !important;
}

body .tb-user-fidelity-wrap .tb-user-card-kicker {
  color: #7b6843 !important;
  font-size: 11px !important;
  letter-spacing: .16em !important;
  font-weight: 900 !important;
}

body .tb-user-fidelity-wrap .tb-user-card-kicker::before {
  background: rgba(168,135,69,.48) !important;
}

body .tb-user-fidelity-wrap .tb-staff-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #141414 0%, #303030 100%) !important;
  color: #f2d9a2 !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(20,20,20,.18), inset 0 1px 0 rgba(255,255,255,.11) !important;
}

body .tb-user-fidelity-wrap .tb-staff-customer-info h2 {
  color: #080808 !important;
  font-size: 34px !important;
  line-height: 1 !important;
  letter-spacing: -0.055em !important;
  margin: 0 0 12px !important;
}

body .tb-user-fidelity-wrap .tb-user-meta-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body .tb-user-fidelity-wrap .tb-user-meta-list > div {
  background: rgba(255,255,255,.54) !important;
  border: 1px solid rgba(168,135,69,.19) !important;
  border-radius: 18px !important;
  padding: 12px 14px !important;
}

body .tb-user-fidelity-wrap .tb-user-meta-label {
  color: #85724b !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
}

body .tb-user-fidelity-wrap .tb-user-meta-value {
  color: #171717 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

body .tb-user-fidelity-wrap .tb-user-actions {
  margin-top: 14px !important;
  gap: 10px !important;
}

body .tb-user-fidelity-wrap .tb-user-link-btn,
body .tb-user-fidelity-wrap button,
body .tb-user-fidelity-wrap .tb-modal-actions button {
  min-height: 46px !important;
  min-width: 150px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #111111 0%, #2c2c2c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(20,20,20,.16) !important;
  font-size: 14px !important;
}

body .tb-user-fidelity-wrap .tb-user-link-btn-ghost,
body .tb-user-fidelity-wrap .tb-user-link-btn-minimal {
  background: rgba(255,255,255,.5) !important;
  color: #191919 !important;
  border: 1px solid rgba(168,135,69,.23) !important;
  box-shadow: none !important;
}

body .tb-user-fidelity-wrap .tb-user-link-btn:hover,
body .tb-user-fidelity-wrap button:hover {
  transform: translateY(-1px) !important;
  opacity: .96 !important;
}

body .tb-user-fidelity-wrap .tb-staff-summary-card {
  padding: 24px !important;
  border-radius: 24px !important;
}

body .tb-user-fidelity-wrap .tb-staff-summary-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

body .tb-user-fidelity-wrap .tb-user-stat-box,
body .tb-user-fidelity-wrap .tb-staff-level-box {
  background: rgba(255,255,255,.54) !important;
  border: 1px solid rgba(168,135,69,.19) !important;
  border-radius: 18px !important;
}

body .tb-user-fidelity-wrap .tb-user-stat-box {
  padding: 14px 16px !important;
}

body .tb-user-fidelity-wrap .tb-label {
  color: #85724b !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}

body .tb-user-fidelity-wrap .tb-big-number {
  color: #090909 !important;
  font-size: 38px !important;
  line-height: 1 !important;
  letter-spacing: -0.06em !important;
}

body .tb-user-fidelity-wrap .tb-staff-level-box {
  padding: 18px !important;
}

body .tb-user-fidelity-wrap .tb-level-name {
  color: #9b7735 !important;
  font-size: 34px !important;
  letter-spacing: -0.05em !important;
  line-height: 1 !important;
  margin: 8px 0 10px !important;
}

body .tb-user-fidelity-wrap .tb-progress-text {
  color: #665e52 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

body .tb-user-fidelity-wrap .tb-progress-bar {
  height: 9px !important;
  background: rgba(168,135,69,.18) !important;
  border-radius: 999px !important;
}

body .tb-user-fidelity-wrap .tb-progress-fill {
  background: linear-gradient(90deg, #8a6a2d 0%, #d1b576 100%) !important;
}

body .tb-user-fidelity-wrap .tb-rewards-section {
  border-radius: 24px !important;
  padding: 24px !important;
}

body .tb-user-fidelity-wrap .tb-rewards-heading {
  margin-bottom: 16px !important;
}

body .tb-user-fidelity-wrap .tb-rewards-section h3 {
  color: #090909 !important;
  font-size: 36px !important;
  line-height: 1 !important;
  letter-spacing: -0.06em !important;
  margin: 10px 0 8px !important;
}

body .tb-user-fidelity-wrap .tb-rewards-heading p,
body .tb-user-fidelity-wrap .tb-rewards-section > p {
  color: #6f675b !important;
  font-size: 15px !important;
}

body .tb-user-fidelity-wrap .tb-rewards-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
  gap: 16px !important;
}

body .tb-user-fidelity-wrap .tb-reward-card {
  min-height: 270px !important;
  background: rgba(255,255,255,.67) !important;
  border: 1px solid rgba(168,135,69,.20) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 28px rgba(20,20,20,.06) !important;
  text-align: left !important;
  padding: 16px !important;
}

body .tb-user-fidelity-wrap .tb-reward-card:hover {
  border-color: rgba(168,135,69,.42) !important;
  box-shadow: 0 18px 38px rgba(20,20,20,.11) !important;
}

body .tb-user-fidelity-wrap .tb-reward-card.is-locked {
  opacity: .58 !important;
}

body .tb-user-fidelity-wrap .tb-reward-image-wrap {
  min-height: 116px !important;
  height: 116px !important;
  background: linear-gradient(180deg, #f8f3e9 0%, #efe4cf 100%) !important;
  border: 1px solid rgba(168,135,69,.18) !important;
  border-radius: 18px !important;
  margin-bottom: 14px !important;
}

body .tb-user-fidelity-wrap .tb-reward-image {
  height: 112px !important;
  object-fit: contain !important;
}

body .tb-user-fidelity-wrap .tb-reward-title {
  color: #090909 !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
}

body .tb-user-fidelity-wrap .tb-reward-subtitle {
  color: #70665a !important;
  font-size: 14px !important;
  min-height: 34px !important;
}

body .tb-user-fidelity-wrap .tb-reward-points {
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%) !important;
  color: #f8e3af !important;
  border: 1px solid rgba(168,135,69,.32) !important;
  padding: 9px 13px !important;
}

body .tb-user-fidelity-wrap .tb-reward-lock {
  color: #8e6331 !important;
}

body .tb-user-fidelity-wrap .tb-reward-modal {
  background: rgba(10,10,10,.54) !important;
  backdrop-filter: blur(4px) !important;
}

body .tb-user-fidelity-wrap .tb-reward-modal-content {
  background: linear-gradient(180deg, #fffdf8 0%, #f8f2e7 100%) !important;
  border: 1px solid rgba(168,135,69,.28) !important;
  border-radius: 26px !important;
  color: #111 !important;
}

body .tb-user-fidelity-wrap .tb-modal-close {
  background: rgba(255,255,255,.7) !important;
  color: #111 !important;
  border: 1px solid rgba(168,135,69,.22) !important;
  box-shadow: none !important;
}

body .tb-user-fidelity-wrap .tb-reward-modal-content h3 {
  color: #090909 !important;
}

body .tb-user-fidelity-wrap #tb-modal-subtitle,
body .tb-user-fidelity-wrap .tb-fidelity-card-modal-kicker {
  color: #9b7735 !important;
}

body .tb-user-fidelity-wrap .tb-modal-details p,
body .tb-user-fidelity-wrap .tb-modal-image-wrap {
  background: rgba(255,255,255,.56) !important;
  border-color: rgba(168,135,69,.20) !important;
}

body .tb-user-fidelity-wrap .tb-user-qr-image-modal {
  background: #fff !important;
  border: 1px solid rgba(168,135,69,.25) !important;
  box-shadow: 0 14px 30px rgba(20,20,20,.10) !important;
}

@media (max-width: 700px) {
  body .tb-staff-dashboard-wrap.tb-user-fidelity-wrap {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    margin-left: calc(50% - 50vw + 4px) !important;
    margin-right: calc(50% - 50vw + 4px) !important;
    margin-top: 6px !important;
    margin-bottom: 24px !important;
    padding: 5px !important;
    border-radius: 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-dashboard-top {
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-card {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 15px 12px 12px !important;
    border-radius: 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-card-topline {
    margin-bottom: -2px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-avatar {
    width: 54px !important;
    height: 54px !important;
    border-radius: 17px !important;
    font-size: 21px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-info h2 {
    font-size: 23px !important;
    margin-bottom: 8px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-list > div:first-child {
    grid-column: 1 / -1 !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-list > div {
    border-radius: 14px !important;
    padding: 9px 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-label,
  body .tb-user-fidelity-wrap .tb-label {
    font-size: 9px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-meta-value {
    font-size: 13px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-actions {
    margin-top: 9px !important;
    gap: 7px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 100% !important;
  }

  body .tb-user-fidelity-wrap .tb-user-qr-actions {
    width: 100% !important;
  }

  body .tb-user-fidelity-wrap .tb-user-link-btn,
  body .tb-user-fidelity-wrap button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 43px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-summary-card {
    padding: 15px 12px 12px !important;
    border-radius: 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-summary-row {
    gap: 7px !important;
    margin-bottom: 8px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-stat-box {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-big-number {
    font-size: 28px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-level-box {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-name {
    font-size: 29px !important;
    margin: 5px 0 7px !important;
  }

  body .tb-user-fidelity-wrap .tb-progress-text {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section {
    padding: 15px 0 16px 12px !important;
    border-radius: 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading {
    padding-right: 12px !important;
    margin-bottom: 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section h3 {
    font-size: 28px !important;
    margin: 7px 0 5px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading p,
  body .tb-user-fidelity-wrap .tb-rewards-section > p {
    font-size: 13px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 2px 12px 10px 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid::-webkit-scrollbar {
    height: 3px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid::-webkit-scrollbar-thumb {
    background: rgba(168,135,69,.45) !important;
    border-radius: 999px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-card {
    flex: 0 0 76vw !important;
    min-width: 76vw !important;
    max-width: 76vw !important;
    min-height: 235px !important;
    scroll-snap-align: start !important;
    border-radius: 17px !important;
    padding: 13px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-image-wrap {
    height: 94px !important;
    min-height: 94px !important;
    border-radius: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-image {
    height: 90px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-title {
    font-size: 21px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-subtitle {
    font-size: 13px !important;
    min-height: 28px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-modal-content {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
    padding: 28px 18px 20px !important;
    border-radius: 22px !important;
  }
}

/* ==========================================================
   TB Fidelity 0.2.6 - Elite / Guess inspired redesign
   Neutral black & gold hospitality membership UI
   ========================================================== */

body .tb-user-fidelity-wrap {
  --tb-elite-black: #121212;
  --tb-elite-ink: #171717;
  --tb-elite-muted: #687181;
  --tb-elite-line: #dedede;
  --tb-elite-soft: #fbfaf7;
  --tb-elite-cream: #f7f0e3;
  --tb-elite-gold: #b98a2b;
  --tb-elite-gold-dark: #9a6b13;
  max-width: 1180px !important;
  margin: 36px auto 70px !important;
  padding: 38px !important;
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.07) !important;
  border-radius: 18px !important;
  box-shadow: 0 26px 80px rgba(17, 24, 39, .11) !important;
  color: var(--tb-elite-ink) !important;
}

body .tb-user-fidelity-wrap * {
  box-sizing: border-box;
}

body .tb-user-fidelity-wrap .tb-user-card-kicker {
  color: var(--tb-elite-black) !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  font-size: 15px !important;
}

body .tb-user-fidelity-wrap .tb-user-card-kicker::before {
  background: var(--tb-elite-gold) !important;
  height: 2px !important;
  width: 52px !important;
}

body .tb-user-fidelity-wrap .tb-elite-profile-card,
body .tb-user-fidelity-wrap .tb-elite-summary-card,
body .tb-user-fidelity-wrap .tb-elite-tabs {
  width: 100% !important;
  display: block !important;
  margin: 0 0 24px !important;
  padding: 32px !important;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(18,18,18,.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(17,24,39,.06) !important;
  position: relative !important;
  overflow: hidden !important;
}

body .tb-user-fidelity-wrap .tb-elite-profile-card::before,
body .tb-user-fidelity-wrap .tb-elite-summary-card::before,
body .tb-user-fidelity-wrap .tb-elite-tabs::before,
body .tb-user-fidelity-wrap .tb-rewards-section::before {
  content: none !important;
}

body .tb-user-fidelity-wrap .tb-elite-profile-main {
  display: grid !important;
  grid-template-columns: 128px minmax(0, 1fr) 270px !important;
  align-items: center !important;
  gap: 34px !important;
  margin-top: 28px !important;
}

body .tb-user-fidelity-wrap .tb-staff-avatar {
  width: 132px !important;
  height: 132px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 35% 25%, #252525 0%, #090909 72%) !important;
  color: #d2a84f !important;
  font-size: 44px !important;
  font-weight: 400 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.18) !important;
}

body .tb-user-fidelity-wrap .tb-staff-customer-info h2 {
  margin: 0 0 8px !important;
  color: var(--tb-elite-black) !important;
  font-size: 40px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
}

body .tb-user-fidelity-wrap .tb-user-email {
  color: var(--tb-elite-muted) !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin: 0 0 18px !important;
}

body .tb-user-fidelity-wrap .tb-level-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #fff3d9 0%, #f8ead0 100%) !important;
  color: var(--tb-elite-gold-dark) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  font-size: 18px !important;
}

body .tb-user-fidelity-wrap .tb-card-access-btn {
  width: 100% !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 22px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.13) !important;
  box-shadow: 0 12px 26px rgba(17,24,39,.04) !important;
  color: var(--tb-elite-black) !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0,1fr) 20px !important;
  align-items: center !important;
  gap: 16px !important;
  text-align: left !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

body .tb-user-fidelity-wrap .tb-card-access-icon {
  font-size: 32px !important;
  color: #111 !important;
  line-height: 1 !important;
}

body .tb-user-fidelity-wrap .tb-card-access-arrow {
  font-size: 42px !important;
  line-height: 0 !important;
  font-weight: 300 !important;
}

body .tb-user-fidelity-wrap .tb-elite-actions-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  max-width: 660px !important;
  margin: 30px auto 8px !important;
}

body .tb-user-fidelity-wrap .tb-user-link-btn {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 64px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.13) !important;
  color: #171717 !important;
  box-shadow: 0 10px 22px rgba(17,24,39,.035) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  gap: 12px !important;
}

body .tb-user-fidelity-wrap .tb-user-link-btn:hover {
  color: #171717 !important;
  transform: translateY(-1px) !important;
}

body .tb-user-fidelity-wrap .tb-elite-points-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1.1fr !important;
  gap: 0 !important;
  margin-top: 28px !important;
}

body .tb-user-fidelity-wrap .tb-user-stat-box {
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid rgba(18,18,18,.14) !important;
  border-radius: 0 !important;
  padding: 22px 42px !important;
  box-shadow: none !important;
}

body .tb-user-fidelity-wrap .tb-user-stat-box:first-child {
  padding-left: 22px !important;
}

body .tb-user-fidelity-wrap .tb-user-stat-box:last-child {
  border-right: 0 !important;
}

body .tb-user-fidelity-wrap .tb-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--tb-elite-black) !important;
  opacity: 1 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
}

body .tb-user-fidelity-wrap .tb-label span {
  color: var(--tb-elite-gold) !important;
}

body .tb-user-fidelity-wrap .tb-big-number {
  color: var(--tb-elite-black) !important;
  font-size: 42px !important;
  line-height: 1.05 !important;
  letter-spacing: -.05em !important;
  margin-top: 16px !important;
}

body .tb-user-fidelity-wrap .tb-stat-subtitle {
  color: var(--tb-elite-muted) !important;
  font-size: 18px !important;
  margin-top: 8px !important;
}

body .tb-user-fidelity-wrap .tb-current-level-stat {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  align-items: center !important;
}

body .tb-user-fidelity-wrap .tb-current-level-stat::before {
  content: "♛";
  grid-row: 1 / span 3;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tb-elite-gold);
  border: 2px solid rgba(185,138,43,.55);
  font-size: 46px;
}

body .tb-user-fidelity-wrap .tb-level-name {
  color: var(--tb-elite-gold) !important;
  font-size: 38px !important;
  line-height: 1 !important;
  margin: 12px 0 4px !important;
  letter-spacing: -.04em !important;
}

body .tb-user-fidelity-wrap .tb-level-journey {
  position: relative !important;
  margin: 44px 42px 0 !important;
  padding-top: 4px !important;
}

body .tb-user-fidelity-wrap .tb-level-line {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 14px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #d2d2d2 !important;
  overflow: hidden !important;
}

body .tb-user-fidelity-wrap .tb-level-line span {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #b98a2b 0%, #d5ad59 100%) !important;
}

body .tb-user-fidelity-wrap .tb-level-steps {
  display: grid !important;
  grid-template-columns: repeat(var(--tb-level-count), minmax(0, 1fr)) !important;
  gap: 18px !important;
  position: relative !important;
  z-index: 2 !important;
}

body .tb-user-fidelity-wrap .tb-level-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
  min-width: 0 !important;
}

body .tb-user-fidelity-wrap .tb-level-dot {
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  display: block !important;
  background: #d2d2d2 !important;
  border: 5px solid #fff !important;
  box-shadow: 0 0 0 1px rgba(18,18,18,.08) !important;
}

body .tb-user-fidelity-wrap .tb-level-step.is-active .tb-level-dot {
  background: var(--tb-elite-gold) !important;
}

body .tb-user-fidelity-wrap .tb-level-step.is-current .tb-level-dot {
  background: #fff !important;
  box-shadow: 0 0 0 5px var(--tb-elite-gold), 0 0 0 6px rgba(18,18,18,.08) !important;
}

body .tb-user-fidelity-wrap .tb-level-step strong {
  color: var(--tb-elite-black) !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  margin-top: 8px !important;
}

body .tb-user-fidelity-wrap .tb-level-step.is-current strong {
  color: var(--tb-elite-gold-dark) !important;
}

body .tb-user-fidelity-wrap .tb-level-step small {
  color: var(--tb-elite-muted) !important;
  font-size: 16px !important;
}

body .tb-user-fidelity-wrap .tb-level-message {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 42px !important;
  font-size: 20px !important;
  color: #1d1d1d !important;
}

body .tb-user-fidelity-wrap .tb-level-message span {
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--tb-elite-gold) !important;
  color: #fff !important;
}

body .tb-user-fidelity-wrap .tb-elite-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body .tb-user-fidelity-wrap .tb-elite-tabs a,
body .tb-user-fidelity-wrap .tb-elite-tabs button {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 110px !important;
  width: 100% !important;
  border-radius: 0 !important;
  color: var(--tb-elite-black) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  position: relative !important;
  cursor: pointer !important;
}

body .tb-user-fidelity-wrap .tb-elite-tabs span {
  color: var(--tb-elite-gold) !important;
  font-size: 32px !important;
  line-height: 1 !important;
}

body .tb-user-fidelity-wrap .tb-elite-tabs .is-active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 3px !important;
  background: var(--tb-elite-gold) !important;
}

body .tb-user-fidelity-wrap .tb-rewards-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px 8px 0 !important;
  margin-bottom: 36px !important;
}

body .tb-user-fidelity-wrap .tb-rewards-heading {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 26px !important;
}

body .tb-user-fidelity-wrap .tb-rewards-section h3 {
  margin: 0 0 10px !important;
  color: #000 !important;
  font-size: 36px !important;
  letter-spacing: -.04em !important;
}

body .tb-user-fidelity-wrap .tb-rewards-heading p {
  color: var(--tb-elite-muted) !important;
  font-size: 18px !important;
  max-width: 620px !important;
}

body .tb-user-fidelity-wrap .tb-view-all-rewards {
  color: var(--tb-elite-gold-dark) !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  white-space: nowrap !important;
}

body .tb-user-fidelity-wrap .tb-rewards-grid {
  display: flex !important;
  gap: 28px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  padding: 0 8px 18px !important;
  grid-template-columns: none !important;
  scrollbar-width: thin !important;
}

body .tb-user-fidelity-wrap .tb-reward-card {
  flex: 0 0 278px !important;
  scroll-snap-align: start !important;
  min-height: 360px !important;
  padding: 0 0 20px !important;
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 34px rgba(17,24,39,.10) !important;
  overflow: hidden !important;
  text-align: left !important;
  position: relative !important;
}

body .tb-user-fidelity-wrap .tb-reward-card::before {
  content: "DISPONIBILE" !important;
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 3 !important;
  padding: 7px 10px !important;
  border-radius: 7px !important;
  background: var(--tb-elite-gold) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
}

body .tb-user-fidelity-wrap .tb-reward-card.is-locked::before {
  content: "NON DISPONIBILE" !important;
  background: #9a9a9a !important;
}

body .tb-user-fidelity-wrap .tb-reward-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(17,24,39,.14) !important;
}

body .tb-user-fidelity-wrap .tb-reward-card.is-locked {
  opacity: .86 !important;
}

body .tb-user-fidelity-wrap .tb-reward-image-wrap {
  width: 100% !important;
  height: 170px !important;
  min-height: 170px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f5f5f5 !important;
  margin: 0 0 20px !important;
  overflow: hidden !important;
}

body .tb-user-fidelity-wrap .tb-reward-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body .tb-user-fidelity-wrap .tb-reward-icon {
  width: 100% !important;
  height: 170px !important;
  border-radius: 0 !important;
  margin: 0 0 20px !important;
  background: linear-gradient(135deg, #f7f0e3, #fff) !important;
  color: var(--tb-elite-gold) !important;
}

body .tb-user-fidelity-wrap .tb-reward-title {
  padding: 0 24px !important;
  color: var(--tb-elite-black) !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  margin-bottom: 10px !important;
}

body .tb-user-fidelity-wrap .tb-reward-subtitle {
  padding: 0 24px !important;
  color: var(--tb-elite-muted) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  min-height: 46px !important;
}

body .tb-user-fidelity-wrap .tb-reward-points {
  margin: auto 24px 0 !important;
  background: linear-gradient(135deg, #c5942f, #a87516) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  font-size: 15px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 16px rgba(185,138,43,.22) !important;
}

body .tb-user-fidelity-wrap .tb-reward-card.is-locked .tb-reward-points {
  background: #8f8f8f !important;
  box-shadow: none !important;
}

body .tb-user-fidelity-wrap .tb-reward-lock {
  padding: 0 24px !important;
  color: #8f8f8f !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-banner {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 26px !important;
  padding: 34px 40px !important;
  border-radius: 18px !important;
  background: radial-gradient(circle at 0% 0%, #2f2f2f 0%, #111 48%, #050505 100%) !important;
  color: #fff !important;
  margin: 18px 0 8px !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 999px !important;
  border: 2px solid var(--tb-elite-gold) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--tb-elite-gold) !important;
  font-size: 34px !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-banner strong,
body .tb-user-fidelity-wrap .tb-earn-more-banner span {
  display: block !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-banner strong {
  color: #fff !important;
  font-size: 20px !important;
  margin-bottom: 8px !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-banner div span {
  color: rgba(255,255,255,.82) !important;
  font-size: 17px !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-banner a {
  color: #d5ad59 !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  body .tb-user-fidelity-wrap {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto 40px !important;
    padding: 14px 8px 22px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-profile-card,
  body .tb-user-fidelity-wrap .tb-elite-summary-card,
  body .tb-user-fidelity-wrap .tb-elite-tabs {
    border-radius: 16px !important;
    padding: 20px 14px !important;
    margin-bottom: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-card-kicker {
    font-size: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-card-kicker::before {
    width: 34px !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-profile-main {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-avatar {
    width: 70px !important;
    height: 70px !important;
    font-size: 24px !important;
  }

  body .tb-user-fidelity-wrap .tb-staff-customer-info h2 {
    font-size: 25px !important;
    margin-bottom: 4px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-email {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-pill {
    padding: 7px 11px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  body .tb-user-fidelity-wrap .tb-card-access-btn {
    grid-column: 1 / -1 !important;
    height: 54px !important;
    min-height: 54px !important;
    margin-top: 12px !important;
    grid-template-columns: 32px minmax(0,1fr) 16px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-card-access-icon {
    font-size: 23px !important;
  }

  body .tb-user-fidelity-wrap .tb-card-access-arrow {
    font-size: 30px !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-actions-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-link-btn {
    min-height: 48px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    padding: 0 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-points-grid {
    grid-template-columns: 1fr 1fr !important;
    margin-top: 16px !important;
    gap: 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-user-stat-box,
  body .tb-user-fidelity-wrap .tb-user-stat-box:first-child {
    border: 1px solid rgba(18,18,18,.10) !important;
    border-radius: 14px !important;
    padding: 14px 12px !important;
    background: #fff !important;
  }

  body .tb-user-fidelity-wrap .tb-current-level-stat {
    grid-column: 1 / -1 !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
  }

  body .tb-user-fidelity-wrap .tb-current-level-stat::before {
    width: 52px !important;
    height: 52px !important;
    font-size: 30px !important;
  }

  body .tb-user-fidelity-wrap .tb-label {
    font-size: 11px !important;
    gap: 7px !important;
  }

  body .tb-user-fidelity-wrap .tb-big-number {
    font-size: 28px !important;
    margin-top: 10px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-name {
    font-size: 30px !important;
  }

  body .tb-user-fidelity-wrap .tb-stat-subtitle {
    font-size: 13px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-journey {
    margin: 28px 8px 0 !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-line,
  body .tb-user-fidelity-wrap .tb-level-steps {
    min-width: 620px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-step strong {
    font-size: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-step small {
    font-size: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-level-message {
    justify-content: flex-start !important;
    margin: 20px 4px 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body .tb-user-fidelity-wrap .tb-level-message span {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-tabs {
    grid-template-columns: repeat(4, minmax(98px, 1fr)) !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-tabs a,
  body .tb-user-fidelity-wrap .tb-elite-tabs button {
    min-height: 76px !important;
    font-size: 11px !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-tabs span {
    font-size: 24px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section {
    padding: 8px 0 0 !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading {
    align-items: flex-start !important;
    padding: 0 8px !important;
    margin-bottom: 16px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-section h3 {
    font-size: 28px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-heading p {
    font-size: 15px !important;
  }

  body .tb-user-fidelity-wrap .tb-view-all-rewards {
    font-size: 14px !important;
    margin-top: 6px !important;
  }

  body .tb-user-fidelity-wrap .tb-rewards-grid {
    gap: 14px !important;
    padding: 0 8px 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-card {
    flex-basis: 270px !important;
    min-height: 340px !important;
  }

  body .tb-user-fidelity-wrap .tb-reward-image-wrap,
  body .tb-user-fidelity-wrap .tb-reward-icon {
    height: 150px !important;
    min-height: 150px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-banner {
    grid-template-columns: 48px minmax(0,1fr) !important;
    gap: 16px !important;
    margin: 8px 8px 0 !important;
    padding: 22px 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-banner a {
    grid-column: 2 !important;
    font-size: 15px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 26px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-banner strong {
    font-size: 17px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-banner div span {
    font-size: 14px !important;
  }
}

/* ==========================================================
   Fidelity tabs functional update v0.2.7
   - three real tabs: rewards, history, earning rules
   - remove card tab: QR remains in the top profile CTA
   ========================================================== */

body .tb-user-fidelity-wrap .tb-elite-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body .tb-user-fidelity-wrap .tb-elite-tabs .tb-fidelity-tab-btn {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 110px !important;
  width: 100% !important;
  border-radius: 0 !important;
  color: var(--tb-elite-black) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  position: relative !important;
  cursor: pointer !important;
  line-height: 1.15 !important;
}

body .tb-user-fidelity-wrap .tb-elite-tabs .tb-fidelity-tab-btn span {
  color: var(--tb-elite-gold) !important;
  font-size: 32px !important;
  line-height: 1 !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-tab-panel {
  display: none !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-tab-panel.is-active {
  display: block !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-section,
body .tb-user-fidelity-wrap .tb-fidelity-earn-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px 8px 0 !important;
  margin-bottom: 36px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-section h3,
body .tb-user-fidelity-wrap .tb-fidelity-earn-section h3 {
  color: var(--tb-elite-black) !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  margin: 0 0 12px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-section p,
body .tb-user-fidelity-wrap .tb-fidelity-earn-section p {
  color: var(--tb-elite-muted) !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-empty-state {
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.10) !important;
  border-radius: 18px !important;
  padding: 26px !important;
  color: var(--tb-elite-muted) !important;
  box-shadow: 0 14px 34px rgba(17,24,39,.05) !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-list {
  display: grid !important;
  gap: 14px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-row {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.10) !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  box-shadow: 0 12px 28px rgba(17,24,39,.045) !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #b98a2b 0%, #d8b15b 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-row.is-negative .tb-fidelity-history-icon {
  background: #7c7c7c !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-row strong {
  display: block !important;
  color: var(--tb-elite-black) !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  margin-bottom: 5px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-row span {
  display: block !important;
  color: var(--tb-elite-muted) !important;
  font-size: 14px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-points {
  color: var(--tb-elite-gold-dark) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-history-row.is-negative .tb-fidelity-history-points {
  color: #555 !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-card {
  background: #fff !important;
  border: 1px solid rgba(18,18,18,.10) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 14px 34px rgba(17,24,39,.05) !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(90deg, #fff3d9 0%, #f8ead0 100%) !important;
  color: var(--tb-elite-gold-dark) !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-card h4 {
  color: var(--tb-elite-black) !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em !important;
  margin: 0 0 10px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-card p {
  color: var(--tb-elite-muted) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  margin: 0 0 14px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-card ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid !important;
  gap: 8px !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-card li {
  color: #3f3f46 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  padding-left: 18px !important;
  position: relative !important;
}

body .tb-user-fidelity-wrap .tb-fidelity-earn-card li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: .55em !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: var(--tb-elite-gold) !important;
}

body .tb-user-fidelity-wrap .tb-earn-more-link {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #d5ad59 !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  body .tb-user-fidelity-wrap .tb-fidelity-earn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  body .tb-user-fidelity-wrap .tb-elite-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-tabs .tb-fidelity-tab-btn {
    min-height: 74px !important;
    font-size: 10px !important;
    gap: 6px !important;
    padding: 8px 4px !important;
    line-height: 1.05 !important;
  }

  body .tb-user-fidelity-wrap .tb-elite-tabs .tb-fidelity-tab-btn span {
    font-size: 22px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-history-section,
  body .tb-user-fidelity-wrap .tb-fidelity-earn-section {
    padding: 20px 8px 0 !important;
    margin-bottom: 24px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-history-section h3,
  body .tb-user-fidelity-wrap .tb-fidelity-earn-section h3 {
    font-size: 28px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-history-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-history-icon {
    width: 38px !important;
    height: 38px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-history-points {
    grid-column: 2 !important;
    font-size: 18px !important;
    margin-top: 4px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-earn-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body .tb-user-fidelity-wrap .tb-fidelity-earn-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-banner {
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) !important;
    gap: 12px !important;
  }

  body .tb-user-fidelity-wrap .tb-earn-more-link {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 8px !important;
    font-size: 15px !important;
  }
}

/* ==========================================================
   Staff Fidelity Dashboard - Techno Bridge premium purple style
   Scoped to the staff customer dashboard only
   ========================================================== */

.tb-staff-fidelity-pro-wrap {
  max-width: 1360px !important;
  margin: 28px auto 70px !important;
  padding: 28px 32px !important;
  background: #ffffff !important;
  border: 1px solid #edf0f6 !important;
  border-radius: 0 !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
  font-family: inherit;
}

.tb-staff-fidelity-pro-wrap,
.tb-staff-fidelity-pro-wrap * {
  box-sizing: border-box;
}

.tb-staff-fidelity-pro-wrap .tb-dashboard-back-wrap {
  margin: 0 0 18px !important;
}

.tb-staff-fidelity-pro-wrap .tb-dashboard-back-btn {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #f5f0ff;
  color: #6d3ff2;
  border: 1px solid #eadfff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.tb-staff-fidelity-pro-wrap .tb-staff-dashboard-top {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr !important;
  gap: 22px !important;
  margin-bottom: 20px !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-card,
.tb-staff-fidelity-pro-wrap .tb-staff-summary-card,
.tb-staff-fidelity-pro-wrap .tb-rewards-section,
.tb-staff-fidelity-pro-wrap .tb-points-form-section {
  background: #fff !important;
  color: #161827 !important;
  border: 1px solid #e9e4f7 !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(28, 22, 64, 0.09) !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-card {
  min-height: 180px;
  padding: 28px 30px !important;
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
  background:
    radial-gradient(circle at 95% 0%, rgba(132, 75, 255, .10), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #fbf8ff 100%) !important;
  overflow: hidden;
  position: relative;
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(133, 83, 255, .12);
  border-radius: 50%;
  box-shadow: -34px 32px 0 rgba(133, 83, 255, .035), -70px 68px 0 rgba(133, 83, 255, .025);
  pointer-events: none;
}

.tb-staff-fidelity-pro-wrap .tb-staff-avatar {
  width: 82px !important;
  height: 82px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #f3eaff, #ffffff) !important;
  border: 1px solid #d9c7ff !important;
  box-shadow: 0 12px 26px rgba(120, 73, 255, .16), inset 0 0 0 8px rgba(126, 84, 255, .08) !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative;
}

.tb-staff-fidelity-pro-wrap .tb-staff-avatar::before {
  content: "♙";
  color: #784bff;
  font-size: 44px;
  line-height: 1;
  transform: translateY(-1px);
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-info {
  position: relative;
  z-index: 1;
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-info h2 {
  color: #111827 !important;
  font-size: 34px !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  margin: 0 0 10px !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-info div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280 !important;
  opacity: 1 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin: 7px 0 !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-customer-info div:nth-of-type(2)::before { content: "▣"; color: #7c4dff; font-size: 13px; }
.tb-staff-fidelity-pro-wrap .tb-staff-customer-info div:nth-of-type(3)::before { content: "♛"; color: #7c4dff; font-size: 13px; }
.tb-staff-fidelity-pro-wrap .tb-staff-customer-info div:nth-of-type(4)::before { content: "▤"; color: #7c4dff; font-size: 13px; }

.tb-staff-fidelity-pro-wrap .tb-staff-customer-info strong,
.tb-staff-fidelity-pro-wrap .tb-staff-customer-info div strong {
  color: #7046f5 !important;
  font-weight: 900 !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-summary-card {
  padding: 28px 28px 24px !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-summary-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  padding-bottom: 24px !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid #ece7f8 !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div {
  padding: 0 18px 0 54px !important;
  position: relative;
}

.tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div:first-child::before,
.tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div:nth-child(2)::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7046f5;
  background: #f0e8ff;
  border: 1px solid #e1d2ff;
  font-size: 20px;
  font-weight: 900;
}

.tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div:first-child::before { content: "☆"; }
.tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div:nth-child(2)::before { content: "◇"; }

.tb-staff-fidelity-pro-wrap .tb-label {
  color: #4e4b79 !important;
  opacity: 1 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  margin-bottom: 6px !important;
}

.tb-staff-fidelity-pro-wrap .tb-big-number {
  color: #7046f5 !important;
  font-size: 34px !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  font-weight: 900 !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-level-box {
  display: grid !important;
  grid-template-columns: 180px 1fr !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-level-box::before {
  content: "♛";
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1ba43, #d9961e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(217, 150, 30, .24);
  grid-row: 1 / span 3;
}

.tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-label,
.tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-level-name {
  grid-column: 1;
  margin-left: 66px;
}

.tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-level-name {
  color: #342562 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-progress-text,
.tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-progress-bar {
  grid-column: 2;
}

.tb-staff-fidelity-pro-wrap .tb-progress-text {
  color: #5b5676 !important;
  font-size: 13px !important;
  margin: 0 0 8px !important;
}

.tb-staff-fidelity-pro-wrap .tb-progress-bar {
  height: 11px !important;
  background: #ebe8f5 !important;
  border-radius: 999px !important;
}

.tb-staff-fidelity-pro-wrap .tb-progress-fill {
  background: linear-gradient(90deg, #8a52ff, #6b32eb) !important;
}

.tb-staff-fidelity-pro-wrap .tb-staff-success,
.tb-staff-fidelity-pro-wrap .tb-staff-error {
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(28,22,64,.08) !important;
}

.tb-staff-fidelity-pro-wrap .tb-rewards-section,
.tb-staff-fidelity-pro-wrap .tb-points-form-section {
  padding: 24px 28px !important;
  margin-bottom: 20px !important;
}

.tb-staff-fidelity-pro-wrap .tb-rewards-section h3,
.tb-staff-fidelity-pro-wrap .tb-points-form-section h3 {
  color: #15162a !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 6px !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-staff-fidelity-pro-wrap .tb-rewards-section h3::before {
  content: "▣";
  color: #7b4dff;
  font-size: 24px;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-section h3::before {
  content: "▤";
  color: #7b4dff;
  font-size: 24px;
}

.tb-staff-fidelity-pro-wrap .tb-rewards-section p,
.tb-staff-fidelity-pro-wrap .tb-points-form-section > p {
  color: #5f6383 !important;
  font-size: 14px !important;
  margin: 0 0 18px !important;
}

.tb-staff-fidelity-pro-wrap .tb-rewards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-card {
  min-height: 132px !important;
  display: grid !important;
  grid-template-columns: 205px minmax(0, 1fr) 24px !important;
  grid-template-rows: auto auto auto !important;
  align-items: center !important;
  gap: 0 20px !important;
  text-align: left !important;
  background: #fff !important;
  border: 1px solid #e7e1f3 !important;
  border-radius: 12px !important;
  padding: 0 18px 0 0 !important;
  box-shadow: 0 10px 22px rgba(28,22,64,.05) !important;
  overflow: hidden !important;
  position: relative !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-card:hover {
  transform: translateY(-2px) !important;
  border-color: #cdbdff !important;
  box-shadow: 0 16px 28px rgba(112,70,245,.12) !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-card::after {
  content: "›";
  grid-column: 3;
  grid-row: 1 / span 3;
  justify-self: center;
  color: #4e4b79;
  font-size: 32px;
  line-height: 1;
}

.tb-staff-fidelity-pro-wrap .tb-reward-image-wrap,
.tb-staff-fidelity-pro-wrap .tb-reward-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100% !important;
  height: 132px !important;
  min-height: 132px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #f5f2fb !important;
  border: 0 !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-image {
  width: 100% !important;
  height: 132px !important;
  object-fit: cover !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #7b4dff !important;
  font-size: 42px !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: #171827 !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  margin: 20px 0 6px !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-subtitle {
  grid-column: 2;
  grid-row: 2;
  color: #5f6383 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  min-height: 0 !important;
  margin: 0 0 10px !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-points {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  background: #fff !important;
  color: #6f42f5 !important;
  border: 1px solid #b99cff !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  margin: 0 0 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.tb-staff-fidelity-pro-wrap .tb-reward-points::before {
  content: "☆ ";
}

.tb-staff-fidelity-pro-wrap .tb-reward-lock {
  grid-column: 2;
  color: #9b6b00 !important;
  font-size: 12px !important;
  margin: -4px 0 10px !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-section {
  position: relative;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-section::after {
  content: "ⓘ  Come funziona";
  position: absolute;
  right: 28px;
  top: 28px;
  color: #7b4dff;
  font-size: 13px;
  font-weight: 800;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-grid {
  display: grid !important;
  grid-template-columns: 1.05fr 1.15fr 1.15fr 1fr !important;
  gap: 16px !important;
  margin-top: 20px !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-grid > div,
.tb-staff-fidelity-pro-wrap .tb-points-form-note {
  position: relative;
}

.tb-staff-fidelity-pro-wrap label {
  color: #36355f !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
  display: block !important;
}

.tb-staff-fidelity-pro-wrap input,
.tb-staff-fidelity-pro-wrap select,
.tb-staff-fidelity-pro-wrap textarea {
  min-height: 44px !important;
  border-radius: 9px !important;
  border: 1px solid #ded8ec !important;
  background: #fff !important;
  color: #262742 !important;
  font-size: 14px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

.tb-staff-fidelity-pro-wrap input:focus,
.tb-staff-fidelity-pro-wrap select:focus,
.tb-staff-fidelity-pro-wrap textarea:focus {
  outline: none !important;
  border-color: #9c7cff !important;
  box-shadow: 0 0 0 4px rgba(124,77,255,.10) !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-note {
  margin-top: 16px !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-note input {
  min-height: 58px !important;
}

.tb-staff-fidelity-pro-wrap .tb-pos-selected-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px !important;
  padding: 13px 16px !important;
  border-radius: 10px !important;
  background: #fbf8ff !important;
  color: #3a2b72 !important;
  border: 1px solid #d8c8ff !important;
}

.tb-staff-fidelity-pro-wrap .tb-pos-selected-receipt::after {
  content: "✓ Valido";
  background: #dff8e8;
  color: #2b7a4b;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tb-staff-fidelity-pro-wrap .tb-secondary-btn {
  width: 100% !important;
  min-height: 36px !important;
  color: #7b4dff !important;
  background: #fff !important;
  border: 1px solid #d8c8ff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-actions {
  margin-top: 14px !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-actions button,
.tb-staff-fidelity-pro-wrap #tb-modal-confirm {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #8a52ff, #652ee8) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(112,70,245,.22) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.tb-staff-fidelity-pro-wrap .tb-points-form-actions::after {
  content: "▧  L'operazione sarà registrata nello storico punti del cliente.";
  display: block;
  text-align: center;
  color: #8a8aa2;
  font-size: 12px;
  margin-top: 10px;
}

.tb-staff-fidelity-pro-wrap .tb-reward-modal-content {
  border-radius: 18px !important;
  border: 1px solid #e7e1f3 !important;
  box-shadow: 0 24px 60px rgba(28,22,64,.25) !important;
}

.tb-staff-fidelity-pro-wrap .tb-pos-receipt-row {
  border-color: #e7e1f3 !important;
  background: #fff !important;
  color: #171827 !important;
}

.tb-staff-fidelity-pro-wrap .tb-pos-receipt-row:hover {
  background: #fbf8ff !important;
  border-color: #9c7cff !important;
}

@media (max-width: 1100px) {
  .tb-staff-fidelity-pro-wrap {
    padding: 18px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-dashboard-top,
  .tb-staff-fidelity-pro-wrap .tb-rewards-grid,
  .tb-staff-fidelity-pro-wrap .tb-points-form-grid {
    grid-template-columns: 1fr !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-level-box {
    grid-template-columns: 1fr !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-progress-text,
  .tb-staff-fidelity-pro-wrap .tb-staff-level-box .tb-progress-bar {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 700px) {
  .tb-staff-fidelity-pro-wrap {
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-dashboard-back-wrap {
    margin-bottom: 12px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-customer-card {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px !important;
    min-height: 0;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-avatar {
    width: 58px !important;
    height: 58px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-avatar::before {
    font-size: 30px;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-customer-info h2 {
    font-size: 24px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-customer-info div {
    font-size: 13px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-summary-card,
  .tb-staff-fidelity-pro-wrap .tb-rewards-section,
  .tb-staff-fidelity-pro-wrap .tb-points-form-section {
    padding: 18px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-summary-row {
    grid-template-columns: 1fr 1fr !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div {
    padding: 0 8px 0 40px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div:first-child::before,
  .tb-staff-fidelity-pro-wrap .tb-staff-summary-row > div:nth-child(2)::before {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .tb-staff-fidelity-pro-wrap .tb-big-number {
    font-size: 26px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-reward-card {
    grid-template-columns: 110px minmax(0, 1fr) 18px !important;
    min-height: 112px !important;
    gap: 0 12px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-reward-image-wrap,
  .tb-staff-fidelity-pro-wrap .tb-reward-image,
  .tb-staff-fidelity-pro-wrap .tb-reward-icon {
    height: 112px !important;
    min-height: 112px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-reward-title {
    font-size: 15px !important;
    margin-top: 12px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-reward-subtitle {
    font-size: 12px !important;
  }

  .tb-staff-fidelity-pro-wrap .tb-points-form-section::after {
    position: static;
    display: block;
    margin: 8px 0 0 36px;
  }
}

/* ==========================================================
   Staff customer picker / QR scanner premium purple redesign
   ========================================================== */

.tb-staff-picker-pro-wrap {
  max-width: 1360px;
  margin: 34px auto;
  padding: 38px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid rgba(124, 58, 237, 0.10);
  box-shadow: 0 30px 80px rgba(20, 18, 55, 0.12);
  color: #11133b;
}

.tb-staff-picker-pro-wrap * {
  box-sizing: border-box;
}

.tb-staff-picker-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 30px;
}

.tb-staff-picker-hero-icon,
.tb-staff-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d3df2;
  background: linear-gradient(135deg, #fbfaff 0%, #eee7ff 100%);
  border: 1px solid rgba(124, 58, 237, 0.16);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.12);
}

.tb-staff-picker-hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  font-size: 54px;
  line-height: 1;
}

.tb-staff-picker-pro-wrap .tb-staff-picker-hero h2 {
  color: #101338;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin: 2px 0 24px;
  font-weight: 900;
}

.tb-staff-active-restaurant-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 14px;
  background: rgba(236, 253, 245, 0.72);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: #77759d;
  font-weight: 800;
}

.tb-staff-active-restaurant-pill strong {
  color: #6d3df2;
}

.tb-staff-active-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #48cfaa;
  box-shadow: 0 0 0 8px rgba(72, 207, 170, 0.12);
}

.tb-staff-picker-pro-wrap .tb-qr-scanner-pro-box,
.tb-staff-picker-pro-wrap .tb-staff-search-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 46px rgba(16, 19, 56, 0.08);
}

.tb-staff-section-heading {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.tb-staff-section-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  font-size: 34px;
  font-weight: 900;
}

.tb-staff-picker-pro-wrap .tb-staff-section-heading h3 {
  color: #101338;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  font-weight: 900;
}

.tb-staff-picker-pro-wrap .tb-staff-section-heading p {
  color: #77759d;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.tb-staff-section-tip {
  color: #77759d;
  max-width: 245px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.tb-qr-scanner-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 420px;
  gap: 34px;
  align-items: stretch;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(124, 58, 237, 0.10);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.tb-qr-reader-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 18, 36, 0.98), rgba(30, 31, 49, 0.98));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 18px 42px rgba(16, 19, 56, 0.18);
}

.tb-qr-reader-frame::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px dashed rgba(139, 92, 246, 0.72);
  border-radius: 16px;
  pointer-events: none;
  z-index: 3;
}

.tb-qr-reader-frame::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 16px;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(#8b5cf6, #8b5cf6) left top / 34px 4px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) left top / 4px 34px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) right top / 34px 4px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) right top / 4px 34px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) left bottom / 34px 4px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) left bottom / 4px 34px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) right bottom / 34px 4px no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) right bottom / 4px 34px no-repeat;
}

.tb-staff-picker-pro-wrap #tb-qr-reader {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-height: 0;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  position: relative;
  z-index: 1;
}

.tb-staff-picker-pro-wrap #tb-qr-reader video,
.tb-staff-picker-pro-wrap #tb-qr-reader canvas,
.tb-staff-picker-pro-wrap #tb-qr-reader img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.tb-staff-picker-pro-wrap #tb-qr-reader__scan_region,
.tb-staff-picker-pro-wrap #tb-qr-reader__dashboard_section_csr,
.tb-staff-picker-pro-wrap #tb-qr-reader__dashboard_section_swaplink,
.tb-staff-picker-pro-wrap #tb-qr-reader__dashboard_section_fsr,
.tb-staff-picker-pro-wrap #tb-qr-reader__header_message {
  border: 0 !important;
  color: #ffffff !important;
}

.tb-qr-control-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 26px 28px;
}

.tb-qr-status-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tb-qr-status-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.13);
  margin-top: 8px;
}

.tb-qr-status-row strong {
  display: block;
  color: #101338;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.tb-staff-picker-pro-wrap #tb-qr-status {
  margin: 0;
  color: #77759d;
  font-size: 16px;
  font-weight: 700;
}

.tb-qr-control-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.04));
  margin: 36px 0 28px;
}

.tb-staff-picker-pro-wrap #tb-start-qr,
.tb-staff-picker-pro-wrap #tb-stop-qr,
.tb-staff-picker-pro-wrap #tb-open-customer-btn {
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #5b21e8 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(91, 33, 232, 0.25);
}

.tb-staff-picker-pro-wrap #tb-stop-qr {
  background: linear-gradient(135deg, #11133b 0%, #2d2f5f 100%);
}

.tb-staff-picker-pro-wrap #tb-open-customer-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.tb-qr-secure-note {
  margin-top: 28px;
  color: #77759d;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.tb-staff-picker-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 28px 0;
}

.tb-staff-picker-separator::before,
.tb-staff-picker-separator::after {
  content: "";
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.36));
}

.tb-staff-picker-separator::after {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.36), transparent);
}

.tb-staff-search-heading {
  grid-template-columns: 66px minmax(0, 1fr);
}

.tb-staff-search-field-wrap label {
  display: block;
  color: #101338;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.tb-staff-search-input-shell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.04);
}

.tb-staff-search-input-shell span {
  color: #8b83ad;
  text-align: center;
  font-size: 28px;
}

.tb-staff-picker-pro-wrap #tb-customer-search {
  width: 100%;
  border: 0;
  min-height: 58px;
  border-radius: 0;
  background: transparent;
  padding: 0 18px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: #101338;
  box-shadow: none;
}

.tb-staff-picker-pro-wrap #tb-customer-search:focus {
  outline: none;
}

.tb-staff-picker-pro-wrap #tb-customer-results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.tb-staff-picker-pro-wrap .tb-customer-result,
.tb-staff-picker-pro-wrap .tb-customer-result-empty,
.tb-staff-picker-pro-wrap .tb-selected-customer-card {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: #ffffff;
  color: #101338;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(16, 19, 56, 0.04);
}

.tb-staff-picker-pro-wrap .tb-customer-result {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.tb-staff-picker-pro-wrap .tb-customer-result:hover {
  border-color: rgba(139, 92, 246, 0.42);
  background: #fbfaff;
}

.tb-staff-picker-pro-wrap .tb-customer-result span {
  color: #77759d;
}

.tb-staff-picker-pro-wrap #tb-selected-customer {
  margin: 16px 0;
}

.tb-staff-picker-pro-wrap .tb-selected-customer-card {
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  font-weight: 700;
}

.tb-staff-picker-pro-wrap #tb-open-customer-btn {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .tb-staff-picker-pro-wrap {
    padding: 26px;
  }

  .tb-qr-scanner-layout {
    grid-template-columns: 1fr;
  }

  .tb-qr-reader-frame {
    max-width: 520px;
    margin: 0 auto;
  }

  .tb-qr-control-panel {
    padding: 18px 8px 6px;
  }
}

@media (max-width: 700px) {
  .tb-staff-picker-pro-wrap {
    margin: 10px auto;
    padding: 16px;
    border-radius: 20px;
  }

  .tb-staff-picker-hero {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
  }

  .tb-staff-picker-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 34px;
  }

  .tb-staff-picker-pro-wrap .tb-staff-picker-hero h2 {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
  }

  .tb-staff-active-restaurant-pill {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .tb-staff-picker-pro-wrap .tb-qr-scanner-pro-box,
  .tb-staff-picker-pro-wrap .tb-staff-search-card {
    padding: 16px;
    border-radius: 20px;
  }

  .tb-staff-section-heading,
  .tb-staff-search-heading {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
  }

  .tb-staff-section-tip {
    grid-column: 1 / -1;
    max-width: none;
    font-size: 13px;
  }

  .tb-staff-section-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 26px;
  }

  .tb-staff-picker-pro-wrap .tb-staff-section-heading h3 {
    font-size: 22px;
  }

  .tb-staff-picker-pro-wrap .tb-staff-section-heading p {
    font-size: 14px;
  }

  .tb-qr-scanner-layout {
    padding: 10px;
    gap: 16px;
    border-radius: 18px;
  }

  .tb-qr-reader-frame {
    max-width: none;
  }

  .tb-qr-reader-frame::before,
  .tb-qr-reader-frame::after {
    inset: 20px;
  }

  .tb-qr-control-divider {
    margin: 20px 0 16px;
  }

  .tb-staff-picker-separator {
    margin: 20px 0;
  }
}

/* ==========================================================
   Premium login/register - Area Fidelity (black/gold)
   ========================================================== */
body .tb-fidelity-auth-premium-wrap {
  max-width: 1180px !important;
  margin: 36px auto 76px !important;
  padding: 0 20px !important;
  font-family: inherit !important;
}

body .tb-fidelity-auth-premium-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 34px;
  background:
    radial-gradient(circle at 88% 8%, rgba(190, 142, 46, .10) 0, transparent 34%),
    radial-gradient(circle at 16% 20%, rgba(190, 142, 46, .08) 0, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  border: 1px solid rgba(20, 27, 36, .08);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .10);
}

body .tb-fidelity-auth-premium-shell::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(190, 142, 46, .18);
  border-radius: 52% 48% 45% 55%;
  transform: rotate(18deg);
  pointer-events: none;
}

body .tb-fidelity-auth-premium-shell::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -84px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(190, 142, 46, .12);
  border-radius: 46% 54% 60% 40%;
  transform: rotate(-12deg);
  pointer-events: none;
}

body .tb-fidelity-auth-premium-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

body .tb-fidelity-auth-premium-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #141b24;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body .tb-fidelity-auth-premium-crown {
  color: #b98216;
  font-size: 25px;
  line-height: 1;
}

body .tb-fidelity-auth-premium-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(190, 142, 46, .10);
  color: #a87413;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body .tb-fidelity-auth-premium-wrap .tb-staff-error,
body .tb-fidelity-auth-premium-wrap .tb-staff-success {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 20px !important;
  border-radius: 18px !important;
}

body .tb-fidelity-auth-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 42px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(20, 27, 36, .10);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}

body .tb-fidelity-auth-card-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(20, 27, 36, .10);
}

body .tb-fidelity-auth-card-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  flex: 0 0 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4eee3 0%, #fffaf1 100%);
  color: #b98216;
  font-size: 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 30px rgba(190,142,46,.10);
}

body .tb-fidelity-auth-card h2 {
  color: #111822 !important;
  font-size: 34px !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em !important;
  margin: 0 0 8px !important;
}

body .tb-fidelity-auth-card-heading p {
  color: #667085 !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body .tb-fidelity-auth-card form p,
body .tb-fidelity-auth-card .login p {
  margin: 0 0 18px !important;
}

body .tb-fidelity-auth-card label {
  display: block !important;
  margin-bottom: 10px !important;
  color: #141b24 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

body .tb-fidelity-auth-card input[type="text"],
body .tb-fidelity-auth-card input[type="email"],
body .tb-fidelity-auth-card input[type="tel"],
body .tb-fidelity-auth-card input[type="password"] {
  width: 100% !important;
  height: 58px !important;
  border: 1px solid rgba(20, 27, 36, .14) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #111822 !important;
  padding: 0 18px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8) !important;
}

body .tb-fidelity-auth-card input::placeholder {
  color: #a1a1aa !important;
}

body .tb-fidelity-auth-card input:focus {
  outline: none !important;
  border-color: #bd8a25 !important;
  box-shadow: 0 0 0 4px rgba(190,142,46,.12) !important;
  background: #fff !important;
}

body .tb-fidelity-auth-card .login-remember {
  display: flex !important;
  align-items: center !important;
  margin: 2px 0 18px !important;
}

body .tb-fidelity-auth-card .login-remember label {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 !important;
  cursor: pointer;
}

body .tb-fidelity-auth-card input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: #bd8a25;
}

body .tb-fidelity-auth-card input[type="submit"],
body .tb-fidelity-auth-card button[type="submit"] {
  width: 100% !important;
  min-height: 60px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #101820 0%, #182331 100%) !important;
  color: #d8a33a !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  box-shadow: 0 14px 26px rgba(16,24,32,.20) !important;
}

body .tb-fidelity-auth-card input[type="submit"]:hover,
body .tb-fidelity-auth-card button[type="submit"]:hover {
  transform: translateY(-1px);
  opacity: 1 !important;
}

body .tb-fidelity-auth-helper-row {
  text-align: center;
  margin: 24px 0 0;
}

body .tb-fidelity-auth-small-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b98216 !important;
  font-weight: 800;
  text-decoration: none !important;
}

body .tb-fidelity-auth-small-link::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
}

body .tb-fidelity-auth-switch-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(190,142,46,.08);
  color: #46515f;
  font-size: 16px;
}

body .tb-fidelity-auth-switch-panel a {
  color: #a87413 !important;
  font-weight: 900;
  text-decoration: none !important;
}

body .tb-fidelity-auth-register-form .tb-fidelity-form-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body .tb-fidelity-auth-trust-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 24px;
}

body .tb-fidelity-auth-trust-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
  color: #2f3844;
  line-height: 1.5;
}

body .tb-fidelity-auth-trust-list span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7efe1;
  color: #b98216;
  font-weight: 900;
}

body .tb-fidelity-auth-secure-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: #1f2937;
  font-size: 15px;
}

body .tb-fidelity-auth-secure-note > span:first-child {
  color: #bd8a25;
  font-size: 22px;
}

body .tb-fidelity-auth-secure-sep {
  width: 1px;
  height: 20px;
  background: rgba(20, 27, 36, .25);
}

@media (max-width: 768px) {
  body .tb-fidelity-auth-premium-wrap {
    margin: 18px auto 46px !important;
    padding: 0 10px !important;
  }

  body .tb-fidelity-auth-premium-shell {
    border-radius: 22px;
    padding: 18px;
  }

  body .tb-fidelity-auth-premium-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  body .tb-fidelity-auth-premium-brand {
    font-size: 15px;
  }

  body .tb-fidelity-auth-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  body .tb-fidelity-auth-card-heading {
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  body .tb-fidelity-auth-card-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 27px;
  }

  body .tb-fidelity-auth-card h2 {
    font-size: 27px !important;
  }

  body .tb-fidelity-auth-card-heading p {
    font-size: 15px !important;
  }

  body .tb-fidelity-auth-register-form .tb-fidelity-form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body .tb-fidelity-auth-switch-panel {
    flex-direction: column;
    text-align: center;
  }

  body .tb-fidelity-auth-secure-note {
    gap: 10px;
    text-align: center;
  }

  body .tb-fidelity-auth-secure-sep {
    display: none;
  }
}

/* Fidelity 2 - attivazione cliente pending */
.tb-fidelity-activation{max-width:760px;margin:32px auto;padding:0 18px}.tb-fidelity-activation-card{background:#fff;border:1px solid #e7e2ef;border-radius:22px;padding:30px;box-shadow:0 18px 55px rgba(42,25,66,.10)}.tb-fidelity-activation-step{display:inline-flex;padding:7px 12px;border-radius:999px;background:#f1eafb;color:#5b2c83;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.tb-fidelity-activation h2{margin:14px 0 8px;font-size:30px;line-height:1.15}.tb-fidelity-activation p{line-height:1.6}.tb-fidelity-activation-form{margin-top:24px}.tb-fidelity-activation-check{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-top:1px solid #eee}.tb-fidelity-activation-check input{margin-top:5px;flex:0 0 auto}.tb-fidelity-activation-check a{text-decoration:underline}.tb-fidelity-activation-note{font-size:13px;color:#666}.tb-fidelity-activation-form button{width:100%;border:0;border-radius:12px;padding:15px 20px;font-weight:700;cursor:pointer}.tb-fidelity-activation-error{background:#fff;border:1px solid #d9d9d9;border-radius:18px;padding:26px}@media(max-width:600px){.tb-fidelity-activation-card{padding:22px}.tb-fidelity-activation h2{font-size:25px}}


/* Attivazione cliente: stile coerente con la Fidelity Card */
.tb-fidelity-activation{max-width:760px;margin:34px auto;padding:18px}.tb-fidelity-activation-card{position:relative;overflow:hidden;padding:32px;border-radius:26px;background:linear-gradient(145deg,#182848 0%,#223b73 72%,#2a4c91 100%);box-shadow:0 20px 50px rgba(18,37,82,.28);color:#fff}.tb-fidelity-activation-card:before{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-90px;top:-110px;background:rgba(255,208,90,.13)}.tb-fidelity-activation-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:-100px;bottom:-120px;background:rgba(112,224,141,.10)}.tb-fidelity-activation-card>*{position:relative;z-index:1}.tb-fidelity-activation-brand{display:flex;align-items:center;gap:16px;margin-bottom:16px}.tb-fidelity-activation-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#ffd05a,#ffb11f);color:#182848;font-size:28px;box-shadow:0 10px 24px rgba(255,177,31,.28)}.tb-fidelity-activation-step{display:block;margin-bottom:5px;color:#ffd05a;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.tb-fidelity-activation-card h2{margin:0;color:#fff;font-size:34px;line-height:1.15}.tb-fidelity-activation-intro{max-width:620px;margin:0 0 22px;color:rgba(255,255,255,.9);font-size:17px;line-height:1.65}.tb-fidelity-activation-form{display:grid;gap:14px}.tb-fidelity-activation-check{display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:flex-start;padding:16px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.08);cursor:pointer}.tb-fidelity-activation-check:hover{background:rgba(255,255,255,.11)}.tb-fidelity-activation-check input{width:20px;height:20px;margin:2px 0 0;accent-color:#ffd05a}.tb-fidelity-activation-check span{color:#fff;font-size:15px;line-height:1.55}.tb-fidelity-activation-check a{color:#ffd05a;text-decoration:underline;font-weight:700}.tb-fidelity-activation-note{margin:2px 0 4px;color:rgba(255,255,255,.72);font-size:13px;line-height:1.5}.tb-fidelity-activation-form button{width:100%;min-height:54px;border:0;border-radius:15px;background:linear-gradient(135deg,#ffd05a,#ffb11f);color:#182848;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 12px 24px rgba(255,177,31,.25);transition:transform .16s ease,box-shadow .16s ease}.tb-fidelity-activation-form button:hover{transform:translateY(-2px);box-shadow:0 16px 28px rgba(255,177,31,.34)}.tb-fidelity-activation .tb-staff-error{border:1px solid rgba(255,255,255,.16);background:rgba(180,35,50,.35);color:#fff}.tb-fidelity-activation-error{padding:28px;border-radius:22px;background:#fff1f2;color:#7e1f27;box-shadow:0 12px 28px rgba(0,0,0,.08)}@media(max-width:600px){.tb-fidelity-activation{margin:18px auto;padding:8px}.tb-fidelity-activation-card{padding:23px;border-radius:21px}.tb-fidelity-activation-brand{align-items:flex-start}.tb-fidelity-activation-icon{width:50px;height:50px;border-radius:15px}.tb-fidelity-activation-card h2{font-size:27px}.tb-fidelity-activation-intro{font-size:15px}.tb-fidelity-activation-check{padding:14px}}


/* Staff active/pending workflow v0.2.37 */
.tb-pending-fidelity-card{margin-top:24px}
#tb-send-pending-link{margin-top:16px}
#tb-pending-send-message{margin-top:14px}
.tb-modal-unavailable{align-items:center;justify-content:center;padding:12px 18px;border-radius:10px;background:#f1f2f5;color:#6a7080;font-weight:800}

/* 0.2.42 - refresh cliente staff */
.tb-staff-fidelity-pro-wrap .tb-dashboard-back-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tb-staff-fidelity-pro-wrap .tb-dashboard-refresh-btn,
.tb-staff-fidelity-pro-wrap .tb-refresh-customer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
  padding: 11px 16px;
  background: #fff;
  color: #6338dc;
  border: 1px solid #d9cdfb;
  box-shadow: 0 8px 20px rgba(75, 43, 150, .10);
}
.tb-staff-fidelity-pro-wrap .tb-dashboard-refresh-btn:hover,
.tb-staff-fidelity-pro-wrap .tb-refresh-customer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(75, 43, 150, .16);
}
.tb-staff-fidelity-pro-wrap .tb-points-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tb-staff-origin-card{margin-top:16px;padding:16px 18px;border-radius:16px;background:#f7f8fc;border:1px solid #e4e7ef;color:#1f2937}.tb-staff-origin-card .tb-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;margin-bottom:7px}.tb-staff-origin-card>div+div{margin-top:4px}.tb-staff-origin-card small{display:block;margin-top:6px;color:#6b7280}
