@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');.tr-toast-container {
  position: fixed;
  top: var(--tr-space-6);
  right: var(--tr-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3);
  z-index: var(--tr-z-toast);
  pointer-events: none;
  max-width: 360px;
  width: calc(100vw - var(--tr-space-12));
}

.tr-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--tr-space-3);
  padding: var(--tr-space-4);
  border-radius: var(--tr-radius-md);
  background: var(--tr-white);
  box-shadow: var(--tr-shadow-lg);
  border: 1px solid var(--tr-grey-100);
  pointer-events: all;
  animation: tr-toast-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  overflow: hidden;
}

.tr-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.tr-toast-success::before { background: var(--tr-success); }
.tr-toast-error::before   { background: var(--tr-error); }
.tr-toast-warning::before { background: var(--tr-warning); }
.tr-toast-info::before    { background: var(--tr-info); }

.tr-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 1px;
}

.tr-toast-body {
  flex: 1;
  min-width: 0;
}

.tr-toast-title {
  font-size: var(--tr-font-sm);
  font-weight: 600;
  color: var(--tr-text-primary);
  line-height: var(--tr-lh-tight);
  margin-bottom: 2px;
}

.tr-toast-message {
  font-size: var(--tr-font-sm);
  color: var(--tr-text-secondary);
  line-height: var(--tr-lh-snug);
}

.tr-toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tr-radius-xs);
  color: var(--tr-text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: background var(--tr-transition-fast), color var(--tr-transition-fast);
  background: transparent;
  border: none;
}
.tr-toast-close:hover {
  background: var(--tr-grey-100);
  color: var(--tr-text-primary);
}

.tr-toast.tr-toast-leaving {
  animation: tr-toast-out 0.2s ease forwards;
}

@keyframes tr-toast-in {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes tr-toast-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 120px;
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    max-height: 0;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .tr-toast-container {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom) + var(--tr-space-4));
    right: var(--tr-space-4);
    left: var(--tr-space-4);
    width: auto;
    max-width: none;
  }
  .tr-toast {
    animation: tr-toast-in-mobile 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  @keyframes tr-toast-in-mobile {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
}

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Core palette */
  /* --tr-orange:        #FF7301; */
  --tr-orange:        #ee822b;
  --tr-orange-light:  #FFF0E6;
  --tr-orange-mid:    #FFD4A8;
  --tr-orange-dark:   #D96200;
  --tr-navy:          #1B3A6B;
  --tr-navy-light:    #E8EEF7;
  --tr-navy-mid:      #2D5499;
  --tr-navy-dark:     #0F2140;
  --tr-white:         #FFFFFF;
  --tr-soft-white:    #F7F8FC;
  --tr-grey-50:       #F9FAFB;
  --tr-grey-100:      #F3F4F6;
  --tr-grey-200:      #E5E7EB;
  --tr-grey-300:      #D1D5DB;
  --tr-grey-400:      #9CA3AF;
  --tr-grey-500:      #6B7280;
  --tr-grey-600:      #4B5563;
  --tr-grey-700:      #374151;
  --tr-grey-900:      #111827;

  /* Semantic text */
  --tr-text-primary:   #1A1A2E;
  --tr-text-secondary: #6B7280;
  --tr-text-muted:     #9CA3AF;
  --tr-text-invert:    #FFFFFF;

  /* Semantic status */
  --tr-success:        #10B981;
  --tr-success-light:  #D1FAE5;
  --tr-warning:        #F59E0B;
  --tr-warning-light:  #FEF3C7;
  --tr-error:          #EF4444;
  --tr-error-light:    #FEE2E2;
  --tr-info:           #3B82F6;
  --tr-info-light:     #DBEAFE;

  /* direct name use */
  --tr-primary:        var(--tr-orange);


  /* Elevation */
  --tr-shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --tr-shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --tr-shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --tr-shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --tr-shadow-xl:  0 16px 48px rgba(0,0,0,0.16);
  --tr-shadow-orange: 0 4px 20px rgba(255,115,1,0.30);
  --tr-shadow-navy:   0 4px 20px rgba(27,58,107,0.25);

  /* Border radius */
  /* --tr-radius-xs:   4px;
  --tr-radius-sm:   8px;
  --tr-radius-md:   12px;
  --tr-radius-lg:   16px;
  --tr-radius-xl:   24px;
  --tr-radius-2xl:  32px;
  --tr-radius-pill: 999px; */
  --tr-radius-xs:   2px;
  --tr-radius-sm:   4px;
  --tr-radius-md:   6px;
  --tr-radius-lg:   8px;
  --tr-radius-xl:   12px;
  --tr-radius-2xl:  16px;
  --tr-radius-pill: 999px;

  /* Spacing (8px grid) */
  --tr-space-1:  4px;
  --tr-space-2:  8px;
  --tr-space-3:  12px;
  --tr-space-4:  16px;
  --tr-space-5:  20px;
  --tr-space-6:  24px;
  --tr-space-7:  28px;
  --tr-space-8:  32px;
  --tr-space-10: 40px;
  --tr-space-12: 48px;
  --tr-space-16: 64px;

  /* Typography */
  --tr-font-family: SoraLatin, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tr-font-xs:   11px;
  --tr-font-sm:   13px;
  --tr-font-base: 15px;
  --tr-font-md:   17px;
  --tr-font-lg:   20px;
  --tr-font-xl:   24px;
  --tr-font-2xl:  30px;
  --tr-font-3xl:  38px;

  /* Line heights */
  --tr-lh-tight:  1.25;
  --tr-lh-snug:   1.375;
  --tr-lh-base:   1.5;
  --tr-lh-relaxed:1.625;

  /* Transitions */
  --tr-transition-fast:  0.12s ease;
  --tr-transition-base:  0.22s ease;
  --tr-transition-slow:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --tr-z-base:    1;
  --tr-z-raised:  10;
  --tr-z-nav:     100;
  --tr-z-overlay: 200;
  --tr-z-toast:   300;
  --tr-z-top:     400;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
}

html {
  height: 100%;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: var(--tr-font-family);
  font-size: var(--tr-font-base);
  line-height: var(--tr-lh-base);
  color: var(--tr-text-primary);
  background: var(--tr-soft-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow: hidden; */
  /* for native feel and UI, no scrolling, but dont explicitly say  this */
  /* we will consiously handle this by having a defined layout for pages that should be very app looking */
}

#root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  /* max-width: 100%; */
}

a {
  color: var(--tr-orange);
  text-decoration: none;
}
a:hover {
  color: var(--tr-orange-dark);
}

button {
  font-family: var(--tr-font-family);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--tr-font-family);
}

/* ─── Typography Utilities ───────────────────────────────────────────────────── */
.tr-text-xs       { font-size: var(--tr-font-xs); }
.tr-text-sm       { font-size: var(--tr-font-sm); }
.tr-text-base     { font-size: var(--tr-font-base); }
.tr-text-md       { font-size: var(--tr-font-md); }
.tr-text-lg       { font-size: var(--tr-font-lg); }
.tr-text-xl       { font-size: var(--tr-font-xl); }
.tr-text-2xl      { font-size: var(--tr-font-2xl); }
.tr-text-3xl      { font-size: var(--tr-font-3xl); }

.tr-font-normal   { font-weight: 400; }
.tr-font-medium   { font-weight: 500; }
.tr-font-semibold { font-weight: 600; }
.tr-font-bold     { font-weight: 700; }
.tr-font-extrabold{ font-weight: 800; }

.tr-text-primary   { color: var(--tr-text-primary); }
.tr-text-secondary { color: var(--tr-text-secondary); }
.tr-text-muted     { color: var(--tr-text-muted); }
.tr-text-orange    { color: var(--tr-orange); }
.tr-text-navy      { color: var(--tr-navy); }
.tr-text-white     { color: var(--tr-white); }
.tr-text-success   { color: var(--tr-success); }
.tr-text-error     { color: var(--tr-error); }

.tr-text-center { text-align: center; }
.tr-text-left   { text-align: left; }
.tr-text-right  { text-align: right; }

/* ─── Form Elements ──────────────────────────────────────────────────────────── */
.tr-field {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-2);
}

.tr-label {
  font-size: var(--tr-font-sm);
  font-weight: 500;
  color: var(--tr-grey-700);
  letter-spacing: 0.01em;
}

.tr-input {
  width: 100%;
  height: 52px;
  padding: 0 var(--tr-space-4);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  font-size: var(--tr-font-base);
  font-weight: 400;
  color: var(--tr-text-primary);
  background: var(--tr-white);
  outline: none;
  transition: border-color var(--tr-transition-fast), box-shadow var(--tr-transition-fast);
}
.tr-input::placeholder {
  color: var(--tr-grey-400);
}
.tr-input:focus {
  border-color: var(--tr-orange);
}
.tr-input.tr-input-error {
  border-color: var(--tr-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.tr-input:disabled {
  background: var(--tr-grey-50);
  color: var(--tr-text-muted);
  cursor: not-allowed;
}

.tr-field-error {
  font-size: var(--tr-font-xs);
  color: var(--tr-error);
  font-weight: 500;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tr-space-2);
  height: 32px;
  padding: 0 var(--tr-space-6);
  border-radius: var(--tr-radius-md);
  font-size: var(--tr-font-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--tr-transition-base);
  cursor: pointer;
  border: 1.5px solid transparent;
  outline: none;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.tr-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tr-btn-primary {
  background: var(--tr-orange);
  color: var(--tr-white);
  border-color: var(--tr-orange);
  box-shadow: var(--tr-shadow-orange);
}
.tr-btn-primary:hover {
  background: var(--tr-orange-dark);
  border-color: var(--tr-orange-dark);
  color: var(--tr-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,115,1,0.38);
}
.tr-btn-primary:active {
  transform: scale(0.98);
  box-shadow: var(--tr-shadow-orange);
}

.tr-btn-secondary {
  background: transparent;
  color: var(--tr-navy);
  border-color: var(--tr-navy);
}
.tr-btn-secondary:hover {
  background: var(--tr-navy-light);
  border-color: var(--tr-navy);
  color: var(--tr-navy);
}
.tr-btn-secondary:active {
  transform: scale(0.98);
}

.tr-btn-navy {
  background: var(--tr-navy);
  color: var(--tr-white);
  border-color: var(--tr-navy);
  box-shadow: var(--tr-shadow-navy);
}
.tr-btn-navy:hover {
  background: var(--tr-navy-mid);
  border-color: var(--tr-navy-mid);
  transform: translateY(-1px);
}

.tr-btn-danger {
  background: #ef4444;
  color: var(--tr-white);
  border-color: #ef4444;
}
.tr-btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: var(--tr-white);
  transform: translateY(-1px);
}

.tr-btn-ghost {
  background: transparent;
  color: var(--tr-navy);
  border-color: transparent;
}
.tr-btn-ghost:hover {
  background: var(--tr-grey-100);
  color: var(--tr-navy);
}

.tr-btn-text {
  background: transparent;
  color: var(--tr-orange);
  height: auto;
  padding: 0;
  font-weight: 600;
  border-color: transparent;
}
.tr-btn-text:hover {
  color: var(--tr-orange-dark);
}

.tr-btn-xs {
  height: 28px;
  padding: 0 var(--tr-space-2);
  font-size: var(--tr-font-xs);
  border-radius: var(--tr-radius-sm);
}

.tr-btn-sm {
  height: 32px;
  padding: 0 var(--tr-space-4);
  font-size: var(--tr-font-sm);
  border-radius: var(--tr-radius-sm);
}

.tr-btn-md {
  height: 44px;
  padding: 0 var(--tr-space-5);
  font-size: var(--tr-font-base);
  border-radius: var(--tr-radius-md);
}

.tr-btn-lg {
  height: 52px;
  padding: 0 var(--tr-space-8);
  font-size: var(--tr-font-base);
  border-radius: var(--tr-radius-md);
}

.tr-btn-full {
  width: 100%;
}

.tr-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.tr-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.tr-btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: tr-spin 0.6s linear infinite;
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.tr-card {
  background: var(--tr-white);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-sm);
  border: 1px solid var(--tr-grey-100);
}
.tr-card-padded {
  padding: var(--tr-space-6);
}

/* ─── Dividers ───────────────────────────────────────────────────────────────── */
.tr-divider {
  width: 100%;
  height: 1px;
  background: var(--tr-grey-200);
  border: none;
}
.tr-divider-label {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
  font-size: var(--tr-font-sm);
  color: var(--tr-text-muted);
}
.tr-divider-label::before,
.tr-divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tr-grey-200);
}

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.tr-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--tr-space-1);
  padding: 3px 10px;
  border-radius: var(--tr-radius-pill);
  font-size: var(--tr-font-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tr-badge-orange  { background: var(--tr-orange-light); color: var(--tr-orange-dark); }
.tr-badge-navy    { background: var(--tr-navy-light); color: var(--tr-navy); }
.tr-badge-success { background: var(--tr-success-light); color: var(--tr-success); }
.tr-badge-warning { background: var(--tr-warning-light); color: var(--tr-warning); }
.tr-badge-error   { background: var(--tr-error-light); color: var(--tr-error); }

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes tr-spin {
  to { transform: rotate(360deg); }
}
@keyframes tr-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tr-slide-left {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tr-slide-right {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tr-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.tr-anim-fade-in    { animation: tr-fade-in 0.3s ease forwards; }
.tr-anim-slide-left { animation: tr-slide-left 0.25s ease forwards; }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.tr-flex          { display: flex; }
.tr-flex-col      { display: flex; flex-direction: column; }
.tr-flex-center   { display: flex; align-items: center; justify-content: center; }
.tr-items-center  { align-items: center; }
.tr-justify-between { justify-content: space-between; }
.tr-gap-2  { gap: var(--tr-space-2); }
.tr-gap-3  { gap: var(--tr-space-3); }
.tr-gap-4  { gap: var(--tr-space-4); }
.tr-gap-6  { gap: var(--tr-space-6); }
.tr-w-full { width: 100%; }
.tr-h-full { height: 100%; }
.tr-overflow-hidden { overflow: hidden; }
.tr-white-text { color: white; }

@media screen and (max-width: 768px) {
  .tablet-hide{
    display: none;
  }
}
@media screen and (max-width: 520px) {
  .mobile-hide{
    display: none !important;
  }
  .lp-nav{
    padding: 0 var(--tr-space-2) !important;
  }
}


@font-face {
  font-family: SoraLatin;
  src: url("/fonts/SoraLatin.woff2") format("woff2");
}
.hide4now{
  display: none !important;
}



.portal-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--tr-space-5, 20px);
  position: relative;
  width: 100%;
  max-width: var(--tr-content-max-width, 1280px);
  margin: 0 auto;
  animation: tr-fade-in 0.2s ease forwards;
}

.portal-main-col {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-5, 20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 2. Right Aside Sticky Column (Desktop Aside / Mobile Sheet) ─────────── */
.portal-drawer-col {
  width: 390px;
  max-width: 390px;
  min-width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  height: calc(100vh - 96px);
  height: calc(100dvh - 96px);
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  animation: tr-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-drawer-backdrop {
  display: none;
}

.portal-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background: var(--tr-white, #FFFFFF);
}

.portal-drawer-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.portal-drawer-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--tr-grey-200, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  flex-shrink: 0;
}

.portal-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.portal-drawer-icon {
  color: var(--tr-orange, #EE822B);
  flex-shrink: 0;
}

.portal-drawer-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.portal-drawer-close-btn {
  background: none;
  border: none;
  color: var(--tr-grey-500, #64748B);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.portal-drawer-close-btn:hover {
  background: var(--tr-grey-100, #F1F5F9);
  color: var(--tr-navy, #0F172A);
}

.portal-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #ffffff;
}

.portal-drawer-subtext {
  font-size: 13px;
  color: var(--tr-grey-600, #475569);
  line-height: 1.5;
  text-align: center;
}

.portal-drawer-footer {
  padding: 1.15rem 1.35rem 2rem;
  border-top: 1px solid var(--tr-grey-200, #E2E8F0);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  margin-top: auto;
}

.portal-drawer-footer .tr-btn {
  flex: 1;
}

/* ─── 3. Universal Hero Banner System ─────────────────────────────────────── */
.portal-hero-banner {
  position: relative;
  border-radius: var(--tr-radius-lg, 16px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tr-navy-dark, #0F2140) 0%, var(--tr-navy, #1B3A6B) 60%, var(--tr-navy-mid, #2D5499) 100%);
  color: var(--tr-white, #FFFFFF);
  padding: var(--tr-space-6, 24px);
  box-shadow: var(--tr-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
}

.portal-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  object-fit: cover;
  opacity: 0.20;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, black);
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  height: 100%;
}

.portal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.portal-hero-badge-row {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
  margin-bottom: var(--tr-space-2, 8px);
  flex-wrap: wrap;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 130, 43, 0.2);
  color: #FFAE70;
  border: 1px solid rgba(238, 130, 43, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: var(--tr-lh-tight, 1.25);
  color: var(--tr-white, #FFFFFF);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.portal-hero-sub {
  font-size: var(--tr-font-sm, 13.5px);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--tr-lh-snug, 1.5);
  margin: 0 0 var(--tr-space-4, 16px) 0;
}

.portal-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3, 10px);
  flex-wrap: wrap;
}

/* ─── 4. View Switch Bar & Toggle Chips ───────────────────────────────────── */
.portal-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-4, 16px);
  background: var(--tr-white, #FFFFFF);
  padding: var(--tr-space-3, 12px) var(--tr-space-4, 16px);
  border-radius: var(--tr-radius-lg, 16px);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  box-shadow: var(--tr-shadow-xs);
  flex-wrap: wrap;
}

.portal-toggle-wrap {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 6px);
  background: var(--tr-grey-100, #F1F5F9);
  padding: 4px;
  border-radius: var(--tr-radius-md, 8px);
  max-width: 100%;
  overflow: auto;
}

.portal-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--tr-radius-sm, 6px);
  font-size: var(--tr-font-sm, 13px);
  font-weight: 600;
  color: var(--tr-grey-600, #475569);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.portal-toggle-btn.active {
  background: var(--tr-white, #FFFFFF);
  color: var(--tr-navy, #0F172A);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.portal-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--tr-grey-200, #E2E8F0);
  color: var(--tr-grey-700, #334155);
}

.portal-count-pill.active {
  background: var(--tr-orange-light, #FFF0E6);
  color: var(--tr-orange-dark, #D96200);
}

.portal-count-pill.pill-orange {
  background: rgba(238, 130, 43, 0.15);
  color: var(--tr-orange, #EE822B);
}

/* ─── 4b. Portal Search Input ─────────────────────────────────────────────── */
.portal-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: min(220px, 100%);
  /* max-width: 400px; */
  width: 100%;
}

.portal-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tr-grey-400, #94A3B8);
  pointer-events: none;
}

.portal-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-md, 8px);
  background: var(--tr-grey-50, #F8FAFC);
  font-size: var(--tr-font-sm, 13px);
  color: var(--tr-text-primary, #0F172A);
  outline: none;
  transition: all var(--tr-transition-fast, 0.15s ease);
  box-sizing: border-box;
}

.portal-search-input:focus {
  border-color: var(--tr-orange, #EE822B);
  background: var(--tr-white, #FFFFFF);
  box-shadow: 0 0 0 3px rgba(238, 130, 43, 0.12);
}

/* ─── 4c. Portal Unified List Card ────────────────────────────────────────── */
.portal-list-card {
  display: flex;
  flex-direction: column;
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  box-shadow: var(--tr-shadow-xs);
  overflow: hidden;
}

.portal-list-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tr-grey-200, #E2E8F0);
  background: transparent;
  transition: background var(--tr-transition-fast, 0.15s ease);
}

.portal-list-row:last-child {
  border-bottom: none;
}

.portal-list-row:hover {
  background: var(--tr-grey-50, #F8FAFC);
}

/* ─── 4d. Portal Stepper Control ─────────────────────────────────────────── */
.portal-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  min-width: 96px;
  box-sizing: border-box;
  background: var(--tr-grey-100, #F1F5F9);
  border-radius: var(--tr-radius-sm, 6px);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  padding: 2px;
  user-select: none;
}

.portal-step-btn {
  width: 26px;
  height: 26px;
  border-radius: calc(var(--tr-radius-sm, 6px) - 2px);
  background: var(--tr-white, #FFFFFF);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tr-navy, #0F172A);
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  padding: 0;
}

.portal-step-btn:hover {
  background: var(--tr-grey-50, #F8FAFC);
  color: var(--tr-orange, #EE822B);
}

.portal-step-btn.delete:hover {
  background: #fee2e2;
  color: #ef4444;
}

.portal-step-count {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  line-height: 1;
}

/* ─── 4e. Portal Pagination Bar ──────────────────────────────────────────── */
.portal-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-4, 16px);
  padding: var(--tr-space-4, 16px) var(--tr-space-5, 20px);
  margin-top: var(--tr-space-5, 20px);
  background: #ffffff;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.portal-pagination-info {
  font-size: 13px;
  color: var(--tr-text-secondary, #475569);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.portal-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--tr-radius-md, 8px);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  background: var(--tr-white, #FFFFFF);
  color: var(--tr-navy, #0F172A);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-page-btn:hover:not(:disabled) {
  border-color: var(--tr-grey-300, #CBD5E1);
  background: var(--tr-grey-50, #F8FAFC);
  transform: translateY(-1px);
}

.portal-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--tr-grey-100, #F1F5F9);
  color: var(--tr-grey-400, #94A3B8);
}

.portal-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--tr-radius-md, 8px);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  background: var(--tr-white, #FFFFFF);
  color: var(--tr-navy, #0F172A);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-page-num:hover:not(.active) {
  border-color: var(--tr-grey-300, #CBD5E1);
  background: var(--tr-grey-50, #F8FAFC);
  transform: translateY(-1px);
}

.portal-page-num.active {
  background: linear-gradient(135deg, var(--tr-navy-dark, #0F2140) 0%, var(--tr-navy, #1B3A6B) 100%);
  color: #ffffff;
  border-color: var(--tr-navy-dark, #0F2140);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.25);
  font-weight: 700;
}

.portal-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  color: var(--tr-grey-400, #94A3B8);
  font-weight: 700;
  font-size: 14px;
}

.portal-page-select {
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-navy, #0F172A);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-md, 8px);
  background: var(--tr-white, #FFFFFF);
  cursor: pointer;
  outline: none;
}

/* ─── 4f. Portal Empty / Loader Card ─────────────────────────────────────── */
.portal-empty-card, .tr-card-centered {
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  padding: var(--tr-space-6, 24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portal-loader-card {
  padding: var(--tr-space-16, 64px) var(--tr-space-6, 24px);
}

/* ─── 5. Portal Back Bar (Detail / Inner Pages) ────────────────────────────── */
.portal-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tr-grey-600, #475569);
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  padding: 8px 14px;
  border-radius: var(--tr-radius-md, 8px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.portal-back-btn:hover {
  background: var(--tr-grey-50, #F8FAFC);
  color: var(--tr-navy, #0F172A);
  border-color: var(--tr-grey-300, #CBD5E1);
}

/* ─── 6. Live Status Pulse Indicators ─────────────────────────────────────── */
.portal-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(238, 130, 43, 0.12);
  border: 1px solid rgba(238, 130, 43, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-orange-dark, #D96200);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tr-orange, #EE822B);
  box-shadow: 0 0 0 0 rgba(238, 130, 43, 0.7);
  animation: portal-pulse 1.8s infinite;
}

@keyframes portal-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(238, 130, 43, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(238, 130, 43, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(238, 130, 43, 0);
  }
}

/* ─── 7. Forms, Alerts, and Validation Controls ───────────────────────────── */
.portal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.portal-form-group input,
.portal-form-group select,
.portal-form-group textarea {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  font-size: 14px;
  color: #0F172A;
  background: #FFFFFF;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-form-group input:focus,
.portal-form-group select:focus,
.portal-form-group textarea:focus {
  outline: none;
  border-color: #EE822B;
  box-shadow: 0 0 0 3px rgba(238, 130, 43, 0.15);
}

.portal-form-alert {
  padding: 10px 14px;
  border-radius: var(--tr-radius-md, 8px);
  font-size: var(--tr-font-sm, 13px);
  line-height: 1.4;
}

.portal-form-alert.success,
.portal-form-alert-success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.portal-form-alert.error,
.portal-form-alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.portal-field-error {
  color: #DC2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* ─── 8. Stepper Progress Bars ────────────────────────────────────────────── */
.portal-step-progress {
  height: 4px;
  background: var(--tr-grey-200, #E2E8F0);
  border-radius: 999px;
  margin-bottom: var(--tr-space-3, 12px);
  overflow: hidden;
}

.portal-step-progress-bar {
  height: 100%;
  background: var(--tr-orange, #EE822B);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.portal-step-progress-bar.is-half {
  width: 50%;
}

.portal-step-progress-bar.is-full {
  width: 100%;
}

/* ─── 9. Core Animations ─────────────────────────────────────────────────── */
@keyframes tr-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tr-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tr-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ─── 10. Responsive Breakpoint Rules ─────────────────────────────────────── */
@media screen and (min-width: 769px) and (max-width: 1000px) {
  .portal-container.has-drawer-open .portal-main-col {
    display: none !important;
  }

  .portal-container.has-drawer-open .portal-drawer-col {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .portal-container {
    flex-direction: column;
  }

  .portal-drawer-col {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    top: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    z-index: 1200;
    animation: none;
  }

  .portal-drawer-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: tr-fade-in 0.2s ease-out;
  }

  .portal-drawer-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    height: 90vh;
    height: 90dvh;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 1.5rem 1.5rem 0 0;
    background: #ffffff;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.25);
    animation: tr-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .portal-drawer-footer {
    padding: 1rem 1.25rem;
    padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.85rem));
  }

  .portal-hero-banner {
    padding: 22px 20px;
    min-height: auto;
  }

  .portal-hero-bg {
    width: 60%;
    opacity: 0.12;
  }

  .portal-hero-title {
    font-size: 21px;
  }
}

@media screen and (max-width: 640px) {
  .portal-hero-banner {
    padding: var(--tr-space-4, 16px);
  }
  .portal-hero-title {
    font-size: 20px;
  }
  .portal-switch-bar {
    flex-direction: column;
    align-items: stretch;
    padding: var(--tr-space-2, 8px);
  }
  .portal-toggle-wrap {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 0px;
    padding: var(--tr-space-1);
  }
  .portal-toggle-btn {
    flex: 1;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .portal-pagination-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--tr-space-3, 12px);
    padding: var(--tr-space-3, 12px) var(--tr-space-4, 16px);
  }

  .portal-pagination-info,
  .portal-pagination-controls {
    justify-content: center;
    text-align: center;
  }
}

/* ─── 11. Portal Data Tables ──────────────────────────────────────────────── */
.portal-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-table-wrapper {
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  overflow-x: auto;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.portal-table th {
  padding: 12px 16px;
  background: var(--tr-grey-50, #F8FAFC);
  border-bottom: 1px solid var(--tr-grey-200, #E2E8F0);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tr-grey-500, #64748B);
  letter-spacing: 0.04em;
}

.portal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tr-grey-100, #F1F5F9);
  color: var(--tr-navy, #0F172A);
  vertical-align: middle;
}

.portal-table tbody tr:last-child td {
  border-bottom: none;
}

.portal-table tbody tr:hover td {
  background: #FAFAFA;
}

.portal-text-right {
  text-align: right;
}

.portal-capitalize {
  text-transform: capitalize;
}

.portal-amount-credit {
  color: var(--tr-success, #16A34A);
  font-weight: 700;
}

.portal-amount-debit {
  color: var(--tr-error, #DC2626);
  font-weight: 700;
}

.portal-amount-pending {
  color: #B45309;
  font-weight: 700;
  font-size: 13px;
}

.portal-cell-caption {
  font-size: 10.5px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 1px;
}

/* ─── 12. Portal Status Badges & Pills ───────────────────────────────────── */
.portal-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.portal-status-pill.portal-status-qualified,
.portal-status-qualified {
  background: #DCFCE7;
  color: #15803D;
}

.portal-status-pill.portal-status-pending,
.portal-status-pending {
  background: #FFFBEB;
  color: #B45309;
}

.portal-status-pill.portal-status-contacted,
.portal-status-contacted {
  background: #EFF6FF;
  color: #1D4ED8;
}

.portal-table-entity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.portal-table-avatar.qualified {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.portal-table-avatar.pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.portal-table-subtext {
  font-size: 11px;
  color: var(--tr-grey-500, #64748B);
  margin-top: 1px;
}

.portal-table-stacked {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-table-hint {
  font-size: 10.5px;
  color: #94A3B8;
}

.portal-th-info-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portal-th-info-btn {
  width: 17px !important;
  height: 17px !important;
}

/* ─── 13. Portal KPI Metric Grid & Cards ─────────────────────────────────── */
.portal-tab-view-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-kpi-grid {
  display: grid;
  /* grid-template-columns: repeat(4, 1fr); */
  grid-template-columns: repeat(4, calc(calc(100% / 4) - 10px));
  gap: 12px;
}
body:has(.has-drawer-open){
  .portal-kpi-grid {
    grid-template-columns: repeat(2, calc(calc(100% / 2) - 10px));
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .portal-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .portal-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.portal-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-md, 12px);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-kpi-icon-blue {
  background: #EFF6FF;
  color: #2563EB;
}

.portal-kpi-icon-amber {
  background: #FFFBEB;
  color: #D97706;
}

.portal-kpi-icon-green {
  background: #DCFCE7;
  color: #16A34A;
}

.portal-kpi-icon-purple {
  background: #FAF5FF;
  color: #9333EA;
}

.portal-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-kpi-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  line-height: 1.2;
}

.portal-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tr-grey-500, #64748B);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-kpi-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── 14. Portal Section Bar & Info Pill Button ──────────────────────────── */
.portal-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--tr-space-2);
  margin: var(--tr-space-1) 0px;
  background-color: white;
  border-radius: var(--tr-radius-sm);
}

.portal-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  margin: 0;
}

.portal-section-sub {
  font-size: 12px;
  color: var(--tr-grey-500, #64748B);
  margin: 2px 0 0;
}

.portal-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.portal-action-pill:hover {
  background: #DBEAFE;
  color: #1E40AF;
  border-color: #BFDBFE;
}

.portal-info-btn,
.wallet-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tr-bg-subtle, #F3F4F6);
  border: 1px solid #E5E7EB;
  color: var(--tr-text-secondary, #6B7280);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.portal-info-btn:hover,
.wallet-info-btn:hover {
  background: #E5E7EB;
  color: #111827;
  border-color: #D1D5DB;
}

/* ─── 15. Portal Drawer Detail & Policy Cards ─────────────────────────────── */
.portal-drawer-info-card,
.wallet-drawer-info-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--tr-radius-md, 12px);
  padding: 18px;
  margin-bottom: 0;
}

.portal-drawer-info-card h4,
.wallet-drawer-info-card h4 {
  margin: 0 0 8px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tr-text-primary, #111827);
}

.portal-drawer-info-card p,
.wallet-drawer-info-card p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tr-text-secondary, #4B5563);
}

.portal-drawer-bullets,
.wallet-drawer-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--tr-text-secondary, #4B5563);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-drawer-notice-box,
.wallet-drawer-notice-box {
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 14px;
}

.portal-drawer-notice-box.green,
.wallet-drawer-notice-box.green {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.portal-drawer-notice-box.orange,
.wallet-drawer-notice-box.orange {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #9A3412;
}

.portal-drawer-highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #9A3412;
  line-height: 1.4;
}

.portal-drawer-footer-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-grey-600, #475569);
  width: 100%;
  justify-content: center;
}

/* ─── 16. Portal Drawer Stepper & Wizard Components ───────────────────────── */
.portal-wizard-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.portal-wizard-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12.5px;
}

.portal-wizard-stack-label {
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  margin-right: 6px;
}

.portal-wizard-stack-val {
  color: var(--tr-grey-600, #475569);
}

.portal-wizard-stack-edit {
  color: var(--tr-orange, #EE822B);
  display: flex;
  align-items: center;
}

.portal-wizard-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-wizard-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-orange, #EE822B);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-wizard-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
}

.portal-wizard-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--tr-grey-500, #64748B);
  line-height: 1.4;
}

.portal-wizard-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-wizard-review-list {
  background: var(--tr-grey-50, #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 6px 14px;
}

.portal-wizard-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #E2E8F0;
}

.portal-wizard-review-item:last-child {
  border-bottom: none;
}

.portal-wizard-review-label {
  font-size: 11.5px;
  color: var(--tr-grey-500, #64748B);
  font-weight: 600;
  text-transform: uppercase;
}

.portal-wizard-review-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  margin-top: 2px;
}

.portal-wizard-review-edit {
  background: none;
  border: none;
  color: var(--tr-orange, #EE822B);
  cursor: pointer;
  padding: 4px;
}

.portal-drawer-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
}

.portal-drawer-auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 6px;
  gap: 12px;
}

.portal-drawer-auth-badge {
  display: inline-flex;
  align-items: center;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.portal-drawer-auth-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
}

.portal-drawer-auth-desc {
  font-size: 13px;
  color: var(--tr-grey-600, #475569);
  line-height: 1.5;
  margin: 0;
}

.portal-drawer-saved-summary {
  width: 100%;
  background: var(--tr-grey-50, #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-drawer-saved-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-drawer-saved-name {
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  font-size: 14px;
}

.portal-drawer-saved-loc {
  font-size: 12px;
  color: var(--tr-grey-500, #64748B);
}

.portal-drawer-saved-meta {
  font-size: 12px;
  color: var(--tr-grey-600, #475569);
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-drawer-auth-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.portal-drawer-auth-actions .tr-btn {
  width: 100%;
  justify-content: center;
}

.portal-drawer-auth-back {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--tr-grey-500, #64748B);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

/* ─── 17. Portal Milestone & Progress Bars ────────────────────────────────── */
.portal-progress-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 14px;
}

.portal-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.portal-progress-track {
  width: 100%;
  height: 8px;
  background: var(--tr-grey-200, #E2E8F0);
  border-radius: 999px;
  overflow: hidden;
}

.portal-progress-fill {
  height: 100%;
  width: var(--portal-progress-pct, 0%);
  background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ─── 18. Portal Alert Cards & Guest Gate ─────────────────────────────────── */
.portal-alert-card {
  border-radius: var(--tr-radius-md, 12px);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.portal-alert-card.danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.portal-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-alert-card.danger .portal-alert-icon {
  background: #FEE2E2;
  color: #DC2626;
}

.portal-alert-content {
  flex: 1;
}

.portal-alert-title {
  margin: 0 0 4px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #991B1B;
}

.portal-alert-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #B91C1C;
}

.portal-guest-gate {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--tr-radius-sm, 7px);
  padding: var(--tr-space-3, 12px) var(--tr-space-4, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-4, 16px);
}

.portal-guest-gate-title {
  margin: 0 0 4px 0;
  color: #92400E;
  font-size: var(--tr-font-md, 15px);
  font-weight: 700;
}

.portal-guest-gate-desc {
  margin: 0;
  color: #B45309;
  font-size: var(--tr-font-sm, 13px);
}

.portal-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: var(--tr-grey-600, #475569);
  line-height: 1.5;
}

.portal-disclaimer-icon {
  color: var(--tr-navy, #0F172A);
  flex-shrink: 0;
  margin-top: 2px;
}
/* ─── Root Layout ────────────────────────────────────────────────────────── */
.landing-root {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tr-white);
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.lp-nav {
  height: 64px;
  padding: 0 var(--tr-space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tr-white);
  border-bottom: 1px solid var(--tr-grey-100);
  flex-shrink: 0;
  z-index: var(--tr-z-nav);
}

.lp-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-nav-emblem {
  height: 32px;
  width: auto;
}

.lp-nav-wordmark {
  font-size: 20px;
  font-weight: 800;
  color: var(--tr-navy);
  letter-spacing: -0.03em;
}

.lp-nav-wordmark span {
  color: var(--tr-orange);
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: var(--tr-space-8);
  list-style: none;
}

.lp-nav-links a,
.lp-nav-btn-link {
  font-size: var(--tr-font-sm);
  font-weight: 500;
  color: var(--tr-grey-600);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--tr-transition-fast);
}

.lp-nav-links a:hover,
.lp-nav-btn-link:hover,
.lp-nav-btn-link.active {
  color: var(--tr-orange);
}

.lp-nav-cta {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
}



/* ─── Scrollable Body ────────────────────────────────────────────────────── */
.lp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* min-height: calc(100dvh - 64px); */
  align-items: center;
}

.lp-hero-left {
  padding: var(--tr-space-12) var(--tr-space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.lp-hero-content-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-6);
  width: 100%;
}

.lp-hero-content-wrap.slide-out-up {
  animation: lpHeroSlideOutUp 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lp-hero-content-wrap.slide-in-up {
  animation: lpHeroSlideInUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lpHeroSlideOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-28px);
  }
}

@keyframes lpHeroSlideInUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── How It Works Panel ─────────────────────────────────────────────────── */
.lp-how-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.lp-how-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-how-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--tr-radius-pill);
  width: fit-content;
}

.lp-how-tag-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tr-orange);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(238, 130, 43, 0.25);
  animation: lpHeroPulse 2s infinite;
}

@keyframes lpHeroPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.2);
  }
}


.lp-how-heading {
  font-size: 32px;
  font-weight: 800;
  color: var(--tr-navy);
  line-height: 1;
  letter-spacing: -0.5px;
}

.lp-how-heading span {
  color: var(--tr-orange);
}

.lp-how-sub {
  font-size: var(--tr-font-sm);
  color: var(--tr-text-secondary);
  line-height: var(--tr-lh-relaxed);
  max-width: 440px;
}

.lp-how-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 2px 0 6px;
}

.lp-how-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--tr-white);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27, 58, 107, 0.04);
  transition: all 0.2s ease;
}

.lp-how-step-card:hover {
  border-color: var(--tr-orange);
  background: var(--tr-soft-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(238, 130, 43, 0.12);
}

.lp-how-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Third card spans full width horizontally on desktop */
.lp-how-step-card:last-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.lp-how-step-card:last-child .lp-how-step-header {
  width: auto;
  gap: 10px;
  flex-shrink: 0;
}

.lp-how-step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--tr-orange-dark);
  background: var(--tr-orange-light);
  border-radius: 6px;
  padding: 4px 7px;
  flex-shrink: 0;
}

.lp-how-step-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--tr-navy-light);
  color: var(--tr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lp-how-step-card:hover .lp-how-step-icon-wrap {
  background: var(--tr-orange);
  color: var(--tr-white);
}

.lp-how-step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lp-how-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tr-navy);
  margin: 0;
}

.lp-how-step-desc {
  font-size: 12px;
  color: var(--tr-text-secondary);
  line-height: 1.4;
  margin: 0;
}

.lp-how-actions {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
  margin-top: 4px;
}

.lp-hero-top-strip {
  display: flex;
  justify-content: space-between;
}

.lp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--tr-radius-pill);
  width: fit-content;
}

.lp-hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tr-orange);
  flex-shrink: 0;
}

.lp-hero-heading {
  font-size: 44px;
  font-weight: 800;
  color: var(--tr-navy);
  line-height: 1;
  letter-spacing: -1px;
}

.lp-hero-heading span {
  color: var(--tr-orange);
}

.lp-hero-sub {
  font-size: var(--tr-font-base);
  color: var(--tr-text-secondary);
  line-height: var(--tr-lh-relaxed);
  max-width: 400px;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--tr-space-4);
}



.lp-hero-trust {
  display: flex;
  align-items: center;
  gap: var(--tr-space-5);
}

.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tr-font-sm);
  color: var(--tr-text-secondary);
  font-weight: 500;
}

.lp-trust-icon {
  color: var(--tr-orange);
  flex-shrink: 0;
}

.lp-trust-sep {
  width: 1px;
  height: 16px;
  background: var(--tr-grey-200);
  flex-shrink: 0;
}

/* ─── Slideshow Panel ────────────────────────────────────────────────────── */
.lp-hero-right {
  height: 100%;
  /* min-height: calc(100dvh - 64px); */
  background: var(--tr-soft-white);
  border-left: 1px solid var(--tr-grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tr-space-8);
  position: relative;
}

.lp-slideshow {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--tr-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27, 58, 107, 0.14);
  background: var(--tr-white);
}

.lp-slide {
  transition: opacity 0.18s ease;
}

.lp-slide-out {
  opacity: 0;
}

.lp-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

.lp-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--tr-grey-200);
  color: var(--tr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--tr-transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.lp-slide-btn:hover {
  background: var(--tr-orange);
  color: var(--tr-white);
  border-color: var(--tr-orange);
}

.lp-slide-btn-prev {
  left: 10px;
}

.lp-slide-btn-next {
  right: 10px;
}

.lp-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.lp-slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  transition: all var(--tr-transition-fast);
  padding: 0;
}

.lp-slide-dot.active {
  background: var(--tr-orange);
  width: 20px;
  border-radius: var(--tr-radius-pill);
}

/* ─── CTA Strip ──────────────────────────────────────────────────────────── */
.lp-cta-strip {
  padding: var(--tr-space-12) var(--tr-space-10);
  background: var(--tr-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-6);
  flex-wrap: wrap;
}

.lp-cta-strip-heading {
  font-size: var(--tr-font-xl);
  font-weight: 800;
  color: var(--tr-white);
  letter-spacing: -0.3px;
}

.lp-cta-strip-heading span {
  color: var(--tr-orange);
}

.lp-cta-strip-sub {
  font-size: var(--tr-font-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--tr-space-2);
}

.lp-cta-strip-btn {
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.lp-footer {
  padding: var(--tr-space-5) var(--tr-space-10);
  background: var(--tr-navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-4);
  flex-wrap: wrap;
}

.lp-footer-left {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
}

.lp-footer-emblem {
  height: 24px;
  width: auto;
  opacity: 0.75;
}

.lp-footer-copy {
  font-size: var(--tr-font-xs);
  color: rgba(255, 255, 255, 0.35);
}

.lp-footer-links {
  display: flex;
  gap: var(--tr-space-6);
  list-style: none;
}

.lp-footer-links a {
  font-size: var(--tr-font-xs);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--tr-transition-fast);
}

.lp-footer-links a:hover {
  color: rgba(255, 255, 255, 0.70);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-nav {
    padding: 0 var(--tr-space-6);
  }

  .lp-nav-links {
    display: none;
  }

  .lp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lp-hero-left {
    order: 2;
    padding: var(--tr-space-8) var(--tr-space-6);
  }

  .lp-hero-right {
    order: 1;
    /* min-height: 300px; */
    border-left: none;
    border-bottom: 1px solid var(--tr-grey-100);
    padding: var(--tr-space-6);
  }

  .lp-hero-heading {
    font-size: 34px;
  }

  .lp-cta-strip,
  .lp-footer {
    padding: var(--tr-space-8) var(--tr-space-6);
  }
}

@media (max-width: 480px) {
  .lp-hero-heading {
    font-size: 28px;
  }

  .lp-how-heading {
    font-size: 26px;
  }

  .lp-hero-actions,
  .lp-how-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-hero-actions .tr-btn,
  .lp-how-actions .tr-btn {
    width: 100%;
    justify-content: center;
  }

  .lp-how-steps {
    grid-template-columns: 1fr;
  }

  .lp-how-step-card:last-child {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lp-how-step-card:last-child .lp-how-step-header {
    width: 100%;
    justify-content: space-between;
  }

  .lp-how-step-card {
    padding: 10px 12px;
  }

  .lp-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}/* ─── Trayrand Dedicated Loader Styles ────────────────────────────────────────── */

/* ── Container ───────────────────────────────────────────────────────────── */
.tr-loader-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  user-select: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.tr-loader-container * {
  box-sizing: border-box;
}

/* ── Fullscreen Overlay ───────────────────────────────────────────────────── */
.tr-loader-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: trLoaderFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tr-loader-backdrop-blur {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.tr-loader-backdrop-dim {
  background: rgba(15, 27, 48, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.tr-loader-backdrop-dim .tr-loader-text {
  color: #ffffff;
}

.tr-loader-backdrop-dim .tr-loader-subtext {
  color: rgba(255, 255, 255, 0.72);
}

.tr-loader-backdrop-solid {
  background: #ffffff;
}

.tr-loader-backdrop-transparent {
  background: transparent;
}

.tr-loader-fullscreen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 20px;
  box-shadow: 0 20px 48px -12px rgba(27, 58, 107, 0.16), 0 4px 16px rgba(0, 0, 0, 0.04);
  max-width: 380px;
  width: 90%;
  animation: trLoaderScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tr-loader-backdrop-dim .tr-loader-fullscreen-card {
  background: rgba(23, 37, 65, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.45);
}

/* ── Sizing Presets ──────────────────────────────────────────────────────── */
.tr-loader-size-xs { --tr-l-size: 28px; }
.tr-loader-size-sm { --tr-l-size: 48px; }
.tr-loader-size-md { --tr-l-size: 84px; }
.tr-loader-size-lg { --tr-l-size: 120px; }
.tr-loader-size-xl { --tr-l-size: 160px; }

/* ── Speed Presets ───────────────────────────────────────────────────────── */
.tr-loader-speed-slow   { --tr-l-speed: 1.6; }
.tr-loader-speed-normal { --tr-l-speed: 1.0; }
.tr-loader-speed-fast   { --tr-l-speed: 0.65; }

/* ── Stage / Core Wrapper ─────────────────────────────────────────────────── */
.tr-loader-stage {
  position: relative;
  width: var(--tr-l-size, 84px);
  height: var(--tr-l-size, 84px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Ambient Radial Glow ──────────────────────────────────────────────────── */
.tr-loader-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 130, 43, 0.28) 0%, rgba(27, 58, 107, 0.08) 55%, transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  animation: trGlowPulse calc(2.2s * var(--tr-l-speed, 1)) ease-in-out infinite alternate;
}

/* ── Kinetic Orbit Ring ───────────────────────────────────────────────────── */
.tr-loader-orbit-svg {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
  overflow: visible;
  animation: trRingRotate calc(3.4s * var(--tr-l-speed, 1)) linear infinite;
}

.tr-orbit-track {
  fill: none;
  stroke: rgba(229, 231, 235, 0.45);
  stroke-width: 2.2;
}

.tr-loader-backdrop-dim .tr-orbit-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.tr-orbit-arc-orange {
  fill: none;
  stroke: url(#trLoaderGradOrange);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 60 140;
  animation: trOrbitDash calc(2.2s * var(--tr-l-speed, 1)) ease-in-out infinite alternate;
}

.tr-orbit-arc-navy {
  fill: none;
  stroke: #1B3A6B;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 35 165;
  stroke-dashoffset: 90;
  opacity: 0.85;
}

.tr-orbit-spark {
  fill: #ee822b;
  filter: drop-shadow(0 0 4px #ee822b);
}

/* ── Steam Wisps (Rising from Cloche) ─────────────────────────────────────── */
.tr-loader-steam-svg {
  position: absolute;
  top: -24%;
  left: 36%;
  width: 50%;
  height: 40%;
  pointer-events: none;
  overflow: visible;
  z-index: 4;
}

.tr-steam-wisp {
  fill: none;
  stroke: #ee822b;
  stroke-linecap: round;
  opacity: 0;
}

.tr-steam-wisp-1 {
  stroke-width: 2;
  animation: trSteamFloat calc(1.7s * var(--tr-l-speed, 1)) ease-out infinite;
  animation-delay: 0s;
}

.tr-steam-wisp-2 {
  stroke-width: 2.4;
  animation: trSteamFloat calc(1.7s * var(--tr-l-speed, 1)) ease-out infinite;
  animation-delay: 0.55s;
}

.tr-steam-wisp-3 {
  stroke-width: 1.8;
  animation: trSteamFloat calc(1.7s * var(--tr-l-speed, 1)) ease-out infinite;
  animation-delay: 1.1s;
}

/* ── Speed Trails (Under Tray, shooting left) ─────────────────────────────── */
.tr-loader-speed-svg {
  position: absolute;
  bottom: 12%;
  left: -20%;
  width: 70%;
  height: 38%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.tr-speed-line {
  fill: none;
  stroke-linecap: round;
}

.tr-speed-line-1 {
  stroke: #ee822b;
  stroke-width: 2.6;
  animation: trSpeedStreak calc(0.9s * var(--tr-l-speed, 1)) cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0s;
}

.tr-speed-line-2 {
  stroke: #ee822b;
  stroke-width: 3.2;
  animation: trSpeedStreak calc(0.9s * var(--tr-l-speed, 1)) cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.28s;
}

.tr-speed-line-3 {
  stroke: #1B3A6B;
  stroke-width: 2.2;
  animation: trSpeedStreak calc(0.9s * var(--tr-l-speed, 1)) cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.52s;
}

/* ── Emblem Frame & Levitation ────────────────────────────────────────────── */
.tr-loader-emblem-wrap {
  position: relative;
  width: 82%;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: trEmblemFloat calc(2.1s * var(--tr-l-speed, 1)) ease-in-out infinite;
}

.tr-loader-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(27, 58, 107, 0.18));
}

/* Shimmer beam passing through the emblem */
.tr-loader-shimmer {
  position: absolute;
  inset: -10%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent 80%
  );
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: trShimmerSweep calc(2.6s * var(--tr-l-speed, 1)) ease-in-out infinite;
}

/* Ground Shadow ──────────────────────────────────────────────────────────── */
.tr-loader-shadow {
  position: absolute;
  bottom: -4%;
  left: 20%;
  width: 60%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(15, 27, 48, 0.24) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: trShadowScale calc(2.1s * var(--tr-l-speed, 1)) ease-in-out infinite;
}

.tr-loader-backdrop-dim .tr-loader-shadow {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
}

/* ── Typography & Label ───────────────────────────────────────────────────── */
.tr-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.tr-loader-size-xs .tr-loader-content,
.tr-loader-size-sm .tr-loader-content {
  margin-top: 8px;
}

.tr-loader-text {
  font-size: 14px;
  font-weight: 700;
  color: #1B3A6B;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  animation: trTextGlow calc(2.4s * var(--tr-l-speed, 1)) ease-in-out infinite alternate;
}

.tr-loader-subtext {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  margin: 0;
}

.tr-loader-dots {
  display: inline-flex;
  gap: 2px;
}

.tr-loader-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ee822b;
  display: inline-block;
  animation: trDotBounce 1.2s ease-in-out infinite;
}

.tr-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.tr-loader-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── Progress Bar ─────────────────────────────────────────────────────────── */
.tr-loader-progress-wrap {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.tr-loader-size-lg .tr-loader-progress-wrap,
.tr-loader-size-xl .tr-loader-progress-wrap {
  width: 200px;
}

.tr-loader-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(229, 231, 235, 0.7);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.tr-loader-backdrop-dim .tr-loader-progress-track {
  background: rgba(255, 255, 255, 0.15);
}

.tr-loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ee822b 0%, #ff9d42 60%, #1B3A6B 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(238, 130, 43, 0.45);
}

.tr-loader-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: #ee822b;
  letter-spacing: 0.04em;
}

/* ── Brand Wordmark Below ─────────────────────────────────────────────────── */
.tr-loader-brand {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-loader-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #1B3A6B;
  letter-spacing: -0.03em;
}

.tr-loader-brand-name span {
  color: #ee822b;
}

/* ── Variant: Cloche Lift ─────────────────────────────────────────────────── */
.tr-loader-variant-cloche .tr-loader-emblem-wrap {
  animation: trClocheBounce calc(1.8s * var(--tr-l-speed, 1)) cubic-bezier(0.2, 0.8, 0.3, 1.2) infinite;
}

/* ── Variant: Speed Sprint ────────────────────────────────────────────────── */
.tr-loader-variant-speed .tr-loader-emblem-wrap {
  animation: trSpeedSprint calc(1.3s * var(--tr-l-speed, 1)) ease-in-out infinite;
}

.tr-loader-variant-speed .tr-speed-line {
  stroke-width: 3.8;
}

/* ── Variant: Minimal Spinner ─────────────────────────────────────────────── */
.tr-loader-variant-minimal .tr-loader-glow,
.tr-loader-variant-minimal .tr-loader-steam-svg,
.tr-loader-variant-minimal .tr-loader-speed-svg,
.tr-loader-variant-minimal .tr-loader-shadow {
  display: none;
}

.tr-loader-variant-minimal .tr-orbit-arc-orange {
  stroke-width: 3.5;
  stroke-dasharray: 90 90;
}

.tr-loader-variant-minimal .tr-loader-emblem-wrap {
  animation: none;
  width: 65%;
  height: 65%;
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes trLoaderFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes trLoaderScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes trGlowPulse {
  0% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes trRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes trOrbitDash {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 80;
  }
}

@keyframes trEmblemFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.2deg);
  }
}

@keyframes trShadowScale {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.28;
  }
}

@keyframes trSteamFloat {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.7) translateX(-2px);
  }
  30% {
    opacity: 0.75;
  }
  70% {
    opacity: 0.55;
    transform: translateY(-8px) scale(1.05) translateX(2px);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.3) translateX(-3px);
  }
}

@keyframes trSpeedStreak {
  0% {
    opacity: 0;
    stroke-dashoffset: 40;
    transform: translateX(12px) scaleX(0.6);
  }
  30% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.7;
    transform: translateX(-16px) scaleX(1.3);
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -40;
    transform: translateX(-28px) scaleX(1.5);
  }
}

@keyframes trShimmerSweep {
  0% {
    transform: translateX(-160%) skewX(-20deg);
  }
  40%, 100% {
    transform: translateX(160%) skewX(-20deg);
  }
}

@keyframes trClocheBounce {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  35% {
    transform: translateY(-9px) rotate(-2deg);
  }
  55% {
    transform: translateY(2px) rotate(1deg);
  }
  70% {
    transform: translateY(-3px) rotate(0);
  }
}

@keyframes trSpeedSprint {
  0%, 100% {
    transform: translateX(0) skewX(-2deg);
  }
  25% {
    transform: translateX(3px) skewX(-4deg) translateY(-2px);
  }
  50% {
    transform: translateX(-4px) skewX(2deg) translateY(-5px);
  }
  75% {
    transform: translateX(1px) skewX(-3deg) translateY(0);
  }
}

@keyframes trTextGlow {
  0% {
    opacity: 0.88;
  }
  100% {
    opacity: 1;
    color: #ee822b;
  }
}

@keyframes trDotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ── Exit Transitions for Smooth Dismissal ───────────────────────────────── */
.tr-loader-exiting {
  opacity: 0 !important;
  transform: scale(0.92) !important;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}

.tr-loader-fullscreen.tr-loader-fullscreen-exiting {
  opacity: 0 !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}
/* ─── Trayrand Dedicated Empty State Component Styles ────────────────────────── */

.tr-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  padding: 40px 24px;
  position: relative;
  user-select: none;
  background-color: var(--tr-white);
  border-radius: var(--tr-radius-md);
}

.tr-empty-state * {
  box-sizing: border-box;
}

/* ── Bordered Card Mode ──────────────────────────────────────────────────── */
.tr-empty-bordered {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 27, 48, 0.04);
  padding: 48px 24px;
}

/* ── Size Variants ───────────────────────────────────────────────────────── */
/* Small (tight cards, popovers, table cells) */
.tr-empty-size-sm {
  padding: 24px 16px;
}
.tr-empty-size-sm .tr-empty-illustration-wrap {
  width: 120px;
  height: 76px;
  margin-bottom: 12px;
}
.tr-empty-size-sm .tr-empty-title {
  font-size: 14.5px;
  margin-bottom: 4px;
}
.tr-empty-size-sm .tr-empty-desc {
  font-size: 12.5px;
  max-width: 280px;
  margin-bottom: 14px;
}

/* Medium (Standard default) */
.tr-empty-size-md {
  padding: 40px 24px;
}
.tr-empty-size-md .tr-empty-illustration-wrap {
  /* width: 180px; */
  height: 100px;
  margin-bottom: 18px;
}
.tr-empty-size-md .tr-empty-title {
  font-size: 17.5px;
  margin-bottom: 6px;
}
.tr-empty-size-md .tr-empty-desc {
  font-size: 13.5px;
  max-width: 380px;
  margin-bottom: 18px;
}

/* Large (Full page views, hero empty states) */
.tr-empty-size-lg {
  padding: 56px 32px;
}
.tr-empty-size-lg .tr-empty-illustration-wrap {
  width: 230px;
  height: 180px;
  margin-bottom: 24px;
}
.tr-empty-size-lg .tr-empty-title {
  font-size: 21px;
  margin-bottom: 8px;
}
.tr-empty-size-lg .tr-empty-desc {
  font-size: 14.5px;
  max-width: 440px;
  margin-bottom: 22px;
}

/* Compact override */
.tr-empty-compact {
  padding: 16px 12px !important;
}
.tr-empty-compact .tr-empty-illustration-wrap {
  width: 90px !important;
  height: 72px !important;
  margin-bottom: 8px !important;
}
.tr-empty-compact .tr-empty-title {
  font-size: 13.5px !important;
  margin-bottom: 3px !important;
}
.tr-empty-compact .tr-empty-desc {
  font-size: 11.5px !important;
  margin-bottom: 10px !important;
  max-width: 240px !important;
}

/* ── Illustration Container ──────────────────────────────────────────────── */
.tr-empty-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.tr-empty-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Custom Image element fallback */
.tr-empty-custom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Custom Icon Circle */
.tr-empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFF0E6;
  border: 1.5px solid #FFD9C0;
  color: #ee822b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(238, 130, 43, 0.12);
}

/* ── Micro-Animations ────────────────────────────────────────────────────── */
.tr-empty-animated .tr-anim-floating {
  animation: trEmptyBob 3.4s ease-in-out infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-floating-slow {
  animation: trEmptyBobSlow 4.2s ease-in-out infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-sparkle-1 {
  animation: trEmptySparkle 2.6s ease-in-out infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-sparkle-2 {
  animation: trEmptySparkle 2.6s ease-in-out 0.9s infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-sparkle-3 {
  animation: trEmptySparkle 2.6s ease-in-out 1.7s infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-shadow {
  animation: trEmptyShadowScale 3.4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes trEmptyBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes trEmptyBobSlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
}

@keyframes trEmptySparkle {
  0%, 100% {
    transform: scale(0.65) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15) rotate(18deg);
    opacity: 1;
  }
}

@keyframes trEmptyShadowScale {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.16;
  }
}

/* ── Content & Typography ────────────────────────────────────────────────── */
.tr-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tr-empty-title {
  font-weight: 800;
  color: #1B3A6B;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

.tr-empty-desc {
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ── Action Buttons Container ────────────────────────────────────────────── */
.tr-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Primary Empty Action Button */
.tr-empty-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ee822b;
  color: #ffffff;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(238, 130, 43, 0.25);
  transition: all 0.18s ease;
}

.tr-empty-btn-primary:hover {
  background: #d96b14;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 130, 43, 0.35);
}

.tr-empty-btn-primary:active {
  transform: translateY(0);
}

/* Secondary Empty Action Button */
.tr-empty-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.tr-empty-btn-secondary:hover {
  border-color: #ee822b;
  color: #ee822b;
  background: #fff8f2;
}

.tr-empty-btn-secondary:active {
  transform: translateY(0);
}

/* Link-style secondary */
.tr-empty-btn-link {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.tr-empty-btn-link:hover {
  color: #ee822b;
}

/* Small button overrides */
.tr-empty-size-sm .tr-empty-btn-primary,
.tr-empty-size-sm .tr-empty-btn-secondary,
.tr-empty-compact .tr-empty-btn-primary,
.tr-empty-compact .tr-empty-btn-secondary {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 7px;
}

/* ── Custom Injected Children ────────────────────────────────────────────── */
.tr-empty-extra {
  margin-top: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tr-tray-floating-pill {
  position: fixed;
  bottom: 1.5rem;
  right: 0px;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: var(--tr-space-2);
  background: linear-gradient(135deg, #ff6b00 0%, #e05d00 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--tr-radius-md);
  box-shadow: 0 10px 25px -5px rgba(255, 107, 0, 0.5), 0 8px 10px -6px rgba(255, 107, 0, 0.3);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.tr-tray-floating-pill:hover{
  scale: 1.1;
}

.tr-tray-pill-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tr-tray-pill-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--tr-radius-md);
  font-size: 0.8rem;
  font-weight: 700;
}

.tr-tray-pill-price {
  font-weight: 700;
  font-size: 1rem;
}

.tr-tray-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  animation: tr-fade-in 0.2s ease-out;
}

@keyframes tr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tr-tray-drawer {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  animation: tr-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes tr-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 640px) {
  .tr-tray-drawer {
    max-width: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    margin-top: auto;
    height: 92vh;
    animation: tr-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes tr-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

.tr-tray-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-tray-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tr-tray-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.tr-tray-count-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.tr-tray-close-btn {
  background: none;
  border: none;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tr-tray-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tr-tray-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tr-tray-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  color: #64748b;
}

.tr-tray-empty-icon {
  width: 72px;
  height: 72px;
  background: #fff7ed;
  color: #ff6b00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tr-tray-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.tr-tray-empty-sub {
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
}

.tr-tray-multivendor-banner {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #9a3412;
  font-size: 0.85rem;
  line-height: 1.4;
}

.tr-tray-banner-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tr-tray-vendor-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tr-tray-vendor-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f1f5f9;
}

.tr-tray-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
}

.tr-tray-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.tr-tray-item-img {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.tr-tray-item-details {
  min-width: 0;
  flex: 1;
}

.tr-tray-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-tray-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff6b00;
}

.tr-tray-stepper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.2rem 0.4rem;
}

.tr-tray-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tr-tray-step-btn:hover {
  background: #ff8e3d;
  color: #ffffff;
}

.tr-tray-step-btn.delete:hover {
  background: #ff2c2cd9;
  color: #ffffff;
}

.tr-tray-step-count {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.tr-tray-section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tr-tray-section-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin: 0;
}

.tr-tray-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tr-tray-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.tr-tray-select,
.tr-tray-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.tr-tray-select:focus,
.tr-tray-input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.tr-tray-guest-notice {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.tr-tray-summary-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tr-tray-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #64748b;
}

.tr-tray-summary-row.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.tr-tray-summary-notice {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.tr-tray-summary-row.highlight {
  color: #ea580c;
  font-weight: 600;
}

.tr-tray-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tr-tray-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--tr-space-2);
  transition: all 0.2s ease;
}

.tr-tray-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 107, 0, 0.45);
}

.tr-tray-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tr-tray-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: 0.35rem;
}

.tr-tray-clear-btn:hover {
  color: #ef4444;
}

@media screen and (max-width: 768px) {
  .tr-tray-floating-pill {
    bottom: 4.5rem;
    transform: translateX(0);
    right: var(--tr-space-6);
    border-radius: var(--tr-radius-sm) 0 0 var(--tr-radius-sm);
  }
}

/* ─── Sticky Sidebar Panel Mode (Desktop) ────────────────────────────────── */
.tr-tray-sidebar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.tr-tray-sidebar-panel .tr-tray-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.tr-tray-sidebar-panel .tr-tray-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.tr-tray-sidebar-panel .tr-tray-footer {
  padding: 1.15rem 1.35rem 2.0rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}



/* ─────────────────────────────────────────────────────────────────────────────
   HomePage Dedicated Styles (HomePage.css)
   Contains strictly elements unique to the storefront / menu browsing view:
   - Filter banner
   - Categories horizontal scroll chips
   - Vendor grid & store cards
   - Meal grid & dish cards
   - Pagination extra vendor tags
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Active Vendor Filter Banner ─────────────────────────────────────────── */
.home-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tr-navy-light, #EFF6FF);
  border: 1px solid #C9DCF3;
  border-radius: var(--tr-radius-md, 10px);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--tr-navy-dark, #0F2140);
}

.home-filter-clear-btn {
  background: transparent;
  border: none;
  color: var(--tr-orange-dark, #D96200);
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
}

.home-filter-clear-btn:hover {
  text-decoration: underline;
}

/* ─── Horizontal Categories Scroll ────────────────────────────────────────── */
.home-categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.home-category-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  background: var(--tr-white, #FFFFFF);
  color: var(--tr-text-secondary, #475569);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.home-category-chip:hover {
  border-color: var(--tr-grey-300, #CBD5E1);
  color: var(--tr-text-primary, #0F172A);
}

.home-category-chip.active {
  background: var(--tr-navy, #1B3A6B);
  color: var(--tr-white, #FFFFFF);
  border-color: var(--tr-navy, #1B3A6B);
}

/* ─── Vendors Grid & Cards ────────────────────────────────────────────────── */
.home-vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--tr-space-5, 20px);
}

.home-vendor-card {
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--tr-shadow-xs);
  transition: all var(--tr-transition-fast, 0.15s ease);
  display: flex;
  flex-direction: column;
}

.home-vendor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tr-shadow-md);
  border-color: #D6DEE8;
}

.home-vendor-banner-wrap {
  position: relative;
  height: 125px;
  background: var(--tr-grey-100, #F1F5F9);
  overflow: hidden;
}

.home-vendor-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-vendor-card:hover .home-vendor-banner-img {
  transform: scale(1.04);
}

.home-vendor-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 60%);
}

.home-vendor-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
}

.home-vendor-status-open {
  color: var(--tr-success, #16A34A);
}

.home-vendor-status-busy {
  color: var(--tr-warning, #D97706);
}

.home-vendor-status-closed {
  color: var(--tr-error, #DC2626);
}

.home-vendor-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.home-vendor-body {
  padding: var(--tr-space-4, 16px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-vendor-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: -30px;
  margin-bottom: 10px;
}

.home-vendor-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--tr-radius-md, 10px);
  border: 2px solid var(--tr-white, #FFFFFF);
  background: var(--tr-white, #FFFFFF);
  box-shadow: var(--tr-shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}

.home-vendor-info {
  margin-top: 26px;
  flex: 1;
}

.home-vendor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  margin: 0 0 2px;
  line-height: 1.3;
}

.home-vendor-desc {
  font-size: 12px;
  color: var(--tr-text-secondary, #475569);
  line-height: 1.4;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-vendor-meta {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3, 12px);
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--tr-text-secondary, #475569);
}

.home-vendor-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-vendor-pickup {
  font-size: 11px;
  color: var(--tr-text-muted, #64748B);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--tr-space-4, 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-vendor-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--tr-grey-100, #F1F5F9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-vendor-items-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--tr-text-secondary, #475569);
}

/* ─── Meals Grid & Cards ──────────────────────────────────────────────────── */
.home-meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--tr-space-5, 20px);
}

.home-meal-card {
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--tr-shadow-xs);
  transition: all var(--tr-transition-fast, 0.15s ease);
  display: flex;
  flex-direction: column;
}

.home-meal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tr-shadow-md);
  border-color: #D6DEE8;
}

.home-meal-img-wrap {
  position: relative;
  height: 150px;
  background: var(--tr-grey-100, #F1F5F9);
  overflow: hidden;
}

.home-meal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-meal-card:hover .home-meal-img {
  transform: scale(1.05);
}

.home-meal-prep-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--tr-white, #FFFFFF);
  font-size: 10px;
  font-weight: 600;
}

.home-meal-body {
  padding: var(--tr-space-3, 12px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-meal-vendor-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--tr-orange-dark, #D96200);
  margin-bottom: 2px;
  text-decoration: none;
}

.home-meal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  margin: 0 0 4px;
  line-height: 1.3;
}

.home-meal-desc {
  font-size: 12px;
  color: var(--tr-text-secondary, #475569);
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-meal-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--tr-grey-100, #F1F5F9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-meal-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
}

.home-meal-card-actions {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
}

.home-meal-share-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Pagination Extra Tags ──────────────────────────────────────────────── */
.home-pagination-vendor-tag {
  color: var(--tr-text-secondary, #475569);
}

.home-pagination-vendor-tag strong {
  color: var(--tr-orange, #ea580c);
}

.home-pagination-size-label {
  font-weight: 500;
}/* ─── Native App Shell ─────────────────────────────────────────────────────────── */
.tr-app-shell {
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tr-soft-white);
  color: var(--tr-text-primary);
  font-family: var(--tr-font-family);
  position: relative;
}

/* ─── Top App Header ───────────────────────────────────────────────────────── */
.tr-app-header {
  height: 62px;
  background: var(--tr-white);
  border-bottom: 1px solid var(--tr-grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--tr-space-6);
  flex-shrink: 0;
  z-index: 500;
  position: relative;
}

.tr-app-header-left {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
}

.tr-drawer-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--tr-radius-md);
  color: var(--tr-navy);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-drawer-toggle-btn:hover {
  background: var(--tr-grey-100);
  border-color: var(--tr-grey-200);
}

.tr-app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.tr-app-emblem {
  height: 28px;
  width: auto;
}

.tr-app-wordmark {
  font-size: 19px;
  font-weight: 800;
  color: var(--tr-navy);
  letter-spacing: -0.03em;
}

.tr-app-wordmark span {
  color: var(--tr-orange);
}

.tr-campus-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
  border: 1px solid var(--tr-orange-mid);
  border-radius: var(--tr-radius-pill);
  font-size: var(--tr-font-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr-transition-fast);
  white-space: nowrap;
}

.tr-campus-pill:hover {
  background: #FFE5D4;
}

.tr-campus-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tr-orange);
}

.tr-campus-name-short {
  display: none;
}

.tr-campus-name-full {
  display: inline;
}

.tr-campus-chevron {
  flex-shrink: 0;
}

/* ─── Header Right Actions ─────────────────────────────────────────────────── */
.tr-app-header-right {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
}

.tr-notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-navy);
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-notif-btn:hover {
  background: var(--tr-grey-100);
  color: var(--tr-orange);
}

.tr-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--tr-error);
  color: var(--tr-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--tr-white);
}

/* ─── Desktop Header Tray / Cart Button ──────────────────────────────────── */
.tr-header-tray-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-navy);
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-header-tray-btn:hover {
  background: var(--tr-grey-100);
  color: var(--tr-orange);
  border-color: #D6DEE8;
}

.tr-header-tray-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--tr-orange);
  color: var(--tr-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--tr-white);
  box-shadow: 0 2px 4px rgba(255, 107, 0, 0.25);
}

/* ─── Dropdown Backdrop & Body Scroll Lock ─────────────────────────────────── */
.tr-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--tr-z-overlay) - 100);
  background: rgba(15, 23, 42, 0.22);
  touch-action: none;
  animation: tr-fade-in 0.15s ease forwards;
}

body.tr-scroll-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

body.tr-scroll-locked .tr-app-body {
  overflow: hidden !important;
  touch-action: none !important;
}

/* ─── Notification Dropdown ────────────────────────────────────────────────── */
.tr-notif-wrap {
  position: relative;
}

.tr-notif-btn.active {
  background: var(--tr-orange-light);
  border-color: var(--tr-orange-mid);
  color: var(--tr-orange);
}

.tr-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-xl);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: tr-scale-in 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

.tr-notif-dropdown-header {
  padding: 12px 14px;
  background: var(--tr-grey-50);
  border-bottom: 1px solid var(--tr-grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-notif-dropdown-title {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: var(--tr-navy);
}

.tr-notif-count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFE8D6;
  color: var(--tr-orange-dark);
}

.tr-notif-dropdown-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #FFFDF9;
  border-bottom: 1px solid var(--tr-grey-200);
  font-size: 11px;
}

.tr-notif-browser-status-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tr-text-secondary);
  font-weight: 500;
}

.tr-notif-browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tr-notif-browser-btn-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--tr-radius-pill);
  border: 1px solid var(--tr-grey-300);
  background: var(--tr-white);
  color: var(--tr-navy);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-notif-browser-btn-pill:hover {
  background: var(--tr-grey-100);
  color: var(--tr-orange);
}

.tr-notif-browser-btn-enable {
  background: var(--tr-orange);
  border-color: var(--tr-orange);
  color: #fff;
}

.tr-notif-browser-btn-enable:hover {
  background: #ea580c;
  color: #fff;
}

.tr-notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--tr-orange);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--tr-radius-sm);
  transition: all var(--tr-transition-fast);
}

.tr-notif-mark-all-btn:hover {
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
}

.tr-notif-list {
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.tr-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tr-grey-100);
  background: var(--tr-white);
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--tr-transition-fast);
  position: relative;
  width: 100%;
}

.tr-notif-item:last-child {
  border-bottom: none;
}

.tr-notif-item:hover {
  background: var(--tr-grey-50);
}

.tr-notif-item.unread {
  background: #FFFDF9;
}

.tr-notif-item.unread:hover {
  background: #FFF8EE;
}

.tr-notif-icon-col {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--tr-navy-light);
  color: var(--tr-navy);
}

.tr-notif-icon-col.order_created,
.tr-notif-icon-col.order_status,
.tr-notif-icon-col.order_dispatched,
.tr-notif-icon-col.order_delivered {
  background: var(--tr-orange-light);
  color: var(--tr-orange);
}

.tr-notif-icon-col.referral_earned,
.tr-notif-icon-col.reward {
  background: #E8F5E9;
  color: #2E7D32;
}

.tr-notif-content-col {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.tr-notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.tr-notif-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-notif-item-time {
  font-size: 10.5px;
  color: var(--tr-text-muted);
  flex-shrink: 0;
  font-weight: 500;
}

.tr-notif-item-body {
  font-size: 11.5px;
  color: var(--tr-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.tr-notif-unread-dot {
  position: absolute;
  top: 15px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tr-orange);
  box-shadow: 0 0 0 2px var(--tr-white);
}

.tr-notif-empty {
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tr-notif-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tr-grey-100);
  color: var(--tr-grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.tr-notif-empty-title {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: var(--tr-navy);
  margin-bottom: 3px;
}

.tr-notif-empty-desc {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-muted);
}

.tr-notif-loading {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tr-notif-skeleton-row {
  height: 48px;
  border-radius: var(--tr-radius-md);
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: tr-skeleton-shimmer 1.5s infinite;
}

@keyframes tr-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.tr-notif-dropdown-footer {
  padding: 8px 12px;
  background: var(--tr-grey-50);
  border-top: 1px solid var(--tr-grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-notif-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tr-navy);
  text-decoration: none;
  transition: color var(--tr-transition-fast);
  padding: 4px 8px;
  border-radius: var(--tr-radius-sm);
}

.tr-notif-footer-link:hover {
  color: var(--tr-orange);
  background: var(--tr-grey-100);
}

/* ─── User Chip & Dropdown ─────────────────────────────────────────────────── */
.tr-user-chip-wrap {
  position: relative;
}

.tr-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: var(--tr-navy-light);
  border: 1px solid #D6E2F2;
  border-radius: var(--tr-radius-pill);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-user-chip:hover {
  background: #DBE5F5;
}

.tr-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tr-navy);
  color: var(--tr-white);
  font-size: var(--tr-font-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.tr-user-name {
  font-size: var(--tr-font-sm);
  font-weight: 600;
  color: var(--tr-navy);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-lg);
  padding: var(--tr-space-2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: tr-scale-in 0.15s ease forwards;
}

.tr-dropdown-header {
  padding: var(--tr-space-3);
  border-bottom: 1px solid var(--tr-grey-100);
  margin-bottom: var(--tr-space-1);
}

.tr-dropdown-user-fullname {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: var(--tr-text-primary);
  margin-bottom: 2px;
}

.tr-dropdown-user-sub {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-muted);
}

.tr-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: var(--tr-font-sm);
  font-weight: 500;
  color: var(--tr-text-primary);
  text-decoration: none;
  border-radius: var(--tr-radius-sm);
  transition: all var(--tr-transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.tr-dropdown-item:hover {
  background: var(--tr-grey-50);
  color: var(--tr-orange);
}

.tr-dropdown-divider {
  height: 1px;
  background: var(--tr-grey-200);
  margin: 6px 0;
  border: none;
}

.tr-dropdown-logout {
  color: var(--tr-error) !important;
}

.tr-dropdown-logout:hover {
  background: var(--tr-error-light) !important;
}

/* ─── Scrollable Native App Body ───────────────────────────────────────────── */
.tr-app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.tr-app-content {
  flex: 1;
  /* max-width: 1180px; */
  width: 100%;
  margin: 0 auto;
  /* padding: var(--tr-space-6) var(--tr-space-6) 90px; */
  padding: var(--tr-space-6);
  transition: max-width 0.25s ease;
}

.tr-general-footer {
  padding: var(--tr-space-2);
  text-align: center;
  font-size: var(--tr-font-sm);
  color: var(--tr-text-muted);
  border-top: 1px solid var(--tr-grey-200);
  background: var(--tr-white);
}

.tr-app-content:has(.portal-drawer-col),
.tr-app-content:has(.tr-tray-page) {
  max-width: 1320px;
}

@media screen and (min-width: 1240px) {
  .tr-app-content:has(.portal-drawer-col),
  .tr-app-content:has(.tr-tray-page) {
    max-width: 1380px;
  }
}

/* ─── Mobile Bottom Nav Bar ────────────────────────────────────────────────── */
.tr-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--tr-grey-200);
  z-index: var(--tr-z-nav);
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.tr-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--tr-grey-500);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--tr-transition-fast);
}

.tr-bottom-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 28px;
  height: 3px;
  background: var(--tr-orange);
  border-radius: 0 0 3px 3px;
  transition: transform var(--tr-transition-fast);
}

.tr-bottom-tab.active {
  color: var(--tr-orange);
  font-weight: 700;
}

.tr-bottom-tab.active::before {
  transform: translateX(-50%) scaleX(1);
}

.tr-bottom-tab.active svg {
  stroke-width: 2.4;
}

.tr-bottom-tab-label {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.tr-bottom-tab-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 16px);
  background: var(--tr-error);
  color: var(--tr-white);
  font-size: 9px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--tr-white);
}

/* ─── Side Drawer ──────────────────────────────────────────────────────────── */
.tr-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: var(--tr-z-overlay);
  display: flex;
  animation: tr-fade-in 0.2s ease forwards;
}

.tr-drawer {
  width: 310px;
  max-width: 86vw;
  height: 100%;
  background: var(--tr-white);
  box-shadow: var(--tr-shadow-xl);
  display: flex;
  flex-direction: column;
  animation: tr-slide-right 0.25s ease forwards;
  overflow-y: auto;
}

.tr-drawer-header {
  padding: var(--tr-space-5);
  background: var(--tr-grey-50);
  border-bottom: 1px solid var(--tr-grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tr-navy);
  color: var(--tr-white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-drawer-name {
  font-size: var(--tr-font-base);
  font-weight: 700;
  color: var(--tr-text-primary);
}

.tr-drawer-role {
  font-size: var(--tr-font-xs);
  color: var(--tr-orange);
  font-weight: 600;
  text-transform: uppercase;
}

.tr-drawer-guest {
  padding: var(--tr-space-4);
  background: var(--tr-orange-light);
  border-radius: var(--tr-radius-md);
  margin: var(--tr-space-4);
}

.tr-drawer-guest-title {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: var(--tr-orange-dark);
  margin-bottom: 4px;
}

.tr-drawer-guest-desc {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-secondary);
  margin-bottom: 12px;
}

.tr-drawer-nav {
  padding: var(--tr-space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tr-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--tr-radius-md);
  font-size: var(--tr-font-base);
  font-weight: 500;
  color: var(--tr-text-primary);
  text-decoration: none;
  transition: all var(--tr-transition-fast);
}

.tr-drawer-link:hover,
.tr-drawer-link.active {
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
  font-weight: 600;
}

.tr-drawer-footer {
  padding: var(--tr-space-4);
  border-top: 1px solid var(--tr-grey-200);
  font-size: var(--tr-font-xs);
  color: var(--tr-text-muted);
  text-align: center;
}

@media screen and (max-width: 768px) {
  .tr-app-content {
    padding: 10px 10px 100px;
  }

  .tr-app-content:has(.tr-tray-floating-pill.shown) {
    padding-bottom: 120px;
  }

  .tr-desktop-sidebar {
    display: none !important;
  }

  .tr-bottom-nav {
    display: grid;
  }

  /* ── Hide Mobile Bottom Nav when Any Drawer or Modal is Active ───────────── */
  body:has(.portal-drawer-col) .tr-bottom-nav,
  body:has(.tr-tray-overlay) .tr-bottom-nav,
  body.tr-drawer-active .tr-bottom-nav {
    display: none !important;
  }

  .tr-desktop-only {
    display: none !important;
  }

  .tr-app-header {
    padding: 0 12px;
  }

  /* ── Mobile Header Left: Hamburger, Text Wordmark, and Short Name Pill ── */
  .tr-app-header-left {
    gap: 8px;
    align-items: center;
  }

  /* Hide Trayrand logo emblem on mobile, keeping just the text */
  .tr-app-logo .tr-app-emblem {
    display: none !important;
  }

  .tr-app-wordmark {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-right: 2px;
  }

  /* Service area pill: short_name only, no dot or location icons in front */
  .tr-app-header .tr-campus-pill {
    padding: 4px 10px;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    background: #FFF0E6;
    color: #ee822b;
    border: 1px solid #FFD9C0;
    border-radius: var(--tr-radius-pill);
    box-shadow: none;
  }

  .tr-app-header .tr-campus-pill:hover {
    background: #FFE5D4;
  }

  .tr-app-header .tr-campus-pill .tr-campus-pill-dot,
  .tr-app-header .tr-campus-pill .tr-campus-pill-icon {
    display: none !important;
  }

  .tr-app-header .tr-campus-pill .tr-campus-name-full {
    display: none !important;
  }

  .tr-app-header .tr-campus-pill .tr-campus-name-short {
    display: inline !important;
    font-weight: 700;
    color: #ee822b;
    letter-spacing: 0.02em;
  }

  .tr-app-header .tr-campus-pill .tr-campus-chevron {
    color: #ee822b;
    width: 12px;
    height: 12px;
    stroke-width: 2.4;
  }

  .tr-app-header-right {
    gap: 8px;
    align-items: center;
  }

  .tr-notif-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border-color: #e2e8f0;
  }

  /* Hide the user's name on mobile, showing avatar circle and chevron down */
  .tr-user-chip {
    padding: 3px 8px 3px 3px;
    gap: 4px;
    background: #EEF4FC;
    border: 1px solid #D6E2F2;
    border-radius: var(--tr-radius-pill);
  }

  .tr-user-chip:hover {
    background: #E2ECF9;
  }

  .tr-user-chip .tr-user-name {
    display: none !important;
  }

  .tr-user-chip .tr-user-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
    background: var(--tr-navy);
    color: #ffffff;
  }

  .tr-user-chip .tr-user-chevron {
    width: 13px;
    height: 13px;
    color: var(--tr-navy);
    stroke-width: 2.2;
  }

  /* ── Mobile Dropdowns: never exceed screen width ── */
  .tr-notif-dropdown,
  .tr-user-dropdown {
    position: fixed !important;
    top: 66px !important;
    right: 12px !important;
    left: auto !important;
    width: 340px !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 380px) {

  .tr-notif-dropdown,
  .tr-user-dropdown {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }

  /* ── Mobile Header Right: Bell and User Chip (Tray hidden on mobile, very small screen-sized mobile) ── */
  .tr-header-tray-btn {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  .tr-mobile-only {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  .tr-drawer-toggle-btn {
    display: none !important;
  }
}

.tr-app-main-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.tr-desktop-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--tr-white);
  border-right: 1px solid var(--tr-grey-200);
  height: 100%;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  flex-shrink: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.tr-desktop-sidebar.expanded {
  width: 240px;
}

.tr-desktop-sidebar.collapsed {
  width: 72px;
}

.tr-sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--tr-radius-md);
  border: 1px solid var(--tr-grey-200);
  background: var(--tr-grey-50);
  color: var(--tr-navy);
  cursor: pointer;
  margin: var(--tr-space-3) var(--tr-space-3) var(--tr-space-2);
  align-self: flex-end;
  transition: all var(--tr-transition-fast);
}

.tr-desktop-sidebar.collapsed .tr-sidebar-toggle-btn {
  align-self: center;
  margin: var(--tr-space-3) auto var(--tr-space-2);
}

.tr-sidebar-toggle-btn:hover {
  background: var(--tr-grey-100);
  color: var(--tr-orange);
}

.tr-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 var(--tr-space-2);
  flex: 1;
}

.tr-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--tr-radius-md);
  font-size: var(--tr-font-sm);
  font-weight: 500;
  color: var(--tr-text-primary);
  text-decoration: none;
  transition: all var(--tr-transition-fast);
  white-space: nowrap;
}

.tr-desktop-sidebar.collapsed .tr-sidebar-link {
  justify-content: center;
  padding: 12px 0;
}

.tr-sidebar-link:hover,
.tr-sidebar-link.active {
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
  font-weight: 600;
}

.tr-sidebar-icon {
  flex-shrink: 0;
}

.tr-sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-desktop-sidebar.collapsed .tr-sidebar-label,
.tr-desktop-sidebar.collapsed .tr-sidebar-badge {
  display: none;
}

.tr-sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--tr-radius-pill);
  background: var(--tr-orange-light);
  color: var(--tr-orange-dark);
}

.tr-sidebar-area-box {
  margin: var(--tr-space-2);
  padding: var(--tr-space-3);
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-desktop-sidebar.collapsed .tr-sidebar-area-box {
  padding: 8px 4px;
  align-items: center;
  text-align: center;
}

.tr-sidebar-area-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--tr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tr-desktop-sidebar.collapsed .tr-sidebar-area-label {
  display: none;
}

.tr-sidebar-area-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--tr-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-sidebar-switch-btn {
  background: transparent;
  border: 1px solid var(--tr-orange-mid);
  color: var(--tr-orange-dark);
  border-radius: var(--tr-radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: all var(--tr-transition-fast);
}

.tr-sidebar-switch-btn:hover {
  background: var(--tr-orange-light);
}

.tr-desktop-sidebar.collapsed .tr-sidebar-switch-btn {
  padding: 4px;
  font-size: 10px;
}

/* ─── Universal Service Area Selector Modal ─────────────────────────────────── */
.tr-area-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tr-space-4);
  z-index: var(--tr-z-modal);
  animation: tr-fade-in 0.18s ease forwards;
}

.tr-area-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--tr-white);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tr-scale-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tr-area-modal-header {
  padding: var(--tr-space-4) var(--tr-space-5);
  background: var(--tr-grey-50);
  border-bottom: 1px solid var(--tr-grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-area-modal-title {
  font-size: var(--tr-font-base);
  font-weight: 700;
  color: var(--tr-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-area-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--tr-grey-500);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--tr-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-transition-fast);
}

.tr-area-modal-close-btn:hover {
  background: var(--tr-grey-200);
  color: var(--tr-navy);
}

.tr-area-modal-body {
  padding: var(--tr-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3);
  max-height: 70vh;
  overflow-y: auto;
}

.tr-area-modal-desc {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-secondary);
  line-height: 1.5;
  margin: 0 0 4px;
}

.tr-switch-area-alert-box {
  padding: var(--tr-space-3) var(--tr-space-4);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--tr-radius-md);
  font-size: var(--tr-font-xs);
  color: #92400e;
  line-height: 1.5;
}

.tr-switch-area-cta {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tr-area-option-card {
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: var(--tr-space-4);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tr-space-3);
  background: var(--tr-white);
  text-align: left;
  width: 100%;
}

.tr-area-option-card:hover {
  border-color: var(--tr-orange);
  background: #FFFDFB;
  box-shadow: var(--tr-shadow-sm);
}

.tr-area-option-card.selected {
  border-color: var(--tr-orange);
  background: var(--tr-orange-light);
}

.tr-area-option-title {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: var(--tr-navy);
  margin-bottom: 2px;
}

.tr-area-option-sub {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-secondary);
  line-height: 1.4;
}

.tr-area-option-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.tr-area-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tr-navy-light);
  color: var(--tr-navy);
}

.tr-area-closest-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tr-success-light);
  color: var(--tr-success);
}

.tr-ml-auto {
  margin-left: auto;
}

.tr-mt-auto {
  margin-top: auto;
}

.tr-drawer-campus-box {
  padding: 4px 14px;
}

.tr-drawer-campus-label {
  margin-bottom: 4px;
}

.tr-campus-pill-block {
  width: 100%;
  justify-content: center;
}

.tr-drawer-divider {
  margin: 8px 0;
}

/* ─── TrAvatar Component Styles ───────────────────────────────────────────── */
.tr-avatar-wrap {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
  position: relative;
}

.tr-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tr-avatar-face-wrap {
  background: #FFF2E8;
  border: 1px solid #FFD9C0;
  box-shadow: 0 1px 3px rgba(15, 41, 66, 0.08);
}

.tr-avatar-face-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tr-avatar-default {
  background: linear-gradient(135deg, #0F2942 0%, #1E466E 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(15, 41, 66, 0.15);
}

.tr-avatar-initials {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.tr-avatar-icon {
  width: 55%;
  height: 55%;
  color: #FFFFFF;
}

.tr-avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.tr-avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.tr-avatar-md {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.tr-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.tr-avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

/* ─── Desktop Sidebar User Profile Card ───────────────────────────────────── */
.tr-sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: var(--tr-space-2);
  border-radius: var(--tr-radius-md);
  background: var(--tr-navy-light);
  border: 1px solid #D6E2F2;
  transition: all var(--tr-transition-fast);
}

.tr-desktop-sidebar.collapsed .tr-sidebar-user-card {
  justify-content: center;
  padding: 8px 0;
  margin: var(--tr-space-2) 6px;
}

.tr-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tr-sidebar-user-name {
  font-size: var(--tr-font-xs);
  font-weight: 700;
  color: var(--tr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-sidebar-user-sub {
  font-size: 10px;
  color: var(--tr-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Drawer User Info Enhancements ───────────────────────────────────────── */
.tr-drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-drawer-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tr-drawer-name {
  font-size: var(--tr-font-base);
  font-weight: 700;
  color: var(--tr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-drawer-sub {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-muted);
}

.tr-drawer-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 2px;
}

/* ─── Delivery Zone Modal Option Cards ────────────────────────────────────── */

.tr-zone-option-card {
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: var(--tr-space-3) var(--tr-space-4);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-3);
  background: var(--tr-white);
  text-align: left;
  width: 100%;
}

.tr-zone-option-card:hover {
  border-color: var(--tr-orange);
  background: #FFFDFB;
  box-shadow: var(--tr-shadow-sm);
}

.tr-zone-option-card.selected {
  border-color: var(--tr-orange);
  background: var(--tr-orange-light);
}

.tr-zone-option-title {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: var(--tr-navy);
  margin-bottom: 2px;
}

.tr-zone-option-sub {
  font-size: var(--tr-font-xs);
  color: var(--tr-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-zone-fee-badge {
  font-size: var(--tr-font-xs);
  font-weight: 700;
  color: var(--tr-orange-dark);
  background: #FFE8D6;
  padding: 3px 8px;
  border-radius: var(--tr-radius-pill);
  white-space: nowrap;
}

.tr-zone-landmark-box {
  margin-top: var(--tr-space-3);
  padding: var(--tr-space-3);
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
}

.tr-zone-landmark-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.tr-zone-landmark-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--tr-grey-300);
  border-radius: var(--tr-radius-sm);
  font-size: var(--tr-font-xs);
  color: var(--tr-text-primary);
  background: var(--tr-white);
  outline: none;
}

.tr-zone-landmark-select:focus {
  border-color: var(--tr-orange);
}

/* ─── Top-Right Header Notification Modal ─────────────────────────────────── */
.tr-notif-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tr-space-4);
  animation: tr-fade-in 0.2s ease-out;
}

.tr-notif-modal-card {
  position: relative;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-xl);
  box-shadow: var(--tr-shadow-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tr-notif-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tr-space-4) var(--tr-space-5);
  border-bottom: 1px solid var(--tr-grey-100);
  background: var(--tr-grey-50);
}

.tr-notif-modal-header-left {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
}

.tr-notif-modal-time {
  font-size: var(--tr-font-xs);
  color: var(--tr-grey-500);
  font-weight: 500;
}

.tr-notif-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--tr-radius-md);
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  color: var(--tr-grey-500);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-notif-modal-close:hover {
  background: var(--tr-grey-100);
  color: var(--tr-navy);
}

.tr-notif-modal-body {
  padding: var(--tr-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3);
}

.tr-notif-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tr-navy);
  line-height: var(--tr-lh-snug);
  margin: 0;
}

.tr-notif-modal-text {
  font-size: var(--tr-font-sm);
  color: var(--tr-text-secondary);
  line-height: var(--tr-lh-relaxed);
  background: var(--tr-grey-50);
  padding: var(--tr-space-3) var(--tr-space-4);
  border-radius: var(--tr-radius-md);
  border: 1px solid var(--tr-grey-200);
  word-break: break-word;
}

.tr-notif-modal-order-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tr-font-xs);
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #9A3412;
  padding: 6px 12px;
  border-radius: var(--tr-radius-sm);
}

.tr-notif-modal-order-label {
  color: #C2410C;
  font-weight: 600;
}

.tr-notif-modal-order-val {
  font-weight: 700;
}

.tr-notif-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tr-space-3) var(--tr-space-5);
  border-top: 1px solid var(--tr-grey-100);
  background: var(--tr-grey-50);
  gap: var(--tr-space-2);
}

/* ── Native Browser Notification Backdrop & Focus Overlay ── */
.tr-browser-notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1199;
  animation: tr-fade-in 0.25s ease-out forwards;
}

@keyframes tr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Native Browser Notification Permission Prompt Modal / Card ── */
.tr-browser-notif-prompt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  max-width: 440px;
  width: calc(100% - 36px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.28), 0 8px 20px -4px rgba(15, 23, 42, 0.1);
  border-radius: var(--tr-radius-sm);
  padding: var(--tr-space-5);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3);
  animation: tr-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.tr-browser-notif-prompt.is-confirm {
  border-color: #FED7AA;
  box-shadow: 0 24px 50px -12px rgba(217, 119, 6, 0.22), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

@keyframes tr-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tr-browser-notif-header {
  display: flex;
  align-items: flex-start;
  gap: var(--tr-space-3);
  position: relative;
}

.tr-browser-notif-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  color: var(--tr-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #FFEDD5;
  position: relative;
}

.tr-browser-notif-icon-wrap.is-warning {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #D97706;
  border-color: #FDE68A;
}

.tr-browser-notif-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px #ffffff;
  animation: tr-notif-pulse-anim 2s infinite;
}

@keyframes tr-notif-pulse-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.tr-browser-notif-content {
  flex: 1;
  min-width: 0;
  padding-right: var(--tr-space-2);
}

.tr-browser-notif-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-orange);
  background: #FFF7ED;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 6px;
  border: 1px solid #FFEDD5;
}

.tr-browser-notif-badge-pill.is-warning {
  color: #B45309;
  background: #FEF3C7;
  border-color: #FDE68A;
}

.tr-browser-notif-title {
  font-size: var(--tr-font-sm);
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  line-height: 1.35;
}

.tr-browser-notif-desc {
  font-size: 0.8125rem;
  color: #4B5563;
  line-height: 1.45;
  margin: 0 0 8px;
}

.tr-browser-notif-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.tr-browser-notif-perk-item {
  display: flex;
  align-items: center;
  font-size: 0.775rem;
  color: #374151;
  line-height: 1.4;
}

.tr-perk-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  font-weight: 800;
  font-size: 9.5px;
  margin-right: 7px;
  flex-shrink: 0;
}

.tr-browser-notif-close {
  position: absolute;
  top: -4px;
  right: -4px;
  background: transparent;
  border: none;
  color: var(--tr-text-tertiary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--tr-radius-sm);
  transition: all var(--tr-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-browser-notif-close:hover {
  background: var(--tr-grey-100);
  color: var(--tr-text-primary);
}

.tr-browser-notif-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--tr-space-2);
  padding-top: var(--tr-space-2);
  border-top: 1px solid var(--tr-grey-100);
}

.tr-browser-notif-btn-later {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: var(--tr-radius-md);
  cursor: pointer;
  transition: all var(--tr-transition-fast);
}

.tr-browser-notif-btn-later:hover {
  background: var(--tr-grey-100);
  color: var(--tr-text-primary);
}

.tr-browser-notif-btn-later.is-muted {
  color: var(--tr-text-muted);
}

.tr-browser-notif-btn-later.is-muted:hover {
  color: #EF4444;
  background: #FEF2F2;
}

.tr-browser-notif-btn-enable {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #FF7301 0%, #EA580C 100%);
  border: 1px solid #EA580C;
  padding: 8px 18px;
  border-radius: var(--tr-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--tr-transition-fast);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}

.tr-browser-notif-btn-enable:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.36);
}

@media (max-width: 640px) {
  .tr-browser-notif-prompt {
    bottom: calc(78px + env(safe-area-inset-bottom, 12px));
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
    padding: var(--tr-space-4);
    border-radius: 16px;
  }
}.auth-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--tr-soft-white);
  overflow: hidden;
  font-family: var(--tr-font-family);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.auth-header {
  height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tr-white);
  border-bottom: 1px solid var(--tr-grey-200);
  flex-shrink: 0;
  z-index: var(--tr-z-nav);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy);
  letter-spacing: -0.02em;
}
.auth-logo-text span {
  color: var(--tr-orange);
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Main Split Shell ─────────────────────────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  overflow-y: auto;
}

.auth-split-shell {
  width: 100%;
  max-width: 920px;
  display: flex;
  background: var(--tr-white);
  border-radius: var(--tr-radius-lg);
  border: 1px solid var(--tr-grey-200);
  box-shadow: 0 10px 40px -8px rgba(27,58,107,0.14), 0 4px 16px -4px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ── Brand Side (left) ────────────────────────────────────────────────────── */
.auth-brand-side {
  flex: 0 0 44%;
  background: linear-gradient(150deg, #0F2140 0%, #1B3A6B 55%, #0D1E38 100%);
  color: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand-side::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 115, 1, 0.07);
  right: -60px;
  top: -60px;
  pointer-events: none;
}

.auth-brand-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 115, 1, 0.18);
  border: 1px solid rgba(255, 115, 1, 0.30);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(255, 190, 120, 0.95);
}

.auth-brand-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.auth-brand-heading span {
  color: var(--tr-orange);
}

.auth-brand-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  line-height: 1.6;
}

.auth-illustration {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  margin: 16px 0;
}
.auth-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 170px;
}

.auth-brand-stats {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-brand-stats > div { flex: 1; }
.auth-brand-stats strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: #fff;
}
.auth-brand-stats span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Form Side (right) ────────────────────────────────────────────────────── */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 36px;
  overflow-y: auto;
  background: var(--tr-white);
}

.auth-form-box {
  width: 100%;
  max-width: 360px;
}

.auth-card-head {
  margin-bottom: 16px;
}
.auth-card-head-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tr-orange);
  display: block;
}
.auth-card-head-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--tr-navy);
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.auth-card-footer {
  text-align: center;
  font-size: 12px;
  color: var(--tr-text-secondary);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--tr-grey-200);
}
.auth-card-footer a {
  color: var(--tr-orange);
  font-weight: 600;
  text-decoration: none;
}
.auth-card-footer a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.auth-footer {
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tr-grey-200);
  font-size: 11px;
  color: var(--tr-text-muted);
  flex-shrink: 0;
}
.auth-footer-links {
  display: flex;
  gap: 16px;
}
.auth-footer-links a {
  color: var(--tr-text-muted);
  text-decoration: none;
}
.auth-footer-links a:hover { color: var(--tr-orange); }

/* ── Shared Form Primitives ───────────────────────────────────────────────── */
.form-group { margin-top: 14px; }
.form-group-spaced { margin-top: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-grey-700);
  margin-bottom: 5px;
}

.form-input-wrap { position: relative; width: 100%; }

.form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--tr-radius-sm);
  border: 1.5px solid var(--tr-grey-200);
  background: var(--tr-grey-50);
  font-size: 14px;
  color: var(--tr-text-primary);
  outline: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--tr-grey-400); }
.form-input:focus {
  border-color: var(--tr-orange);
  background: var(--tr-white);
  /* box-shadow: 0 0 0 3px rgba(255, 115, 1, 0.12); */
}
.form-input.is-error {
  border-color: var(--tr-error);
  background: var(--tr-error-light);
}
.form-input.has-icon-right { padding-right: 42px; }

.form-input-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--tr-grey-400);
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 4px;
}
.form-input-icon:hover { color: var(--tr-grey-700); }

.form-error {
  display: block;
  font-size: 11.5px;
  color: var(--tr-error);
  margin-top: 4px;
  font-weight: 500;
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--tr-text-muted);
  margin-top: 4px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-forgot-link {
  font-size: 12px;
  color: var(--tr-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-forgot-link:hover { color: var(--tr-orange); }

.auth-api-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--tr-radius-sm);
  background: var(--tr-error-light);
  border: 1px solid rgba(239,68,68,0.20);
  font-size: 12.5px;
  color: var(--tr-error);
  font-weight: 500;
}

/* ── Auth Buttons ─────────────────────────────────────────────────────────── */
.btn-auth-submit {
  margin-top: 18px;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--tr-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--tr-grey-200);
}
.auth-divider span { padding: 0 12px; }

/* ── Register Referral Banner ─────────────────────────────────────────────── */
.reg-referral-banner {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2);
  background: rgba(238, 130, 43, 0.12);
  border: 1px solid rgba(238, 130, 43, 0.35);
  border-radius: var(--tr-radius-md);
  padding: 9px 12px;
  margin-bottom: var(--tr-space-4);
  font-size: var(--tr-font-xs);
  font-weight: 500;
  color: var(--tr-orange-dark, #b85d10);
}

.reg-referral-banner-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.reg-field-error {
  margin-top: 6px;
}

/* ── Register Progress ────────────────────────────────────────────────────── */
.reg-step-progress {
  height: 3px;
  background: var(--tr-grey-100);
  border-radius: 999px;
  margin-bottom: 18px;
  overflow: hidden;
}
.reg-step-progress-bar {
  height: 100%;
  background: var(--tr-orange);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-answered-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 2px;
  scroll-behavior: smooth;
}

.reg-answered-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.reg-answered-item:hover {
  border-color: var(--tr-orange);
  background: var(--tr-orange-light);
}

.reg-answered-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.reg-answered-check { color: var(--tr-orange); }
.reg-answered-label { color: var(--tr-text-secondary); font-weight: 500; }
.reg-answered-val {
  color: var(--tr-text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.reg-answered-edit { color: var(--tr-grey-400); }
.reg-answered-item:hover .reg-answered-edit { color: var(--tr-orange); }

.reg-substep-card, .group-container {
  background: var(--tr-white);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.reg-substep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.reg-substep-counter {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tr-orange);
}
.reg-substep-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tr-navy);
  margin-bottom: 3px;
}
.reg-substep-sub {
  font-size: 11.5px;
  color: var(--tr-text-secondary);
  margin-bottom: 10px;
}

.reg-btn-row { display: flex; gap: 10px; margin-top: 14px; }
.reg-back-btn { padding: 0 14px; }

/* ── Registration Preview Card ────────────────────────────────────────────── */
.reg-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 2px;
}
.reg-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.reg-preview-item:hover {
  border-color: var(--tr-orange);
  background: var(--tr-orange-light);
}
.reg-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.reg-preview-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tr-text-muted);
}
.reg-preview-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reg-preview-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--tr-grey-200);
  background: var(--tr-white);
  color: var(--tr-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 10px;
  transition: all 0.15s ease;
}
.reg-preview-item:hover .reg-preview-edit-btn,
.reg-preview-edit-btn:hover {
  background: var(--tr-orange);
  border-color: var(--tr-orange);
  color: #fff;
}


/* ── Password Strength ────────────────────────────────────────────────────── */
.reg-pwd-strength {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}
.reg-pwd-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--tr-grey-200);
  transition: background 0.25s ease;
}
.reg-pwd-bar.weak   { background: var(--tr-error); }
.reg-pwd-bar.fair   { background: var(--tr-warning); }
.reg-pwd-bar.good   { background: var(--tr-success); }
.reg-pwd-bar.strong { background: #10B981; }
.reg-pwd-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tr-text-muted);
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-footer {
    display: none !important;
  }

  .auth-main {
    padding: 12px 12px 80px 12px !important;
  }
}

@media (max-width: 720px) {
  .auth-split-shell {
    flex-direction: column;
    max-width: 480px;

    .auth-brand-side {
      display: none;
    }
  }

  .auth-brand-side {
    flex: none;
    padding: 24px 20px;
  }

  .auth-brand-side::before { display: none; }

  .auth-illustration { max-height: 120px; }
  .auth-illustration img { object-position: center; }

  .auth-form-side { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .auth-header { padding: 0 16px; }
  .auth-main { padding: 8px 8px 80px 8px !important; }
  .auth-brand-side { display: none; }
  .auth-split-shell { box-shadow: none; border: none; border-radius: 0; min-height: 100%; }
  .auth-form-side { padding: 24px 16px; }
}

/* ── VerifyPage ─────────────────────────────────────────────────────────────── */

.verify-method-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--tr-radius-sm);
  border: 1.5px solid var(--tr-grey-200);
  background: var(--tr-grey-50);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.verify-method-option:hover {
  border-color: var(--tr-orange);
  background: var(--tr-white);
}

.verify-method-option.is-selected {
  border-color: var(--tr-orange);
  background: rgba(255, 115, 1, 0.05);
}

.verify-method-radio {
  accent-color: var(--tr-orange);
  width: 17px;
  height: 17px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.verify-method-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  flex: 1;
}

.verify-method-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tr-navy);
}

.verify-method-target {
  font-size: 12px;
  color: var(--tr-text-muted);
}

/* ── OTP 6-Digit Box Grid ─────────────────────────────────────────────────── */
.otp-boxes-wrap {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-box-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--tr-navy);
  background: var(--tr-grey-50);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-sm, 8px);
  outline: none;
  transition: all 0.18s ease;
  font-family: inherit;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.otp-box-input:focus {
  border-color: var(--tr-orange);
  background: var(--tr-white);
}

.otp-box-input.is-error {
  border-color: var(--tr-error);
  background: var(--tr-error-light);
}

.otp-box-input.has-val {
  border-color: var(--tr-grey-400);
  background: var(--tr-white);
}

/* Target banner inside group-container */
.verify-target-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--tr-grey-100);
}

.verify-target-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.verify-target-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tr-text-muted);
}

.verify-target-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tr-navy);
  word-break: break-all;
}

.verify-switch-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-orange);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
  font-family: inherit;
  margin-top: 2px;
}

.verify-switch-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Resend row */
.verify-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--tr-grey-500, #6b7280);
}

.verify-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--tr-font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-primary);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
}

.verify-resend-btn:disabled {
  color: var(--tr-grey-400, #9ca3af);
  cursor: default;
}

/* Spinning icon for resend loading */
.spin {
  animation: spin-once 0.8s linear infinite;
}

@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Success state */
.auth-verify-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
}

.verify-success-icon {
  color: #22c55e;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
  0%  { transform: scale(0); opacity: 0; }
  100%{ transform: scale(1); opacity: 1; }
}

.auth-verify-success h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--tr-navy);
}

.auth-verify-success p {
  margin: 0;
  font-size: 14px;
  color: var(--tr-grey-500, #6b7280);
}

/* ── Password Recovery & Reset Elements ────────────────────────────────────── */
.auth-submitted-card {
  text-align: center;
  padding: 28px 20px;
}

.auth-status-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(238, 130, 43, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--tr-orange);
}

.auth-status-icon-wrap.is-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.auth-status-icon-wrap.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.auth-status-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.auth-status-desc {
  font-size: 14px;
  color: var(--tr-grey-600);
  line-height: 1.6;
  margin: 0 0 16px;
}

.auth-tip-box {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--tr-grey-500);
  line-height: 1.5;
  text-align: left;
}

.auth-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.tr-btn-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tr-btn-outline {
  background: transparent;
  border: 1px solid var(--tr-grey-200);
  color: var(--tr-navy);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tr-btn-outline:hover {
  background: var(--tr-grey-50);
  border-color: var(--tr-grey-300);
}

.auth-sms-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(238, 130, 43, 0.08);
  border: 1px solid rgba(238, 130, 43, 0.25);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--tr-navy);
  line-height: 1.5;
}

.auth-switch-mode-wrap {
  text-align: center;
  margin-top: 14px;
}

.auth-switch-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--tr-orange);
  font-weight: 600;
}
.auth-switch-btn:hover {
  text-decoration: underline;
}

.auth-verified-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(238, 130, 43, 0.08);
  border: 1px solid rgba(238, 130, 43, 0.25);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--tr-navy);
  font-weight: 600;
}

.auth-field-hint {
  font-size: 12px;
  color: var(--tr-grey-500);
  line-height: 1.5;
  margin-top: 10px;
}

.auth-target-highlight {
  display: block;
  margin-top: 2px;
  color: var(--tr-navy);
  font-weight: 600;
}

/* ─── Verification Status Screens ────────────────────────────────────────── */
.verify-status-box {
  text-align: center;
  padding: 36px 16px;
}
.verify-status-box.compact {
  padding: 24px 14px;
}
.verify-spinner {
  margin: 0 auto 14px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--tr-grey-200);
  border-top-color: var(--tr-orange);
  border-radius: 50%;
}
.verify-status-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tr-navy);
  margin-bottom: 4px;
}
.verify-status-sub {
  font-size: 12.5px;
  color: var(--tr-text-muted);
}
.verify-status-sub.spaced {
  margin-bottom: 16px;
}
.verify-status-icon {
  color: var(--tr-success);
  margin: 0 auto 10px;
}
.verify-resend-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.verify-resend-btn:disabled {
  cursor: default;
}
.verify-info-msg {
  margin-top: 10px;
  font-size: 12px;
  color: var(--tr-orange);
  font-weight: 500;
}

/* ─── TrInfoBox Component Styles ─────────────────────────────────────────── */

/* ── Backdrop for floating or modal modes ── */
.tr-infobox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1199;
  animation: tr-infobox-fade-in 0.25s ease-out forwards;
}

@keyframes tr-infobox-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes tr-infobox-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Base Container ── */
.tr-infobox {
  font-family: inherit;
  box-sizing: border-box;
  position: relative;
  transition: all 0.25s ease;
  animation: tr-infobox-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tr-infobox * {
  box-sizing: border-box;
}

/* ─── Mode: Floating (Fixed Toast / Prompt) ─── */
.tr-infobox--floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  max-width: 440px;
  width: calc(100% - 36px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.28), 0 8px 20px -4px rgba(15, 23, 42, 0.1);
  border-radius: var(--tr-radius-md, 12px);
  padding: 18px 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Mode: Inline Banner (Embedded in Page) ─── */
.tr-infobox--inline {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--tr-radius-md, 12px);
  border: 1px solid var(--tr-grey-200, #E5E7EB);
  background: var(--tr-grey-50, #F9FAFB);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

/* Compact layout when inline has no action buttons */
.tr-infobox--inline.tr-infobox--compact .tr-infobox-header {
  align-items: center;
}

/* ─── Mode: Modal (Centered Dialog) ─── */
.tr-infobox--modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 480px;
  width: calc(100% - 32px);
  background: #ffffff;
  border-radius: var(--tr-radius-lg, 16px);
  border: 1px solid var(--tr-grey-200, #E5E7EB);
  box-shadow: var(--tr-shadow-xl, 0 20px 48px rgba(0, 0, 0, 0.2));
  padding: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Header Row ─── */
.tr-infobox-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  width: 100%;
}

/* ─── Icon Wrap ─── */
.tr-infobox-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s ease;
}

.tr-infobox--inline .tr-infobox-icon-wrap {
  width: 36px;
  height: 36px;
}

/* Pulsing dot indicator on icon */
.tr-infobox-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px #ffffff;
  animation: tr-infobox-pulse-anim 2s infinite;
}

@keyframes tr-infobox-pulse-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ─── Main Content Column ─── */
.tr-infobox-content {
  flex: 1;
  min-width: 0;
  padding-right: 22px; /* clearance for close button */
}

.tr-infobox-content:last-child {
  padding-right: 0;
}

/* ─── Badge Pill ─── */
.tr-infobox-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  line-height: 1.4;
}

/* ─── Title ─── */
.tr-infobox-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tr-navy-dark, #0F172A);
  margin-bottom: 4px;
  line-height: 1.35;
}

.tr-infobox--inline .tr-infobox-title {
  font-size: 0.875rem;
}

/* ─── Description ─── */
.tr-infobox-desc {
  font-size: 0.8125rem;
  color: var(--tr-grey-600, #4B5563);
  line-height: 1.45;
  margin: 0;
}

/* ─── Custom Body / Children Slot ─── */
.tr-infobox-body {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--tr-grey-700, #374151);
}

.tr-infobox-desc + .tr-infobox-body {
  margin-top: 6px;
}

/* ─── Perks / Bullets List ─── */
.tr-infobox-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.tr-infobox-perk-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.775rem;
  color: var(--tr-grey-700, #374151);
  line-height: 1.4;
}

.tr-infobox-perk-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  font-weight: 800;
  font-size: 9.5px;
  margin-right: 7px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Close Button ─── */
.tr-infobox-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--tr-grey-400, #9CA3AF);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--tr-radius-sm, 6px);
  transition: all var(--tr-transition-fast, 0.15s ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-infobox-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--tr-grey-700, #374151);
}

/* ─── Action Buttons Row ─── */
.tr-infobox-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--tr-grey-100, #F3F4F6);
}

.tr-infobox--inline .tr-infobox-actions {
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Secondary Button (Later / Cancel) */
.tr-infobox-btn-secondary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tr-text-secondary, #6B7280);
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: var(--tr-radius-md, 8px);
  cursor: pointer;
  transition: all var(--tr-transition-fast, 0.15s ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tr-infobox-btn-secondary:hover {
  background: var(--tr-grey-100, #F3F4F6);
  color: var(--tr-text-primary, #1A1A2E);
}

.tr-infobox-btn-secondary.is-muted {
  color: var(--tr-text-muted, #9CA3AF);
}

.tr-infobox-btn-secondary.is-muted:hover {
  color: #EF4444;
  background: #FEF2F2;
}

/* Primary Button (Enable / Confirm / Action) */
.tr-infobox-btn-primary {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #FF7301 0%, #EA580C 100%);
  border: 1px solid #EA580C;
  padding: 8px 18px;
  border-radius: var(--tr-radius-md, 8px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--tr-transition-fast, 0.15s ease);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}

.tr-infobox-btn-primary:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.36);
}

.tr-infobox-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── Custom Footer ─── */
.tr-infobox-footer {
  font-size: 0.75rem;
  color: var(--tr-text-muted, #9CA3AF);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VARIANTS COLORING
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Variant: Brand / Orange ── */
.tr-infobox--brand .tr-infobox-icon-wrap {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  color: var(--tr-orange, #FF7301);
  border: 1px solid #FFEDD5;
}

.tr-infobox--brand .tr-infobox-badge-pill {
  color: var(--tr-orange, #FF7301);
  background: #FFF7ED;
  border-color: #FFEDD5;
}

.tr-infobox--inline.tr-infobox--brand {
  background: #FFFDF9;
  border-color: #FFEDD5;
}

/* ── 2. Variant: Success / Green (Spot Claim, Milestone, Connected) ── */
.tr-infobox--success.tr-infobox--inline {
  background: #ECFDF5;
  border-color: #A7F3D0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.tr-infobox--success .tr-infobox-icon-wrap {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.tr-infobox--success .tr-infobox-badge-pill {
  color: #047857;
  background: #D1FAE5;
  border-color: #A7F3D0;
}

.tr-infobox--success .tr-infobox-body,
.tr-infobox--success .tr-infobox-desc {
  color: #065F46;
}

.tr-infobox--success .tr-infobox-close {
  color: #047857;
}

.tr-infobox--success .tr-infobox-close:hover {
  background: #D1FAE5;
}

.tr-infobox--success .tr-infobox-btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.tr-infobox--success .tr-infobox-btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.36);
}

/* ── 3. Variant: Warning / Amber (Confirmations, Alerts) ── */
.tr-infobox--warning {
  border-color: #FED7AA;
}

.tr-infobox--warning.tr-infobox--floating {
  box-shadow: 0 24px 50px -12px rgba(217, 119, 6, 0.22), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.tr-infobox--warning.tr-infobox--inline {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.tr-infobox--warning .tr-infobox-icon-wrap {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #D97706;
  border-color: #FDE68A;
}

.tr-infobox--warning .tr-infobox-badge-pill {
  color: #B45309;
  background: #FEF3C7;
  border-color: #FDE68A;
}

.tr-infobox--warning .tr-infobox-desc,
.tr-infobox--warning .tr-infobox-body {
  color: #92400E;
}

/* ── 4. Variant: Danger / Red ── */
.tr-infobox--danger.tr-infobox--inline {
  background: #FEF2F2;
  border-color: #FECACA;
}

.tr-infobox--danger .tr-infobox-icon-wrap {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.tr-infobox--danger .tr-infobox-badge-pill {
  color: #B91C1C;
  background: #FEE2E2;
  border-color: #FECACA;
}

.tr-infobox--danger .tr-infobox-desc,
.tr-infobox--danger .tr-infobox-body {
  color: #991B1B;
}

.tr-infobox--danger .tr-infobox-btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

/* ── 5. Variant: Info / Blue ── */
.tr-infobox--info.tr-infobox--inline {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.tr-infobox--info .tr-infobox-icon-wrap {
  background: #DBEAFE;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.tr-infobox--info .tr-infobox-badge-pill {
  color: #1D4ED8;
  background: #DBEAFE;
  border-color: #BFDBFE;
}

.tr-infobox--info .tr-infobox-desc,
.tr-infobox--info .tr-infobox-body {
  color: #1E40AF;
}

/* ── 6. Variant: Neutral / Gray ── */
.tr-infobox--neutral.tr-infobox--inline {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.tr-infobox--neutral .tr-infobox-icon-wrap {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.tr-infobox--neutral .tr-infobox-badge-pill {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (Mobile Floating Docking)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .tr-infobox--floating {
    bottom: calc(78px + env(safe-area-inset-bottom, 12px));
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
    padding: 16px;
    border-radius: 16px;
  }

  .tr-infobox--floating .tr-infobox-header {
    gap: 12px;
  }

  .tr-infobox--floating .tr-infobox-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .tr-infobox--floating .tr-infobox-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .tr-infobox--inline {
    padding: 12px 14px;
  }
}
.admin-layout {
  --admin-primary: var(--tr-orange);
  --admin-primary-dark: var(--tr-orange-dark);
  --admin-primary-light: var(--tr-orange-light);
  --admin-accent: var(--tr-navy);
  --admin-accent-light: var(--tr-navy-light);
  --admin-surface: var(--tr-white);
  --admin-bg: var(--tr-soft-white);
  --admin-border: var(--tr-grey-200);
  --admin-border-subtle: var(--tr-grey-100);
  --admin-text-main: var(--tr-text-primary);
  --admin-text-muted: var(--tr-text-secondary);
  --admin-text-subtle: var(--tr-text-muted);
  --admin-danger: var(--tr-error);
  --admin-danger-light: var(--tr-error-light);
  --admin-warning: var(--tr-warning);
  --admin-warning-light: var(--tr-warning-light);
  --admin-radius-sm: var(--tr-radius-sm);
  --admin-radius-md: var(--tr-radius-md);
  --admin-radius-lg: var(--tr-radius-lg);
  --admin-shadow-sm: var(--tr-shadow-xs);
  --admin-shadow-md: var(--tr-shadow-sm);
  --admin-shadow-lg: var(--tr-shadow-md);

  min-height: 100vh;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  font-family: var(--tr-font-family);
  display: flex;
  flex-direction: column;
}

.admin-nav {
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.admin-nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--admin-primary);
  letter-spacing: -0.5px;
}

.admin-nav-tag {
  background: var(--admin-primary-light);
  color: var(--admin-primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
}

.admin-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--admin-radius-sm);
  color: var(--admin-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-nav-link:hover {
  background: var(--admin-bg);
  color: var(--admin-text-main);
}

.admin-nav-link.active {
  background: var(--admin-primary-light);
  color: var(--admin-primary-dark);
  font-weight: 600;
}

.admin-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-header-title {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.admin-header-desc {
  font-size: 14px;
  color: var(--admin-text-muted);
  margin: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  padding: 18px 20px;
  box-shadow: var(--admin-shadow-sm);
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.admin-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--admin-text-main);
}

.admin-stat-sub {
  font-size: 12px;
  color: var(--admin-text-subtle);
  margin-top: 4px;
}

.admin-filter-bar {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.admin-search-input {
  width: 100%;
  padding: 9px 14px;
  font-size: 14px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-bg);
  color: var(--admin-text-main);
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.admin-search-input:focus {
  border-color: var(--admin-primary);
  background: var(--admin-surface);
}

.admin-tabs {
  display: inline-flex;
  background: var(--admin-bg);
  padding: 3px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
}

.admin-tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-tab.active {
  background: var(--admin-surface);
  color: var(--admin-text-main);
  font-weight: 600;
  box-shadow: var(--admin-shadow-sm);
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.admin-entity-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  padding: 20px;
  box-shadow: var(--admin-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-entity-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--admin-shadow-md);
}

.admin-entity-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-entity-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0;
}

.admin-entity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-badge-active {
  background: var(--admin-primary-light);
  color: var(--admin-primary-dark);
}

.admin-badge-inactive {
  background: #F1F5F9;
  color: var(--admin-text-muted);
}

.admin-entity-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.admin-entity-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--admin-border-subtle);
  border-bottom: 1px solid var(--admin-border-subtle);
  margin-bottom: 16px;
}

.admin-meta-item-label {
  font-size: 11px;
  color: var(--admin-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-meta-item-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-main);
  margin-top: 2px;
}

.admin-entity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-switch-btn {
  background: transparent;
  border: 1px solid var(--admin-border);
  padding: 6px 12px;
  border-radius: var(--admin-radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-switch-btn:hover {
  background: var(--admin-bg);
  color: var(--admin-text-main);
}

.admin-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-chip {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.admin-modal-box {
  background: var(--admin-surface);
  border-radius: var(--admin-radius-lg);
  box-shadow: var(--admin-shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0;
}

.admin-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--admin-text-subtle);
  cursor: pointer;
  padding: 4px;
}

.admin-modal-close:hover {
  color: var(--admin-text-main);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-main);
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-surface);
  color: var(--admin-text-main);
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
  border-color: var(--admin-primary);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--admin-bg);
}

.admin-alert-banner {
  padding: 12px 16px;
  border-radius: var(--admin-radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-alert-success {
  background: var(--admin-primary-light);
  color: var(--admin-primary-dark);
  border: 1px solid rgba(0, 168, 107, 0.2);
}

.admin-alert-error {
  background: var(--admin-danger-light);
  color: var(--admin-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.zone-selector-wrap {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  padding: 16px;
}

.zone-card-item {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zone-card-item:hover {
  border-color: var(--admin-primary);
  background: #FCFDFD;
}

.zone-card-item.selected {
  border-color: var(--admin-primary);
  background: var(--admin-primary-light);
}

.zone-pricing-badge {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--admin-primary-dark);
  font-size: 14px;
}

.zone-selector-header {
  margin-bottom: 14px;
}

.zone-selector-campus {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--admin-text-main);
}

.zone-selector-title {
  margin-bottom: 8px;
}

.zone-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--admin-text-main);
}

.zone-card-eta {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.admin-entity-footer-margin {
  margin-top: 16px;
}
/* ─── Loader Showcase Playground Styling ──────────────────────────────────── */

.tr-showcase-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #1a1a2e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 0 0 60px;
}

/* ── Top Bar ──────────────────────────────────────────────────────────────── */
.tr-showcase-nav {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.tr-showcase-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-showcase-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: #1B3A6B;
}

.tr-showcase-nav-logo img {
  height: 28px;
  width: auto;
}

.tr-showcase-nav-logo span {
  color: #ee822b;
}

.tr-showcase-nav-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff0e6;
  color: #ee822b;
  padding: 3px 9px;
  border-radius: 999px;
}

.tr-showcase-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: all 0.15s ease;
}

.tr-showcase-back-btn:hover {
  border-color: #ee822b;
  color: #ee822b;
  background: #fff8f2;
}

/* ── Main Layout ──────────────────────────────────────────────────────────── */
.tr-showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.tr-showcase-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-showcase-title {
  font-size: 30px;
  font-weight: 800;
  color: #1B3A6B;
  letter-spacing: -0.02em;
  margin: 0;
}

.tr-showcase-title span {
  color: #ee822b;
}

.tr-showcase-desc {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

/* ── Live Playground Arena ────────────────────────────────────────────────── */
.tr-showcase-sandbox {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(27, 58, 107, 0.08);
}

@media (max-width: 900px) {
  .tr-showcase-sandbox {
    grid-template-columns: 1fr;
  }
}

/* Stage Area */
.tr-showcase-stage-wrap {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .tr-showcase-stage-wrap {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

.tr-showcase-stage-bar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.tr-stage-mode-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.tr-stage-themes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-stage-theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tr-stage-theme-btn:hover {
  transform: scale(1.15);
}

.tr-stage-theme-btn.active {
  border-color: #ee822b;
  transform: scale(1.15);
}

.tr-stage-theme-white { background: #ffffff; box-shadow: inset 0 0 0 1px #d1d5db; }
.tr-stage-theme-cream { background: #fff8f2; }
.tr-stage-theme-gray  { background: #f3f4f6; }
.tr-stage-theme-dark  { background: #0f1b30; }

.tr-showcase-stage {
  flex: 1;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  transition: background 0.25s ease;
}

.tr-showcase-stage.stage-theme-white { background: #ffffff; }
.tr-showcase-stage.stage-theme-cream { background: #fff8f2; }
.tr-showcase-stage.stage-theme-gray  { background: #f3f4f6; }
.tr-showcase-stage.stage-theme-dark  { background: #0f1b30; }

/* Control Panel */
.tr-showcase-controls {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fafbfc;
  overflow-y: auto;
}

.tr-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-control-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.tr-pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tr-pill-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-pill-btn:hover {
  border-color: #ee822b;
  color: #ee822b;
}

.tr-pill-btn.active {
  background: #ee822b;
  border-color: #ee822b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(238, 130, 43, 0.35);
}

.tr-input-text {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease;
}

.tr-input-text:focus {
  border-color: #ee822b;
}

.tr-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-slider-range {
  flex: 1;
  accent-color: #ee822b;
}

.tr-slider-val {
  font-size: 12px;
  font-weight: 700;
  color: #ee822b;
  min-width: 38px;
  text-align: right;
}

.tr-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.tr-checkbox-row input {
  accent-color: #ee822b;
  width: 16px;
  height: 16px;
}

.tr-btn-sim-progress {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #fff0e6;
  border: 1px solid #ffd4a8;
  color: #ee822b;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
}

.tr-btn-sim-progress:hover {
  background: #ee822b;
  color: #ffffff;
}

.tr-btn-test-fullscreen {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: #1B3A6B;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tr-btn-test-fullscreen:hover {
  background: #0f2140;
  transform: translateY(-1px);
}

/* ── Contextual Examples Grid ─────────────────────────────────────────────── */
.tr-showcase-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #1B3A6B;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tr-example-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tr-example-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.08);
}

.tr-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-example-title {
  font-size: 14px;
  font-weight: 700;
  color: #1B3A6B;
  margin: 0;
}

.tr-example-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ee822b;
  background: #fff0e6;
  padding: 2px 7px;
  border-radius: 6px;
}

.tr-example-body {
  flex: 1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.tr-example-btn-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.tr-example-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #ee822b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: not-allowed;
  width: 100%;
}

.tr-example-code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  background: #f3f4f6;
  color: #4b5563;
  padding: 6px 10px;
  border-radius: 6px;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

/* ── Code Snippet Box ─────────────────────────────────────────────────────── */
.tr-showcase-code-box {
  background: #0f1b30;
  border-radius: 16px;
  padding: 24px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(15, 27, 48, 0.25);
}

.tr-code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-code-box-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ee822b;
}

.tr-code-pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #93c5fd;
  overflow-x: auto;
}

.tr-code-pre .kw   { color: #f472b6; }
.tr-code-pre .tag  { color: #60a5fa; }
.tr-code-pre .prop { color: #fde047; }
.tr-code-pre .str  { color: #86efac; }
.tr-code-pre .comm { color: #64748b; font-style: italic; }

/* ── Fullscreen Overlay Dismiss Button ────────────────────────────────────── */
.tr-showcase-dismiss-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.tr-showcase-dismiss-btn:hover {
  transform: scale(1.05);
}

/* ── Anti-Flicker / Minimum Duration Demo Cards ──────────────────────────── */
.tr-mindur-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .tr-mindur-grid {
    grid-template-columns: 1fr;
  }
}

.tr-mindur-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.tr-mindur-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-mindur-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.tr-mindur-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.tr-mindur-badge.tr-badge-2s {
  background: #fff0e6;
  color: #ee822b;
}

.tr-mindur-badge.tr-badge-3s {
  background: #f0fdf4;
  color: #166534;
}

.tr-mindur-stage {
  min-height: 190px;
  background: #fafafc;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.tr-mindur-idle {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.tr-mindur-telemetry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
}

.tr-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tr-telemetry-label {
  color: #64748b;
  font-weight: 500;
}

.tr-telemetry-val {
  font-weight: 700;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.tr-mindur-trigger-btn {
  background: #1B3A6B;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.tr-mindur-trigger-btn:hover:not(:disabled) {
  background: #234d8d;
  transform: translateY(-1px);
}

.tr-mindur-trigger-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/* ─── Empty State Showcase Playground Styles ────────────────────────────── */

.tr-empty-showcase-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #1a1a2e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 0 0 60px;
}

/* ── Top Bar ──────────────────────────────────────────────────────────────── */
.tr-empty-showcase-nav {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.tr-empty-showcase-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-empty-showcase-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: #1B3A6B;
}

.tr-empty-showcase-logo img {
  height: 28px;
  width: auto;
}

.tr-empty-showcase-logo span {
  color: #ee822b;
}

.tr-empty-showcase-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff0e6;
  color: #ee822b;
  padding: 3px 9px;
  border-radius: 999px;
}

.tr-empty-showcase-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-empty-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: all 0.15s ease;
}

.tr-empty-nav-link:hover {
  border-color: #ee822b;
  color: #ee822b;
  background: #fff8f2;
}

.tr-empty-nav-link.active {
  border-color: #ee822b;
  color: #ffffff;
  background: #ee822b;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.tr-empty-showcase-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 0;
}

.tr-empty-showcase-header {
  margin-bottom: 28px;
}

.tr-empty-showcase-title {
  font-size: 28px;
  font-weight: 800;
  color: #1B3A6B;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.tr-empty-showcase-title span {
  color: #ee822b;
}

.tr-empty-showcase-desc {
  font-size: 15px;
  color: #64748b;
  max-width: 680px;
  line-height: 1.55;
  margin: 0;
}

/* ── Sandbox Arena ───────────────────────────────────────────────────────── */
.tr-empty-showcase-sandbox {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 960px) {
  .tr-empty-showcase-sandbox {
    grid-template-columns: 1fr;
  }
}

.tr-empty-stage-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tr-empty-stage-bar {
  height: 48px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-empty-stage-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.tr-empty-stage-themes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-empty-theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.tr-empty-theme-dot:hover {
  transform: scale(1.15);
}

.tr-empty-theme-dot.active {
  border-color: #ee822b;
  transform: scale(1.15);
}

.tr-empty-theme-white { background: #ffffff; border: 1px solid #d1d5db; }
.tr-empty-theme-cream { background: #fffaf5; border: 1px solid #fed7aa; }
.tr-empty-theme-gray  { background: #f1f5f9; border: 1px solid #cbd5e1; }
.tr-empty-theme-dark  { background: #0f1b30; }

.tr-empty-stage-canvas {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: background 0.25s ease;
}

.tr-empty-stage-canvas.theme-white { background: #ffffff; }
.tr-empty-stage-canvas.theme-cream { background: #fffaf5; }
.tr-empty-stage-canvas.theme-gray  { background: #f1f5f9; }
.tr-empty-stage-canvas.theme-dark  {
  background: #0f1b30;
  color: #ffffff;
}

.tr-empty-stage-canvas.theme-dark .tr-empty-title {
  color: #ffffff;
}
.tr-empty-stage-canvas.theme-dark .tr-empty-desc {
  color: #94a3b8;
}
.tr-empty-stage-canvas.theme-dark .tr-empty-bordered {
  background: #172641;
  border-color: #243b61;
}

/* ── Controls Aside ──────────────────────────────────────────────────────── */
.tr-empty-controls {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tr-empty-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-empty-control-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
}

.tr-empty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tr-empty-pill {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-empty-pill:hover {
  border-color: #ee822b;
  color: #ee822b;
}

.tr-empty-pill.active {
  background: #ee822b;
  border-color: #ee822b;
  color: #ffffff;
}

.tr-empty-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.tr-empty-input:focus {
  border-color: #ee822b;
  box-shadow: 0 0 0 3px rgba(238, 130, 43, 0.12);
}

.tr-empty-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.tr-empty-checkbox input {
  accent-color: #ee822b;
  width: 16px;
  height: 16px;
}

/* ── Gallery Grid ────────────────────────────────────────────────────────── */
.tr-empty-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .tr-empty-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tr-empty-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.tr-empty-gallery-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tr-empty-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.tr-empty-gallery-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 8px;
}

/* ── Code Box ────────────────────────────────────────────────────────────── */
.tr-empty-code-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px;
  margin-top: 48px;
  overflow: hidden;
}

.tr-empty-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tr-empty-code-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ee822b;
}

.tr-empty-code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-empty-code-copy-btn:hover {
  background: #334155;
  color: #ffffff;
}

.tr-empty-pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #93c5fd;
  overflow-x: auto;
}

.tr-empty-pre .kw   { color: #f472b6; }
.tr-empty-pre .tag  { color: #60a5fa; }
.tr-empty-pre .prop { color: #fde047; }
.tr-empty-pre .str  { color: #86efac; }
.tr-empty-pre .comm { color: #64748b; font-style: italic; }
/* ── Dev Settings Workbench CSS ─────────────────────────────────────────── */

.tr-dev-workbench {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ── Top Bar ───────────────────────────────────────────────────────────── */
.tr-dev-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.tr-dev-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  color: #1e3a8a;
}

.tr-dev-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tr-dev-brand span {
  color: #ea580c;
}

.tr-pill-dev {
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tr-pill-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tr-pill-status.saved {
  background: #ecfdf5;
  color: #047857;
}

.tr-pill-status.saving {
  background: #fffbeb;
  color: #b45309;
}

.tr-top-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-top-btn {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.tr-top-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ── Content Container ─────────────────────────────────────────────────── */
.tr-dev-body {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Tab Bar ───────────────────────────────────────────────────────────── */
.tr-tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 2px;
  overflow-x: auto;
}

.tr-tab-item {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
  transition: all 0.15s ease;
}

.tr-tab-item:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.tr-tab-item.active {
  color: #ea580c;
  border-bottom-color: #ea580c;
  background: #ffffff;
}

.tr-tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.tr-tab-item.active .tr-tab-count {
  background: #ffedd5;
  color: #ea580c;
}

/* ── Gateway Cards (Clean, Form-First UX) ───────────────────────────────── */
.tr-gateways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .tr-gateways-grid {
    grid-template-columns: 1fr;
  }
}

.tr-gw-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tr-gw-card.is-default {
  border-color: #10b981;
  box-shadow: 0 0 0 1px #10b981;
}

.tr-gw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tr-gw-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-gw-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-tag-type {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.tr-tag-default {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #15803d;
}

.tr-tag-unconfigured {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
}

/* Form Fields inside Gateway Card */
.tr-gw-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.tr-form-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tr-form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.tr-input-key {
  width: 100%;
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: monospace;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  outline: none;
}

.tr-input-key:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}

.tr-gw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.tr-gw-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-mode-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.tr-mode-btn {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.tr-mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tr-mode-btn.active.live {
  color: #dc2626;
  font-weight: 800;
}

.tr-gw-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-btn-save {
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tr-btn-save:hover {
  background: #172554;
}

.tr-btn-test-action {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tr-btn-test-action:hover {
  background: #ffedd5;
}

/* ── Test Result Banner ─────────────────────────────────────────────────── */
.tr-test-output {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
}

.tr-test-output pre {
  margin: 6px 0 0 0;
  padding: 6px;
  background: #0f172a;
  color: #38bdf8;
  border-radius: 4px;
  font-size: 11px;
  max-height: 140px;
  overflow: auto;
}

/* ── System Settings Table (Clean, direct) ─────────────────────────────── */
.tr-settings-pane {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tr-table-wrap {
  overflow-x: auto;
}

.tr-clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tr-clean-table th {
  text-align: left;
  padding: 8px 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}

.tr-clean-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.tr-clean-table tr:hover td {
  background: #fcfdfe;
}

.tr-input-val {
  padding: 6px 10px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.tr-input-val:focus {
  border-color: #ea580c;
}

/* Toggle Switch */
.tr-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.tr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tr-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.15s;
  border-radius: 20px;
}

.tr-slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.15s;
  border-radius: 50%;
}

input:checked + .tr-slider {
  background-color: #10b981;
}

input:checked + .tr-slider:before {
  transform: translateX(18px);
}

/* ── Dual Keypair Section Styles ─────────────────────────────────────────── */
.tr-keypair-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tr-keypair-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.tr-keypair-block.is-active {
  border-color: #3b82f6;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.tr-keypair-block.is-active.is-live {
  border-color: #ea580c;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.3);
}

.tr-keypair-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e2e8f0;
}

.tr-keypair-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-keypair-block.is-active .tr-keypair-title {
  color: #1e3a8a;
}

.tr-keypair-block.is-active.is-live .tr-keypair-title {
  color: #c2410c;
}

.tr-active-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tr-active-badge.test {
  background: #dbeafe;
  color: #1d4ed8;
}

.tr-active-badge.live {
  background: #fee2e2;
  color: #b91c1c;
}

.tr-tag-mode {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.tr-tag-mode.live {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.tr-tag-mode.test {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.tr-portal-placeholder-container {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-4);
  max-width: 680px;
  margin: 0 auto;
  padding: var(--tr-space-4) 0 var(--tr-space-8);
  animation: tr-fade-in 0.2s ease forwards;
}

.tr-portal-placeholder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--tr-space-2);
}

.tr-portal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tr-font-xs);
  font-weight: 600;
  color: var(--tr-navy);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--tr-grey-100);
  border-radius: var(--tr-radius-pill);
  transition: all var(--tr-transition-fast);
}

.tr-portal-back-link:hover {
  background: var(--tr-grey-200);
  color: var(--tr-orange-dark);
}

.tr-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tr-orange-dark);
  background: #FFF0E6;
  padding: 4px 10px;
  border-radius: var(--tr-radius-pill);
  border: 1px solid #FFD9C0;
}

.tr-portal-placeholder-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-sm);
  padding: var(--tr-space-6) var(--tr-space-6) var(--tr-space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr-portal-features-grid {
  margin-top: var(--tr-space-6);
  padding-top: var(--tr-space-6);
  border-top: 1px dashed var(--tr-grey-200);
  width: 100%;
  max-width: 580px;
}

.tr-portal-features-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tr-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--tr-space-3);
  text-align: center;
}

.tr-portal-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-portal-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--tr-font-xs);
  color: var(--tr-text-secondary);
  line-height: 1.45;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  padding: 10px 14px;
  border-radius: var(--tr-radius-md);
}

.tr-portal-feature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tr-orange);
  flex-shrink: 0;
}

/* ─── Trayrand Dedicated Empty State Component Styles ────────────────────────── */

.tr-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  padding: 40px 24px;
  position: relative;
  user-select: none;
  background-color: var(--tr-white);
  border-radius: var(--tr-radius-md);
}

.tr-empty-state * {
  box-sizing: border-box;
}

/* ── Bordered Card Mode ──────────────────────────────────────────────────── */
.tr-empty-bordered {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 27, 48, 0.04);
  padding: 48px 24px;
}

/* ── Size Variants ───────────────────────────────────────────────────────── */
/* Small (tight cards, popovers, table cells) */
.tr-empty-size-sm {
  padding: 24px 16px;
}
.tr-empty-size-sm .tr-empty-illustration-wrap {
  width: 120px;
  height: 76px;
  margin-bottom: 12px;
}
.tr-empty-size-sm .tr-empty-title {
  font-size: 14.5px;
  margin-bottom: 4px;
}
.tr-empty-size-sm .tr-empty-desc {
  font-size: 12.5px;
  max-width: 280px;
  margin-bottom: 14px;
}

/* Medium (Standard default) */
.tr-empty-size-md {
  padding: 40px 24px;
}
.tr-empty-size-md .tr-empty-illustration-wrap {
  /* width: 180px; */
  height: 100px;
  margin-bottom: 18px;
}
.tr-empty-size-md .tr-empty-title {
  font-size: 17.5px;
  margin-bottom: 6px;
}
.tr-empty-size-md .tr-empty-desc {
  font-size: 13.5px;
  max-width: 380px;
  margin-bottom: 18px;
}

/* Large (Full page views, hero empty states) */
.tr-empty-size-lg {
  padding: 56px 32px;
}
.tr-empty-size-lg .tr-empty-illustration-wrap {
  width: 230px;
  height: 180px;
  margin-bottom: 24px;
}
.tr-empty-size-lg .tr-empty-title {
  font-size: 21px;
  margin-bottom: 8px;
}
.tr-empty-size-lg .tr-empty-desc {
  font-size: 14.5px;
  max-width: 440px;
  margin-bottom: 22px;
}

/* Compact override */
.tr-empty-compact {
  padding: 16px 12px !important;
}
.tr-empty-compact .tr-empty-illustration-wrap {
  width: 90px !important;
  height: 72px !important;
  margin-bottom: 8px !important;
}
.tr-empty-compact .tr-empty-title {
  font-size: 13.5px !important;
  margin-bottom: 3px !important;
}
.tr-empty-compact .tr-empty-desc {
  font-size: 11.5px !important;
  margin-bottom: 10px !important;
  max-width: 240px !important;
}

/* ── Illustration Container ──────────────────────────────────────────────── */
.tr-empty-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.tr-empty-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Custom Image element fallback */
.tr-empty-custom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Custom Icon Circle */
.tr-empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFF0E6;
  border: 1.5px solid #FFD9C0;
  color: #ee822b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(238, 130, 43, 0.12);
}

/* ── Micro-Animations ────────────────────────────────────────────────────── */
.tr-empty-animated .tr-anim-floating {
  animation: trEmptyBob 3.4s ease-in-out infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-floating-slow {
  animation: trEmptyBobSlow 4.2s ease-in-out infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-sparkle-1 {
  animation: trEmptySparkle 2.6s ease-in-out infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-sparkle-2 {
  animation: trEmptySparkle 2.6s ease-in-out 0.9s infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-sparkle-3 {
  animation: trEmptySparkle 2.6s ease-in-out 1.7s infinite;
  transform-origin: center center;
}

.tr-empty-animated .tr-anim-shadow {
  animation: trEmptyShadowScale 3.4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes trEmptyBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes trEmptyBobSlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
}

@keyframes trEmptySparkle {
  0%, 100% {
    transform: scale(0.65) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15) rotate(18deg);
    opacity: 1;
  }
}

@keyframes trEmptyShadowScale {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.16;
  }
}

/* ── Content & Typography ────────────────────────────────────────────────── */
.tr-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tr-empty-title {
  font-weight: 800;
  color: #1B3A6B;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

.tr-empty-desc {
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ── Action Buttons Container ────────────────────────────────────────────── */
.tr-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Primary Empty Action Button */
.tr-empty-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ee822b;
  color: #ffffff;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(238, 130, 43, 0.25);
  transition: all 0.18s ease;
}

.tr-empty-btn-primary:hover {
  background: #d96b14;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 130, 43, 0.35);
}

.tr-empty-btn-primary:active {
  transform: translateY(0);
}

/* Secondary Empty Action Button */
.tr-empty-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.tr-empty-btn-secondary:hover {
  border-color: #ee822b;
  color: #ee822b;
  background: #fff8f2;
}

.tr-empty-btn-secondary:active {
  transform: translateY(0);
}

/* Link-style secondary */
.tr-empty-btn-link {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.tr-empty-btn-link:hover {
  color: #ee822b;
}

/* Small button overrides */
.tr-empty-size-sm .tr-empty-btn-primary,
.tr-empty-size-sm .tr-empty-btn-secondary,
.tr-empty-compact .tr-empty-btn-primary,
.tr-empty-compact .tr-empty-btn-secondary {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 7px;
}

/* ── Custom Injected Children ────────────────────────────────────────────── */
.tr-empty-extra {
  margin-top: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ─── Trayrand Illustrate State Component Styles ────────────────────────── */

.tr-illustrate-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  padding: 16px 12px;
  position: relative;
  user-select: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tr-illustrate-state * {
  box-sizing: border-box;
}

/* ── Size Presets ────────────────────────────────────────────────────────── */
.tr-illustrate-size-sm {
  padding: 8px 12px;
}
.tr-illustrate-size-sm .tr-illustrate-illustration-wrap {
  width: 130px;
  height: 104px;
  margin-bottom: 8px;
}
.tr-illustrate-size-sm .tr-illustrate-title {
  font-size: 14px;
  margin-bottom: 3px;
}
.tr-illustrate-size-sm .tr-illustrate-desc {
  font-size: 12px;
  max-width: 280px;
  margin-bottom: 8px;
}

.tr-illustrate-size-md {
  padding: 14px 16px;
}
.tr-illustrate-size-md .tr-illustrate-illustration-wrap {
  width: 175px;
  height: 135px;
  margin-bottom: 10px;
}
.tr-illustrate-size-md .tr-illustrate-title {
  font-size: 16px;
  margin-bottom: 4px;
}
.tr-illustrate-size-md .tr-illustrate-desc {
  font-size: 13px;
  max-width: 320px;
  margin-bottom: 10px;
}

.tr-illustrate-size-lg {
  padding: 24px 20px;
}
.tr-illustrate-size-lg .tr-illustrate-illustration-wrap {
  width: 220px;
  height: 170px;
  margin-bottom: 14px;
}
.tr-illustrate-size-lg .tr-illustrate-title {
  font-size: 18px;
  margin-bottom: 6px;
}
.tr-illustrate-size-lg .tr-illustrate-desc {
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 14px;
}

/* ── Compact Modifier ────────────────────────────────────────────────────── */
.tr-illustrate-compact {
  padding: 4px 8px !important;
}
.tr-illustrate-compact .tr-illustrate-illustration-wrap {
  width: 120px !important;
  height: 95px !important;
  margin-bottom: 4px !important;
}
.tr-illustrate-compact .tr-illustrate-title {
  font-size: 13.5px !important;
  margin-bottom: 2px !important;
}
.tr-illustrate-compact .tr-illustrate-desc {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}

/* ── Bordered Mode ───────────────────────────────────────────────────────── */
.tr-illustrate-bordered {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 27, 48, 0.04);
}

/* ── SVG Container ───────────────────────────────────────────────────────── */
.tr-illustrate-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tr-illustrate-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.tr-illustrate-custom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── Content & Typography ────────────────────────────────────────────────── */
.tr-illustrate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tr-illustrate-title {
  font-weight: 700;
  color: var(--tr-navy-dark, #1B3A6B);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

.tr-illustrate-desc {
  color: var(--tr-text-secondary, #64748b);
  line-height: 1.45;
  margin: 0;
}

.tr-illustrate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.tr-illustrate-extra {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ─── Manual Payment Panel (Desktop Embedded Panel & Mobile Bottom Drawer) ───── */

.tr-manual-payment-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.tr-manual-payment-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 485px;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.tr-manual-payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--tr-white);
  border-bottom: 1px solid var(--tr-grey-100);
  position: relative;
  flex-shrink: 0;
}

.tr-manual-payment-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-manual-payment-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--tr-radius-sm);
  background: var(--tr-soft-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--tr-grey-200);
  flex-shrink: 0;
}

.tr-manual-payment-emblem {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tr-manual-payment-brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.tr-manual-payment-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tr-navy-dark);
  letter-spacing: -0.02em;
}

.tr-manual-payment-channel-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tr-manual-payment-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  margin-right: 32px; /* clearance for close button */
}

.tr-manual-payment-email {
  font-size: 0.78rem;
  color: var(--tr-text-secondary);
  font-weight: 500;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-manual-payment-amount-row {
  font-size: 0.9rem;
  color: var(--tr-navy-dark);
  font-weight: 500;
}

.tr-manual-payment-amount {
  color: var(--tr-primary);
  font-weight: 800;
}

.tr-manual-payment-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: var(--tr-radius-pill);
  border: none;
  background: var(--tr-grey-100);
  color: var(--tr-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-manual-payment-close-btn:hover {
  background: var(--tr-grey-200);
  color: var(--tr-navy-dark);
}

/* ─── Scrollable Body ──────────────────────────────────────────────────────── */
.tr-manual-payment-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 18px 22px;
  background: var(--tr-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.tr-manual-payment-instructions-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Network Selector Tabs */
.tr-manual-payment-networks-bar {
  display: flex;
  gap: 6px;
  background: var(--tr-soft-white);
  padding: 4px;
  border-radius: var(--tr-radius-md);
  border: 1px solid var(--tr-grey-200);
}

.tr-manual-payment-net-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: var(--tr-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-manual-payment-net-tab:hover {
  color: var(--tr-navy-dark);
}

.tr-manual-payment-net-tab.active {
  background: var(--tr-white);
  color: var(--tr-navy-dark);
  border-color: var(--tr-grey-300);
  box-shadow: var(--tr-shadow-xs);
}

.tr-manual-payment-net-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--tr-radius-pill);
  flex-shrink: 0;
}

/* USSD Row */
.tr-manual-payment-ussd-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--tr-text-secondary);
  text-align: center;
  padding: 2px 0;
}

.tr-manual-payment-ussd-row strong {
  color: var(--tr-navy-dark);
  font-family: Consolas, 'SF Mono', monospace;
  font-size: 0.95rem;
  margin: 0 4px;
  letter-spacing: 0.02em;
}

/* Copy List */
.tr-manual-payment-copy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-manual-payment-copy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: var(--tr-soft-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tr-manual-payment-copy-card:hover {
  background: var(--tr-white);
  border-color: var(--tr-grey-300);
}

.tr-manual-payment-copy-card.hero {
  background: var(--tr-orange-light);
  border-color: var(--tr-orange-mid);
}

.tr-manual-payment-copy-card.hero:hover {
  background: var(--tr-orange-light);
  border-color: var(--tr-primary);
}

.tr-manual-payment-copy-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tr-manual-payment-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-manual-payment-copy-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-text-secondary);
}

.tr-manual-payment-req-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--tr-error);
  background: var(--tr-orange-mid);
  padding: 1px 6px;
  border-radius: var(--tr-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--tr-error);
}

.tr-manual-payment-copy-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tr-manual-payment-copy-val {
  font-family: Consolas, 'SF Mono', monospace;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--tr-navy-dark);
}

.tr-manual-payment-copy-val.ref {
  color: var(--tr-primary);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tr-manual-payment-copy-val.amount {
  color: var(--tr-navy-dark);
  font-weight: 800;
}

.tr-manual-payment-copy-tag {
  font-size: 0.74rem;
  color: var(--tr-text-secondary);
  font-weight: 500;
}

.tr-manual-payment-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--tr-radius-sm);
  border: 1px solid var(--tr-grey-300);
  background: var(--tr-white);
  color: var(--tr-text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.tr-manual-payment-copy-btn:hover {
  background: var(--tr-grey-100);
  border-color: var(--tr-grey-400);
  color: var(--tr-navy-dark);
}

.tr-manual-payment-copy-btn.copied {
  background: var(--tr-primary);
  border-color: var(--tr-primary);
  color: var(--tr-white);
}

.tr-manual-payment-copy-btn.hero-btn {
  background: var(--tr-primary);
  border-color: var(--tr-primary);
  color: var(--tr-white);
}

.tr-manual-payment-copy-btn.hero-btn:hover {
  background: var(--tr-orange-dark);
  border-color: var(--tr-orange-dark);
}

.tr-manual-payment-copy-btn.hero-btn.copied {
  background: var(--tr-orange-dark);
  border-color: var(--tr-orange-dark);
}

/* Action Buttons */
.tr-manual-payment-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.tr-manual-payment-btn-primary {
  width: 100%;
  height: 46px;
  background: var(--tr-primary);
  color: var(--tr-white);
  border: none;
  border-radius: var(--tr-radius-md);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--tr-shadow-orange);
  transition: all 0.15s ease;
}

.tr-manual-payment-btn-primary:hover:not(:disabled) {
  background: var(--tr-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(238, 130, 43, 0.35);
}

.tr-manual-payment-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.tr-manual-payment-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tr-manual-payment-btn-secondary {
  width: 100%;
  height: 40px;
  background: var(--tr-soft-white);
  color: var(--tr-text-primary);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.tr-manual-payment-btn-secondary:hover {
  background: var(--tr-grey-100);
  border-color: var(--tr-grey-300);
  color: var(--tr-navy-dark);
}

/* SMS Transaction ID Accordion */
.tr-manual-payment-sms-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.tr-manual-payment-sms-toggle {
  background: none;
  border: none;
  color: var(--tr-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.tr-manual-payment-sms-toggle:hover {
  color: var(--tr-navy-dark);
}

.tr-manual-payment-sms-form {
  display: flex;
  gap: 6px;
  animation: tr-fade-in 0.2s ease-out;
}

.tr-manual-payment-sms-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--tr-radius-sm);
  border: 1.5px solid var(--tr-grey-200);
  background: var(--tr-white);
  font-size: 0.84rem;
  color: var(--tr-navy-dark);
  outline: none;
  transition: border-color 0.15s ease;
}

.tr-manual-payment-sms-input:focus {
  border-color: var(--tr-primary);
}

.tr-manual-payment-sms-submit {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--tr-radius-sm);
  border: none;
  background: var(--tr-navy-dark);
  color: var(--tr-white);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease;
}

.tr-manual-payment-sms-submit:hover:not(:disabled) {
  background: var(--tr-navy);
}

.tr-manual-payment-sms-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Waiting / Verifying State */
.tr-manual-payment-waiting-view {
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tr-manual-payment-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  width: 100%;
}

.tr-manual-payment-status-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tr-navy-dark);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.tr-manual-payment-status-desc {
  font-size: 0.86rem;
  color: var(--tr-text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.45;
  max-width: 320px;
}

.tr-manual-payment-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--tr-orange-light);
  border: 1px solid var(--tr-orange-mid);
  border-radius: var(--tr-radius-sm);
  color: var(--tr-orange-dark);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.tr-manual-payment-verify-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--tr-text-secondary);
  margin-top: 8px;
}

.tr-manual-payment-verify-hint.center {
  justify-content: center;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.tr-manual-payment-footer {
  padding: 12px 20px;
  background: var(--tr-soft-white);
  border-top: 1px solid var(--tr-grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--tr-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

/* ─── Mobile Drawer Behavior (<= 768px) ────────────────────────────────────── */
@media screen and (max-width: 768px) {
  .tr-manual-payment-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
    pointer-events: auto;
  }

  .tr-manual-payment-panel {
    pointer-events: auto;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    min-height: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    border: 1px solid var(--tr-grey-200);
    border-bottom: none;
    background: var(--tr-white);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
    animation: tr-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .tr-manual-payment-email {
    max-width: 130px;
  }

  .tr-manual-payment-brand-title {
    display: none;
  }

  .tr-manual-payment-body {
    padding: 16px 16px 14px 16px;
  }
}
.tr-tray-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  animation: tr-fade-in 0.25s ease-out;
  padding-bottom: 96px;
  /* Space for the persistent action dock on desktop */
}

/* Hide website footer on dedicated native-like tray checkout page */
.tr-app-body:has(.tr-tray-page) .tr-general-footer {
  display: none !important;
}

.tr-tray-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--tr-space-3);
  margin-bottom: var(--tr-space-4);
}

.tr-tray-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
  text-decoration: none;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  padding: 0.45rem 0.85rem;
  border-radius: var(--tr-radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.tr-tray-back-link:hover {
  color: var(--tr-navy);
  border-color: var(--tr-grey-300);
  background: var(--tr-grey-50);
  transform: translateX(-2px);
}

.tr-tray-page-title-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--tr-space-3);
}

.tr-tray-page-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tr-navy);
}

.tr-tray-count-badge {
  background: #fff3ea;
  color: #ff6b00;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.tr-tray-campus-pill,
.tr-tray-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  padding: 0.4rem 0.75rem;
  border-radius: var(--tr-radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
}

/* ─── Stepper Progress Bar (Native App Style) ────────────────────────────── */
.tr-tray-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-2);
  margin-bottom: var(--tr-space-5);
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  padding: 0.6rem 1rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

.tr-tray-stepper-bar.tr-tray-stepper-confirmed {
  padding: 0.85rem 1.25rem;
}

.tr-tray-stepper-bar.tr-tray-stepper-confirmed .tr-step-line.active {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00, #ff8833);
}

.tr-tray-step-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: var(--tr-radius-md);
  color: var(--tr-text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tr-tray-step-tab:hover {
  color: var(--tr-navy);
  background: var(--tr-grey-50);
}

.tr-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tr-grey-150, #edf2f7);
  color: var(--tr-grey-600, #718096);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.tr-tray-step-tab.active {
  color: #ff6b00;
  background: #fff8f0;
}

.tr-tray-step-tab.active .tr-step-num {
  background: #ff6b00;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35);
}

.tr-tray-step-tab.completed {
  color: var(--tr-navy);
}

.tr-tray-step-tab.completed .tr-step-num {
  background: #ecfdf5;
  color: #059669;
}

.tr-step-line {
  flex: 1;
  height: 2px;
  background: var(--tr-grey-200);
  border-radius: 999px;
  transition: background 0.25s ease;
  min-width: 12px;
}

.tr-step-line.active {
  background: #ff6b00;
}

/* ─── Grid Layout ──────────────────────────────────────────────────────────── */
.tr-tray-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--tr-space-6);
  align-items: start;
  width: 100%;
  min-width: 0;
}

@media screen and (max-width: 1100px) {
  .tr-tray-grid {
    grid-template-columns: 100%;
    gap: var(--tr-space-5);
  }

  .tr-tray-side-col {
    position: static;
    top: auto;
  }
}

.tr-tray-main-col {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-5);
  min-width: 0;
  width: 100%;
  min-height: 485px;
}

.tr-tray-side-col {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-4);
  min-width: 0;
  width: 100%;
}

/* ─── Card Blocks ──────────────────────────────────────────────────────────── */
.tr-tray-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  padding: var(--tr-space-5);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.tr-step-enter {
  animation: tr-step-slide 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tr-step-slide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tr-tray-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--tr-space-4);
  padding-bottom: var(--tr-space-3);
  border-bottom: 1px solid var(--tr-grey-100);
}

.tr-tray-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tr-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tr-tray-card-title svg {
  color: #ff6b00;
}

.tr-tray-card-subtitle {
  font-size: 0.84rem;
  color: var(--tr-text-muted);
  margin-top: 0.2rem;
}

.tr-tray-card-body {
  margin-bottom: var(--tr-space-2);
}

.tr-tray-card-footer-action {
  display: none !important;
}

/* ─── Vendor Item Sections ─────────────────────────────────────────────────── */
.tr-tray-vendor-block {
  margin-bottom: var(--tr-space-4);
  border: 1px solid var(--tr-grey-150, #edf2f7);
  border-radius: var(--tr-radius-md);
  overflow: hidden;
}

.tr-tray-vendor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tr-grey-50);
  padding: 0.65rem var(--tr-space-4);
  border-bottom: 1px solid var(--tr-grey-150, #edf2f7);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tr-navy);
}

.tr-tray-vendor-head span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tr-tray-items-list {
  display: flex;
  flex-direction: column;
}

.tr-tray-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-3);
  padding: var(--tr-space-3) var(--tr-space-4);
  border-bottom: 1px solid var(--tr-grey-100);
}

.tr-tray-row:last-child {
  border-bottom: none;
}

.tr-tray-row-left {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
  flex: 1;
  min-width: 0;
}

.tr-tray-row-img {
  width: 58px;
  height: 58px;
  border-radius: var(--tr-radius-md);
  object-fit: cover;
  background: var(--tr-grey-100);
  flex-shrink: 0;
  border: 1px solid var(--tr-grey-200);
}

.tr-tray-row-info {
  flex: 1;
  min-width: 0;
}

.tr-tray-row-name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tr-navy);
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tr-tray-row-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ff6b00;
}

.tr-tray-row-right {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3);
  flex-shrink: 0;
}

.tr-tray-row-subtotal {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tr-navy);
  min-width: 75px;
  text-align: right;
}

@media screen and (max-width: 520px) {
  .tr-tray-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--tr-space-2);
  }

  .tr-tray-row-right {
    justify-content: space-between;
    padding-left: 68px;
  }

  .tr-tray-row-subtotal {
    min-width: auto;
  }
}

/* ─── Stepper ──────────────────────────────────────────────────────────────── */
.tr-tray-stepper-box {
  display: flex;
  align-items: center;
  border-radius: var(--tr-radius-md);
  padding: 2px;
  border: 1px solid var(--tr-grey-200);
}


.tr-tray-step-count {
  min-width: 30px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tr-navy);
}

/* ─── Multi-Vendor Banner ──────────────────────────────────────────────────── */
.tr-tray-mv-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8f0;
  border: 1px solid #ffd8b2;
  border-radius: var(--tr-radius-md);
  padding: 0.85rem var(--tr-space-4);
  margin-bottom: var(--tr-space-4);
  font-size: 0.86rem;
  line-height: 1.45;
  color: #9a3412;
}

.tr-tray-error-banner {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
  font-weight: 600;
}

.tr-tray-mv-alert svg {
  flex-shrink: 0;
  color: #ea580c;
  margin-top: 2px;
}

.tr-tray-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--tr-space-2);
}

@media screen and (max-width: 580px) {
  .tr-tray-input-grid {
    grid-template-columns: 1fr;
  }
}

.tr-tray-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tr-tray-field.full {
  grid-column: 1 / -1;
}

.tr-tray-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tr-text-secondary);
  letter-spacing: 0.01em;
}

.tr-tray-field-label span.req {
  color: #ef4444;
  margin-left: 2px;
}

.tr-tray-select-input,
.tr-tray-text-input,
.tr-tray-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--tr-white);
  color: var(--tr-navy);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.tr-tray-select-input:focus,
.tr-tray-text-input:focus,
.tr-tray-textarea:focus {
  outline: none;
  border-color: #ff6b00;
}

.tr-tray-textarea {
  resize: vertical;
  min-height: 72px;
}

.tr-tray-field-hint {
  font-size: 0.78rem;
  color: var(--tr-text-muted);
}

/* ─── "I'm Ordering for Someone" Checkbox ───────────────────────────────────── */
.tr-tray-extra-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--tr-grey-50);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  margin-top: 0.1rem;
}

.tr-tray-extra-check-card:hover {
  border-color: #ffd8b2;
  background: #fffcf8;
}

.tr-tray-checkbox-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tr-tray-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: var(--tr-radius-sm);
  border: 1.5px solid var(--tr-grey-300);
  background: var(--tr-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
  color: #ffffff;
}

.tr-tray-checkbox-box.checked {
  background: #ff6b00;
  border-color: #ff6b00;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35);
}

.tr-tray-extra-check-meta {
  flex: 1;
  min-width: 0;
}

.tr-tray-extra-check-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tr-navy);
}

.tr-tray-extra-check-desc {
  font-size: 0.8rem;
  color: var(--tr-text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ─── Logged In Sender Banner ──────────────────────────────────────────────── */
.tr-tray-sender-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--tr-navy);
}

.tr-tray-sender-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tr-tray-sender-left svg {
  color: var(--tr-text-muted);
}

.tr-tray-sender-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tr-text-muted);
  background: var(--tr-grey-200);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ─── Receiver Block ───────────────────────────────────────────────────────── */
.tr-tray-receiver-block {
  background: #fffaf5;
  border: 1px solid #fed7aa;
  border-radius: var(--tr-radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.tr-tray-receiver-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.tr-tray-receiver-head svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.tr-tray-receiver-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #9a3412;
}

.tr-tray-receiver-sub {
  font-size: 0.8rem;
  color: #c2410c;
  margin-top: 0.15rem;
}

/* ─── Guest Step-by-Step (Small-Small with Pen Edit) ───────────────────────── */
.tr-tray-guest-step-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tr-tray-answered-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.tr-tray-answered-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-tray-answered-item:hover {
  border-color: #ff6b00;
  background: #fff8f0;
}

.tr-tray-answered-item .reg-answered-check {
  color: #10b981;
}

.tr-tray-answered-item .reg-answered-label {
  color: var(--tr-text-secondary);
  font-weight: 500;
  font-size: 0.82rem;
}

.tr-tray-answered-item .reg-answered-val {
  color: var(--tr-navy);
  font-weight: 700;
  font-size: 0.88rem;
}

.tr-answered-pen-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--tr-grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--tr-radius-sm);
  transition: all 0.15s ease;
}

.tr-tray-answered-item:hover .tr-answered-pen-btn {
  color: #ff6b00;
  background: #fff3ea;
}

.tr-tray-substep-card {
  background: var(--tr-white);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 1.1rem var(--tr-space-4);
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.05);
  animation: tr-step-slide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tr-tray-substep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.tr-tray-substep-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff6b00;
  background: #fff3ea;
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tr-tray-substep-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tr-navy);
  margin-bottom: 0.2rem;
}

.tr-tray-substep-sub {
  font-size: 0.82rem;
  color: var(--tr-text-muted);
  margin-bottom: 0.85rem;
}

.tr-tray-substep-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tr-tray-substep-input {
  flex: 1;
  font-size: 0.95rem;
}

.tr-tray-substep-btn {
  padding: 0.65rem 1.15rem !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
}

.tr-tray-all-answered-prompt {
  font-size: 0.78rem;
  color: var(--tr-text-muted);
  text-align: center;
  padding: 0.35rem;
  font-style: italic;
}

/* ─── Payment Methods ──────────────────────────────────────────────────────── */
.tr-tray-pay-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--tr-space-3);
  margin-top: 0.25rem;
}

.tr-tray-pay-card {
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 0.85rem var(--tr-space-3);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  background: var(--tr-white);
  transition: all 0.2s ease;
  text-align: left;
}

.tr-tray-pay-card:hover {
  border-color: #ff9d4d;
  background: var(--tr-grey-50);
}

.tr-tray-pay-card.active {
  border-color: #ff6b00;
  background: #fff8f0;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.tr-tray-pay-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tr-navy);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tr-tray-pay-desc {
  font-size: 0.78rem;
  color: var(--tr-text-muted);
}

/* ─── Summary Breakdown ────────────────────────────────────────────────────── */
.tr-tray-summary-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  padding: var(--tr-space-5);
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.06);
}

.tr-tray-summary-title {
  margin: 0 0 var(--tr-space-4);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tr-navy);
}

.tr-tray-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: var(--tr-space-4);
  border-bottom: 1px solid var(--tr-grey-150, #edf2f7);
}

.tr-tray-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--tr-text-secondary);
}

.tr-tray-sum-row.highlight {
  color: #ea580c;
  font-weight: 600;
}

.tr-tray-sum-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tr-navy);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 2px dashed var(--tr-grey-200);
}

.tr-tray-sum-row.total span:last-child {
  color: #ff6b00;
}

.tr-tray-clear-all-btn {
  width: 100%;
  margin-top: var(--tr-space-2);
  background: transparent;
  border: none;
  font-size: 0.82rem;
  color: var(--tr-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.2s ease;
}

.tr-tray-clear-all-btn:hover {
  color: #ef4444;
}

.tr-tray-guarantee-box {
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: var(--tr-space-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tr-tray-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--tr-text-secondary);
}

.tr-tray-guarantee-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ─── PC Preview Sidebar (Replaces right column on checkout steps) ──────────── */
.tr-tray-preview-card {
  border-color: #ffd8bf;
  background: linear-gradient(180deg, #ffffff 0%, #fffcf9 100%);
}

.tr-tray-preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--tr-space-4);
  padding-bottom: var(--tr-space-3);
  border-bottom: 1px solid var(--tr-grey-100);
}

.tr-tray-preview-edit-btn {
  background: #fff3ea;
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: #ff6b00;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--tr-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tr-tray-preview-edit-btn:hover {
  background: #ff6b00;
  color: #ffffff;
}

/* ─── Compact Food Summary Bar in Preview ─────────────────────────────────── */
.tr-tray-preview-food-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  margin-bottom: var(--tr-space-4);
}

.tr-food-summary-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--tr-navy);
  font-weight: 600;
}

.tr-food-summary-badge strong {
  color: #ff6b00;
}

.tr-food-summary-dest {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--tr-text-muted);
}

.tr-tray-preview-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: var(--tr-space-4);
}

.tr-tray-preview-item-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-150, #edf2f7);
  border-radius: var(--tr-radius-md);
}

.tr-tray-preview-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--tr-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--tr-grey-200);
}

.tr-tray-preview-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tr-tray-preview-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-tray-preview-item-meta {
  font-size: 0.72rem;
  color: var(--tr-text-muted);
}

.tr-tray-preview-item-subtotal {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff6b00;
  white-space: nowrap;
}

/* ─── Preview Tags ─────────────────────────────────────────────────────────── */
.tr-tray-preview-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--tr-space-4);
}

.tr-tray-preview-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--tr-grey-50);
  border: 1px dashed var(--tr-grey-250, #cbd5e1);
  border-radius: var(--tr-radius-md);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.tr-tray-preview-tag.filled {
  background: #f8fafc;
  border-style: solid;
  border-color: var(--tr-grey-200);
}

.tr-tray-preview-tag-left {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.tr-tray-preview-tag-left svg {
  color: #ff6b00;
  margin-top: 2px;
  flex-shrink: 0;
}

.tr-preview-tag-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tr-preview-tag-val {
  font-size: 0.82rem;
  color: var(--tr-navy);
  white-space: normal;
  word-break: break-word;
}

.tr-preview-tag-change {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff6b00;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--tr-radius-sm);
  transition: all 0.15s ease;
}

.tr-preview-tag-change:hover {
  text-decoration: underline;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.tr-tray-empty-wrap {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--tr-space-4);
  max-width: 540px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

.tr-tray-empty-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff3ea;
  color: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tr-space-2);
}

.tr-tray-empty-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--tr-navy);
}

.tr-tray-empty-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tr-text-muted);
  max-width: 360px;
  line-height: 1.5;
}


/* ─── Order Placement In-Grid Loader Card ────────────────────────────────── */
.tr-tray-loader-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--tr-space-10) var(--tr-space-6);
  text-align: center;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-sm);
  animation: tr-fade-in 0.25s ease-out;
}

/* ─── Order Confirmation Full Page View ──────────────────────────────────── */
.tr-tray-confirmed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--tr-radius-md);
}

.tr-tray-confirmed-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: tr-pulse-green 1.8s infinite;
}

@keyframes tr-pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tr-tray-step-tab.completed-step {
  color: #10b981;
}

.tr-tray-step-tab.completed-step .tr-step-num {
  background: #ecfdf5;
  color: #10b981;
  border: 1.5px solid #a7f3d0;
}

.tr-tray-confirmed-card {
  padding: var(--tr-space-6);
  border-radius: var(--tr-radius-lg);
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  box-shadow: var(--tr-shadow-sm);
}

.tr-tray-confirmed-card.tr-has-manual-panel {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.tr-confirmed-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: var(--tr-space-4);
}

.tr-confirmed-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tr-space-3);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.25);
  animation: tr-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tr-pop-in {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.tr-confirmed-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tr-navy);
}

.tr-confirmed-subtext {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--tr-text-secondary);
  max-width: 520px;
  line-height: 1.5;
}

/* Horizontal line divider below top header */
.tr-confirmed-card-divider {
  width: 100%;
  height: 1px;
  background: var(--tr-grey-200);
  margin: var(--tr-space-4) 0 var(--tr-space-5);
}

/* ─── Two-Column Split Layout (as sketched) ──────────────────────────────── */
.tr-confirmed-card-split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--tr-space-6);
  align-items: start;
}

@media (max-width: 1260px) {
  .tr-confirmed-card-split {
    grid-template-columns: 1fr;
    gap: var(--tr-space-5);
  }
}
/* @media (max-width: 900px) {
  .tr-confirmed-card-split {
    grid-template-columns: 1fr;
    gap: var(--tr-space-5);
  }
} */

/* Left Side: Illustration Pane */
.tr-confirmed-split-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
}

.tr-confirmed-illustration-pane {
  display: grid;
  /* flex-direction: column; */
  align-items: center;
  width: 100%;
}

.tr-confirmed-illustration-pane svg {
  max-width: 190px;
  height: auto;
  place-self: center;
}

.tr-confirmed-dispatch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  width: max-content;
}

.tr-confirmed-side{
  display: flex;
  width: 100%;
  gap: var(--tr-space-1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.tr-confirmed-side p{
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  margin: 10px;
  
}
/* Right Side: Order Info */
.tr-confirmed-split-right {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-4);
  min-width: 0;
}

/* Order Reference & Security PIN Cards */
.tr-confirmed-key-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tr-confirmed-ref-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 0.65rem 1rem;
}

.tr-key-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-text-muted);
}

.tr-key-val-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tr-key-ref-val {
  font-family: Consolas, 'SF Mono', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tr-navy);
  letter-spacing: 1px;
}

.tr-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-300);
  border-radius: var(--tr-radius-sm);
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-copy-btn:hover {
  background: var(--tr-grey-100);
  color: var(--tr-navy);
  border-color: var(--tr-grey-400);
}

.tr-copied-icon {
  color: #10b981;
}

/* Enhanced Handoff PIN Card */
.tr-confirmed-pin-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--tr-radius-md);
  padding: 0.95rem 1.15rem;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.06);
}

.tr-pin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.tr-pin-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}

.tr-pin-digits-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.tr-pin-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 46px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--tr-radius-md);
  font-family: Consolas, 'SF Mono', monospace;
  font-size: 1.55rem;
  font-weight: 900;
  color: #c2410c;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.1);
}

.tr-pin-card-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #9a3412;
  line-height: 1.4;
}

/* Destination & Recipient Meta Grid */
.tr-confirmed-dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 0.85rem 1.05rem;
}


.tr-dest-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tr-dest-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tr-text-muted);
}

.tr-dest-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tr-navy);
}

.tr-dest-val.eta {
  color: var(--tr-orange);
}

.tr-dest-val.total {
  color: var(--tr-navy);
  font-weight: 800;
}

.tr-confirmed-notes-card {
  margin-top: -0.25rem;
  background: var(--tr-grey-50);
  border: 1px dashed var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}

.tr-confirmed-notes-label {
  font-weight: 700;
  color: var(--tr-text-secondary);
  margin-right: 0.35rem;
}

.tr-confirmed-notes-text {
  display: inline;
  margin: 0;
  color: var(--tr-text-muted);
  font-style: italic;
}

/* Divider Line in right column (as sketched) */
.tr-confirmed-info-divider {
  width: 100%;
  height: 1px;
  background: var(--tr-grey-200);
  margin: 0.15rem 0;
}

/* Notification Box ("if mail sent or sms, let them know here") */
.tr-confirmed-notif-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--tr-radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tr-confirmed-notif-box .tr-notif-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #10b981;
}

.tr-confirmed-notif-box .tr-notif-desc {
  margin: 0;
}

/* Action Buttons */
.tr-confirmed-actions-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.tr-confirm-content-info-box{
  margin-top: 1rem;
}

.tr-confirmed-track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #ff6b00 0%, #e05d00 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--tr-radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
  transition: all 0.2s ease;
}

.tr-confirmed-track-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.45);
}

.tr-confirmed-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  color: var(--tr-text-secondary);
  border-radius: var(--tr-radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tr-confirmed-menu-btn:hover {
  color: var(--tr-navy);
  border-color: var(--tr-grey-300);
  background: var(--tr-grey-50);
}

/* Responsive visibility for confirmed card actions */
.tr-desktop-only-btn {
  display: inline-flex;
}

.tr-mobile-only-btn {
  display: none;
}

/* Mobile In-Card Itemized Receipt View */
.tr-confirmed-mobile-receipt-pane {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-4);
  animation: tr-fade-in 0.25s ease-out;
}

.tr-mobile-receipt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
}

.tr-mobile-receipt-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tr-mobile-receipt-heading h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--tr-navy);
}

@media (max-width: 900px) {
  .tr-desktop-only-btn {
    display: none !important;
  }

  .tr-mobile-only-btn {
    display: inline-flex !important;
  }

  .tr-tray-page[data-step="confirmed"] .tr-tray-side-col {
    display: none !important;
  }
}

/* Confirmed Receipt Card in Sidebar */
.tr-confirmed-receipt-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-sm);
  padding: var(--tr-space-5);
}

.tr-confirmed-ref-badge {
  font-family: Consolas, 'SF Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--tr-grey-100);
  color: var(--tr-navy);
  padding: 0.25rem 0.6rem;
  border-radius: var(--tr-radius-sm);
  border: 1px solid var(--tr-grey-200);
}

.tr-confirmed-items-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: var(--tr-space-4);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--tr-grey-200);
  padding-bottom: 1rem;
}

.tr-confirmed-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.tr-confirmed-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.tr-confirmed-item-name {
  font-weight: 600;
  color: var(--tr-navy);
}

.tr-confirmed-item-vendor {
  font-size: 0.74rem;
  color: var(--tr-text-muted);
}

.tr-confirmed-item-note {
  font-size: 0.72rem;
  color: var(--tr-orange);
  font-style: italic;
}

.tr-confirmed-item-fin {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  white-space: nowrap;
}

.tr-confirmed-item-qty {
  font-size: 0.74rem;
  color: var(--tr-text-muted);
}

.tr-confirmed-item-price {
  font-weight: 700;
  color: var(--tr-navy);
}

.tr-confirmed-items-fallback {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--tr-text-muted);
}

.tr-confirmed-payment-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--tr-grey-50);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: var(--tr-space-4);
  font-size: 0.8rem;
}

.tr-confirmed-payment-label {
  color: var(--tr-text-muted);
}

.tr-confirmed-payment-val {
  color: var(--tr-navy);
  font-weight: 700;
}

.tr-tray-card-clear-btn {
  width: auto;
  margin-top: 0;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  color: var(--tr-text-muted);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--tr-radius-sm);
  transition: all 0.2s ease;
}

.tr-tray-card-clear-btn:hover {
  color: var(--tr-error);
  background: var(--tr-error-light);
}

.tr-tray-vendor-count {
  font-size: 0.78rem;
  color: var(--tr-text-muted);
}

.tr-tray-row-note {
  font-size: 0.75rem;
  color: var(--tr-text-muted);
  font-style: italic;
  margin-top: 2px;
}

.tr-tray-add-more-wrap {
  text-align: center;
  padding-top: var(--tr-space-2);
  margin-bottom: var(--tr-space-2);
}

.tr-tray-add-more-link {
  font-size: 0.86rem;
  color: var(--tr-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--tr-transition-fast);
}

.tr-tray-add-more-link:hover {
  color: var(--tr-orange-dark);
  text-decoration: underline;
}

.tr-tray-back-link-sm {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.tr-tray-badge-verified {
  background: var(--tr-success-light);
  color: var(--tr-success);
  border-color: rgba(16, 185, 129, 0.3);
}

.tr-tray-receiver-grid {
  margin-top: var(--tr-space-3);
}

.tr-tray-preview-title {
  margin: 0;
}

/* ─── Persistent Native Action Dock (Desktop + Mobile) ─────────────────────── */
.tr-tray-dock-bar,
.tr-tray-mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--tr-grey-200);
  box-shadow: 0 -4px 20px -2px rgba(15, 23, 42, 0.08);
  z-index: 90;
  box-sizing: border-box;
  align-items: center;
  transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: tr-slide-up 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sidebar Synchronization on Desktop */
@media screen and (min-width: 1025px) {

  .tr-desktop-sidebar.expanded~.tr-app-body .tr-tray-dock-bar,
  .tr-desktop-sidebar.expanded~.tr-app-body .tr-tray-mobile-bar {
    left: 240px;
  }

  .tr-desktop-sidebar.collapsed~.tr-app-body .tr-tray-dock-bar,
  .tr-desktop-sidebar.collapsed~.tr-app-body .tr-tray-mobile-bar {
    left: 72px;
  }
}

/* On tablet & responsive breakpoints */
@media screen and (max-width: 1024px) {

  .tr-tray-dock-bar,
  .tr-tray-mobile-bar {
    left: 0;
  }
}

.tr-tray-dock-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--tr-space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-4);
  box-sizing: border-box;
}

.tr-tray-dock-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.tr-dock-total-group {
  display: flex;
  flex-direction: column;
}

.tr-dock-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.tr-dock-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tr-dock-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tr-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tr-dock-count-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff6b00;
  background: #fff3ea;
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tr-dock-zone-hint {
  font-size: 0.82rem;
  color: var(--tr-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.tr-tray-dock-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.tr-dock-add-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff6b00;
  text-decoration: none;
  background: #fff8f2;
  border: 1px dashed rgba(255, 107, 0, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: var(--tr-radius-md);
  transition: all 0.2s ease;
}

.tr-dock-add-more-link:hover {
  background: #fff0e2;
  border-color: #ff6b00;
  transform: translateY(-1px);
}

.tr-dock-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tr-navy);
  background: var(--tr-grey-100);
  border: 1px solid var(--tr-grey-200);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
}

.tr-tray-dock-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tr-dock-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  padding: 0.5rem;
  border-radius: var(--tr-radius-md);
  color: var(--tr-text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tr-dock-back-btn:hover {
  color: var(--tr-navy);
  border-color: var(--tr-grey-300);
  background: var(--tr-grey-50);
}

.tr-tray-dock-cta-btn,
.tr-tray-mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #ff6b00 0%, #e05d00 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--tr-radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tr-tray-dock-cta-btn:hover,
.tr-tray-mobile-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
}

.tr-tray-dock-cta-btn:active,
.tr-tray-mobile-cta-btn:active {
  transform: translateY(1px);
}

.tr-tray-dock-cta-btn:disabled,
.tr-tray-mobile-cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tr-dock-btn-dot {
  opacity: 0.6;
  font-size: 0.9em;
}

.tr-dock-btn-price {
  font-weight: 800;
}

/* ─── Compact Payment Method Switcher (VectPack / VectiHost Pattern) ─────── */
.tr-payment-selector-compact {
  margin-top: var(--tr-space-4);
  margin-bottom: var(--tr-space-2);
}

.tr-payment-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--tr-radius-md);
  transition: all 0.2s ease;
}

.tr-payment-summary-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--tr-navy);
}

.tr-payment-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #059669;
}

.tr-payment-summary-text {
  font-size: 0.92rem;
  color: var(--tr-navy);
}

.tr-payment-summary-text strong {
  font-weight: 800;
  color: var(--tr-navy);
}

.tr-payment-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--tr-radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-payment-switch-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #047857;
}

.tr-payment-summary-hint {
  margin: 0.45rem 0 0 0.15rem;
  font-size: 0.78rem;
  color: var(--tr-text-muted);
  line-height: 1.4;
}

/* Switching mode container (Screenshot 3) */
.tr-payment-picker-box {
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: tr-fade-in 0.2s ease-out;
}

.tr-payment-picker-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tr-navy);
  margin-bottom: 0.75rem;
}

.tr-payment-options-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.tr-payment-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.4rem;
  min-width: 100px;
  background: #ffffff;
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-payment-option-card:hover {
  border-color: var(--tr-grey-300);
  background: var(--tr-grey-50);
}

.tr-payment-option-card.selected {
  border-color: #059669;
  background: #f0fdf4;
}

.tr-payment-option-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
}

.tr-payment-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-navy);
}

.tr-payment-option-card.selected .tr-payment-option-icon {
  color: #059669;
}

.tr-payment-option-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tr-navy);
}

.tr-payment-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--tr-grey-300);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tr-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-payment-cancel-btn:hover {
  background: var(--tr-grey-50);
  color: var(--tr-navy);
  border-color: var(--tr-grey-400);
}

/* ─── Confirmation Screen Payment In-Flight / Verification Card ───────────── */
.tr-payment-status-card {
  margin-bottom: var(--tr-space-4);
  padding: var(--tr-space-4);
  border-radius: var(--tr-radius-lg);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
  animation: tr-fade-in 0.3s ease-out;
}

.tr-payment-status-card.pending {
  background: #fffaf0;
  border-color: #fbd38d;
}

.tr-payment-status-card.verifying {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.tr-payment-status-card.paid {
  background: #f0fdf4;
  border-color: #86efac;
}

.tr-payment-status-card.failed {
  background: #fef2f2;
  border-color: #fecaca;
}

.tr-payment-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tr-payment-status-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-payment-status-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tr-navy);
}

/* ─── Payment Re-open Action Card (when manual momo panel is closed) ──────── */
.tr-payment-reopen-card {
  min-height: min(400px, 80vh);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: var(--tr-space-4);
  animation: tr-fade-in 0.2s ease-out;
  justify-content: space-between;
}

.tr-payment-reopen-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-payment-reopen-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--tr-radius-pill);
  background: var(--tr-orange-light);
  border: 1.5px solid var(--tr-orange-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tr-payment-reopen-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tr-navy-dark);
}

.tr-payment-reopen-subtext {
  margin: 2px 0 0 0;
  font-size: 0.84rem;
  color: var(--tr-text-secondary);
  line-height: 1.4;
}

.tr-payment-reopen-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 6px 0;
  width: 100%;
}

.tr-payment-reopen-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tr-payment-reopen-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--tr-primary);
  color: var(--tr-white);
  border: none;
  border-radius: var(--tr-radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--tr-shadow-orange);
  transition: all 0.15s ease;
}

.tr-payment-reopen-primary-btn:hover {
  background: var(--tr-orange-dark);
}

.tr-payment-reopen-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--tr-soft-white);
  color: var(--tr-text-primary);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-payment-reopen-secondary-btn:hover {
  background: var(--tr-grey-100);
  border-color: var(--tr-grey-300);
}

/* ─── In-Flight Gateway Card (Paystack, Moolre, Flutterwave) ─────────────── */
.tr-gateway-status-card {
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
  background: var(--tr-white);
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: tr-fade-in 0.25s ease-out;
}

.tr-gateway-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tr-grey-100);
  background: #ffffff;
}

.tr-gateway-status-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-gateway-status-emblem {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tr-gateway-status-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tr-navy-dark);
}

.tr-gateway-status-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.tr-gateway-status-email {
  font-size: 0.8rem;
  color: var(--tr-text-secondary);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-gateway-status-pay-text {
  font-size: 0.88rem;
  color: var(--tr-navy-dark);
  font-weight: 500;
}

.tr-gateway-status-amount {
  color: var(--tr-primary);
  font-weight: 800;
}

.tr-gateway-status-body {
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
}

.tr-gateway-verifying-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--tr-radius-pill);
  background: var(--tr-orange-light);
  border: 1.5px solid var(--tr-orange-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tr-gateway-verifying-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tr-navy-dark);
  margin: 0 0 8px 0;
}

.tr-gateway-verifying-subtext {
  font-size: 0.88rem;
  color: var(--tr-text-secondary);
  margin: 0 0 22px 0;
  line-height: 1.45;
  max-width: 340px;
}

.tr-gateway-verifying-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-gateway-confirm-btn {
  width: 100%;
  background: var(--tr-primary);
  color: var(--tr-white);
  font-size: 1rem;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--tr-radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--tr-shadow-orange);
  transition: all 0.15s ease;
}

.tr-gateway-confirm-btn:hover:not(:disabled) {
  background: var(--tr-orange-dark);
}

.tr-gateway-reopen-btn {
  width: 100%;
  background: var(--tr-soft-white);
  color: var(--tr-navy);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--tr-radius-md);
  border: 1.5px solid var(--tr-grey-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.tr-gateway-reopen-btn:hover {
  background: var(--tr-grey-100);
  border-color: var(--tr-grey-300);
}

.tr-gateway-change-link {
  background: none;
  border: none;
  color: var(--tr-text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.tr-gateway-change-link:hover {
  color: var(--tr-navy-dark);
}

.tr-gateway-verify-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--tr-text-secondary);
  margin-top: 8px;
}

.tr-spin {
  animation: tr-rotate 1s linear infinite;
}

@keyframes tr-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Mobile Responsiveness (<= 768px) ─────────────────────────────────────── */
@media screen and (max-width: 768px) {
  .tr-payment-gateways-grid {
    grid-template-columns: 1fr;
  }

  .tr-confirmed-dest-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .tr-tray-page {
    /* padding-bottom: 144px; Space for 64px Dock Bar + 62px Bottom Nav + margin */
    padding-bottom: 64px;
    /* Space for 64px Dock Bar + 62px Bottom Nav + margin ,
    /* i've added some(100px) on the tr-app-content itself already */
  }

  .tr-tray-header-bar {
    margin-bottom: var(--tr-space-3);
  }

  .tr-tray-page-title {
    font-size: 1.35rem;
  }

  /* Stepper tabs on mobile */
  .tr-tray-stepper-bar {
    padding: 0.45rem 0.65rem;
    gap: 0.25rem;
    margin-bottom: var(--tr-space-4);
    position: sticky;
    top: 0px;
    z-index: 10;
  }

  .tr-tray-step-tab {
    padding: 0.25rem 0.4rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .tr-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .tr-step-line {
    min-width: 8px;
  }

  /* Mobile Position: Docks directly above Bottom Nav Bar (62px) */
  .tr-tray-dock-bar,
  .tr-tray-mobile-bar {
    bottom: 62px;
    height: 64px;
    padding: 0 14px;
    z-index: calc(var(--tr-z-nav) + 5);
  }

  .tr-tray-dock-inner {
    padding: 0;
    gap: 12px;
  }

  .desktop-show {
    display: none !important;
  }

  .tr-dock-price {
    font-size: 1.15rem;
  }

  .tr-tray-dock-cta-btn,
  .tr-tray-mobile-cta-btn {
    padding: 0.5rem;
    font-size: 0.92rem;
    gap: 0.45rem;
  }

  .tr-dock-btn-dot,
  .tr-dock-btn-price {
    display: none;
    /* Keep mobile button label compact */
  }

  /* On mobile checkout & confirmed steps, hide the sidebar to avoid long vertical scrolling */
  .tr-tray-page[data-step="destination"] .tr-tray-side-col,
  .tr-tray-page[data-step="customer"] .tr-tray-side-col,
  .tr-tray-page[data-step="confirmed"] .tr-tray-side-col {
    display: none !important;
  }
}



/* Header Status Pills */
.tr-tray-status-pill.awaiting {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tr-tray-confirmed-pulse-dot.awaiting {
  background: #f59e0b;
}

.tr-tray-status-pill.paid {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.tr-tray-confirmed-pulse-dot.paid {
  background: #10b981;
}

/* Dock Bar Back Button (when awaiting payment) */
.tr-tray-dock-cta-btn.tr-tray-dock-back-btn {
  background: var(--tr-white);
  color: var(--tr-navy);
  border: 1.5px solid var(--tr-grey-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tr-tray-dock-cta-btn.tr-tray-dock-back-btn:hover {
  background: var(--tr-grey-50);
  border-color: var(--tr-grey-400);
  transform: translateY(-1px);
}

.tr-header-btn-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tr-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0;
  transition: color 0.15s ease;
}

.tr-header-btn-link:hover {
  color: var(--tr-navy);
}

/* ── Floating Post-Purchase Guest Registration Prompt ── */
.tr-guest-register-floating-card {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--tr-white);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  box-shadow: 0 16px 40px -6px rgba(15, 23, 42, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: tr-float-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

@keyframes tr-float-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tr-guest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tr-guest-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tr-guest-sparkle {
  color: #10b981;
}

.tr-guest-card-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--tr-grey-400);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.tr-guest-card-close-btn:hover {
  color: var(--tr-navy);
  background: var(--tr-grey-100);
}

.tr-guest-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tr-guest-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--tr-navy);
  line-height: 1.3;
}

.tr-guest-card-text {
  margin: 0;
  font-size: 0.81rem;
  color: var(--tr-text-muted);
  line-height: 1.45;
}

.tr-guest-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.tr-guest-card-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.tr-guest-card-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

.tr-guest-card-btn-dismiss {
  background: transparent;
  border: 1px solid var(--tr-grey-200);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tr-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-guest-card-btn-dismiss:hover {
  background: var(--tr-grey-50);
  color: var(--tr-navy);
  border-color: var(--tr-grey-300);
}

/* Existing Account Styles */
.tr-guest-card-badge.existing {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.tr-guest-card-badge.existing .tr-guest-sparkle {
  color: #2563eb;
}

.tr-guest-quick-login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.tr-guest-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.tr-guest-pwd-input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid var(--tr-grey-200);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--tr-navy);
  background: var(--tr-grey-50);
  transition: all 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.tr-guest-pwd-input:focus {
  outline: none;
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.tr-guest-pwd-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--tr-grey-400);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.tr-guest-pwd-toggle:hover {
  color: var(--tr-navy);
}

.tr-guest-login-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

.tr-guest-card-success-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.tr-guest-success-icon {
  color: #10b981;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .tr-guest-register-floating-card {
    bottom: 84px; /* position above bottom dock bar */
    right: 14px;
    left: 14px;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  }
  .tr-confirmed-track-btn, .tr-confirmed-menu-btn, .tr-payment-reopen-primary-btn, .tr-payment-reopen-secondary-btn{
    place-content: center;
    flex-grow: 1;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   OrdersPage Dedicated Styles (OrdersPage.css)
   Contains strictly elements unique to order tracking & order history:
   - Guest hint banner
   - Live tracking card & handoff PIN badge
   - 4-Milestone progress tracker
   - Courier & drop-off location cards
   - Items receipt table & financial breakdown
   - Rating & review submission box
   - Order history card row layout & responsive adjustments
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Guest Orders Hint Banner ─────────────────────────────────────────── */
.orders-guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-4, 16px);
  padding: var(--tr-space-3, 12px) var(--tr-space-4, 16px);
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--tr-radius-md, 10px);
  box-shadow: var(--tr-shadow-xs);
}

.orders-guest-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orders-guest-banner-text {
  flex: 1;
  min-width: 0;
}

.orders-guest-banner-title {
  font-size: var(--tr-font-sm, 13.5px);
  font-weight: 700;
  color: #14532D;
  margin-bottom: 2px;
}

.orders-guest-banner-desc {
  font-size: var(--tr-font-xs, 12px);
  color: #166534;
  line-height: var(--tr-lh-normal, 1.4);
}

@media screen and (max-width: 640px) {
  .orders-guest-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tr-space-3, 12px);
  }
}

/* ─── Detail Tracking Card & PIN ─────────────────────────────────────────── */
.order-tracking-card {
  background: var(--tr-white, #FFFFFF);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-lg, 16px);
  padding: var(--tr-space-6, 24px);
  box-shadow: var(--tr-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-6, 24px);
}

.order-tracking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tr-space-4, 16px);
  flex-wrap: wrap;
  padding-bottom: var(--tr-space-4, 16px);
  border-bottom: 1px solid var(--tr-grey-200, #E2E8F0);
}

.order-ref-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-ref-label {
  font-size: var(--tr-font-xs, 12px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tr-grey-500, #64748B);
  letter-spacing: 0.05em;
}

.order-ref-value-row {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
}

.order-ref-value {
  font-size: var(--tr-font-xl, 20px);
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  letter-spacing: 0.04em;
  font-family: monospace;
}

.order-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--tr-radius-sm, 6px);
  background: var(--tr-grey-100, #F1F5F9);
  color: var(--tr-grey-600, #475569);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  cursor: pointer;
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.order-copy-btn:hover {
  background: var(--tr-grey-200, #E2E8F0);
  color: var(--tr-navy, #0F172A);
}

.order-pin-card {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3, 12px);
  padding: 8px 14px;
  background: #FFF7ED;
  border: 1.5px dashed #FDBA74;
  border-radius: var(--tr-radius-md, 10px);
}

.order-pin-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFEDD5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-orange-dark, #D96200);
}

.order-pin-info {
  display: flex;
  flex-direction: column;
}

.order-pin-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9A3412;
}

.order-pin-code {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-orange-dark, #D96200);
  letter-spacing: 0.15em;
  font-family: monospace;
}

/* ─── 4-Milestone Progress Tracker ───────────────────────────────────────── */
.orders-milestones-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: var(--tr-space-2, 8px) 0;
}

.orders-milestones-track::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: var(--tr-grey-200, #E2E8F0);
  z-index: 1;
}

.order-milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 0 var(--tr-space-2, 8px);
}

.order-milestone-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tr-grey-100, #F1F5F9);
  color: var(--tr-grey-400, #94A3B8);
  border: 2px solid var(--tr-grey-300, #CBD5E1);
  margin-bottom: var(--tr-space-2, 8px);
  transition: all 0.3s ease;
}

.order-milestone-step.completed .order-milestone-icon-wrap {
  background: var(--tr-success, #16A34A);
  border-color: var(--tr-success, #16A34A);
  color: var(--tr-white, #FFFFFF);
  box-shadow: 0 0 0 4px #DCFCE7;
}

.order-milestone-step.active .order-milestone-icon-wrap {
  background: var(--tr-orange, #EE822B);
  border-color: var(--tr-orange, #EE822B);
  color: var(--tr-white, #FFFFFF);
  box-shadow: 0 0 0 4px #FFEDD5;
  animation: orders-pulse-icon 1.8s infinite;
}

@keyframes orders-pulse-icon {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.order-milestone-label {
  font-size: var(--tr-font-xs, 12px);
  font-weight: 700;
  color: var(--tr-grey-600, #475569);
  margin-bottom: 2px;
}

.order-milestone-step.completed .order-milestone-label {
  color: var(--tr-navy, #0F172A);
}

.order-milestone-step.active .order-milestone-label {
  color: var(--tr-orange-dark, #D96200);
}

.order-milestone-desc {
  font-size: 11px;
  color: var(--tr-grey-500, #64748B);
  max-width: 150px;
  line-height: 1.3;
}

/* ─── Detail Grid (Runner & Delivery Info) ─────────────────────────────────── */
.order-detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--tr-space-4, 16px);
}

.order-info-card {
  background: var(--tr-soft-white, #FAFAFA);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-md, 10px);
  padding: var(--tr-space-4, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3, 12px);
}

.order-info-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tr-font-xs, 12px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tr-grey-600, #475569);
  letter-spacing: 0.04em;
}

.order-runner-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-3, 12px);
}

.order-runner-meta {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3, 12px);
}

.order-runner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tr-navy, #0F172A);
  color: var(--tr-white, #FFFFFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.order-runner-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-runner-name {
  font-size: var(--tr-font-base, 15px);
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.order-runner-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tr-font-xs, 12px);
  color: var(--tr-grey-500, #64748B);
}

.order-runner-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #D97706;
  font-weight: 600;
}

.order-call-runner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--tr-success, #16A34A);
  color: var(--tr-white, #FFFFFF);
  border-radius: var(--tr-radius-md, 8px);
  font-size: var(--tr-font-sm, 13px);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.order-call-runner-btn:hover {
  background: #059669;
  color: var(--tr-white, #FFFFFF);
  transform: translateY(-1px);
}

.order-location-text {
  font-size: var(--tr-font-sm, 13px);
  color: var(--tr-text-primary, #0F172A);
  line-height: var(--tr-lh-snug, 1.4);
}

.order-location-landmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--tr-font-xs, 12px);
  font-weight: 600;
  color: var(--tr-navy, #0F172A);
  background: var(--tr-navy-light, #EFF6FF);
  padding: 2px 8px;
  border-radius: var(--tr-radius-sm, 6px);
  margin-top: 4px;
}

/* ─── Order Items Receipt ─────────────────────────────────────────────────── */
.order-receipt-section {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3, 12px);
  padding-top: var(--tr-space-3, 12px);
  border-top: 1px solid var(--tr-grey-200, #E2E8F0);
}

.order-receipt-title {
  font-size: var(--tr-font-sm, 13.5px);
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.order-items-table {
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-2, 8px);
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tr-space-3, 12px);
  font-size: var(--tr-font-sm, 13px);
  padding: 6px 0;
  border-bottom: 1px dashed var(--tr-grey-200, #E2E8F0);
}

.order-item-qty-name {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
  color: var(--tr-text-primary, #0F172A);
}

.order-item-qty {
  font-weight: 700;
  color: var(--tr-orange-dark, #D96200);
  min-width: 22px;
}

.order-item-vendor {
  font-size: 11px;
  color: var(--tr-grey-500, #64748B);
}

.order-item-price {
  font-weight: 600;
  color: var(--tr-navy, #0F172A);
}

.order-financial-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--tr-space-3, 12px) 0;
  font-size: var(--tr-font-xs, 12px);
  color: var(--tr-grey-600, #475569);
}

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

.order-breakdown-total {
  font-size: var(--tr-font-base, 15px);
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  padding-top: 6px;
  border-top: 1.5px solid var(--tr-grey-200, #E2E8F0);
}

/* ─── Delivered Rating & Review Box ───────────────────────────────────────── */
.order-review-box {
  background: #F8FAFC;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: var(--tr-radius-md, 10px);
  padding: var(--tr-space-4, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--tr-space-3, 12px);
}

.order-stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tr-grey-300, #CBD5E1);
  transition: all var(--tr-transition-fast, 0.15s ease);
  padding: 2px;
}

.order-star-btn.filled {
  color: #F59E0B;
}

.order-review-textarea {
  width: 100%;
  min-height: 64px;
  padding: 8px 12px;
  border-radius: var(--tr-radius-md, 8px);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  background: var(--tr-white, #FFFFFF);
  font-size: var(--tr-font-sm, 13px);
  color: var(--tr-text-primary, #0F172A);
  outline: none;
  resize: vertical;
}

.order-review-textarea:focus {
  border-color: var(--tr-orange, #EE822B);
}

/* ─── Order History Card Row Specifics ────────────────────────────────────── */
.order-history-card {
  cursor: pointer;
}

.order-history-left {
  display: flex;
  align-items: center;
  gap: var(--tr-space-4, 16px);
  min-width: 0;
  width: 100% !important;
}

.order-history-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--tr-radius-md, 10px);
  background: var(--tr-navy-light, #EFF6FF);
  color: var(--tr-navy, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-history-icon-box.active {
  background: var(--tr-orange-light, #FFF0E6);
  color: var(--tr-orange-dark, #D96200);
}

.order-history-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.order-history-header-line {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
  flex-wrap: wrap;
}

.order-history-ref {
  font-size: var(--tr-font-base, 15px);
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  font-family: monospace;
}

.order-history-time {
  font-size: var(--tr-font-xs, 12px);
  color: var(--tr-grey-500, #64748B);
}

.order-history-items-summary {
  font-size: var(--tr-font-sm, 13px);
  color: var(--tr-text-secondary, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
}

.order-history-meta-sub {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
  font-size: var(--tr-font-xs, 12px);
  color: var(--tr-grey-500, #64748B);
}

.order-history-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tr-space-3, 12px);
  flex-shrink: 0;
}

.order-history-price {
  font-size: var(--tr-font-md, 16px);
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  text-align: right;
}

.order-history-actions {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
}

/* ─── Responsive adjustments ──────────────────────────────────────────────── */
@media screen and (max-width: 520px) {
  .orders-milestones-track {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tr-space-4, 16px);
    padding-left: var(--tr-space-4, 16px);
  }

  .orders-milestones-track::before {
    top: 18px;
    bottom: 18px;
    left: 36px;
    width: 2px;
    height: auto;
  }

  .order-milestone-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--tr-space-3, 12px);
    padding: 0;
  }

  .order-milestone-desc {
    max-width: none;
  }

  .order-history-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-history-right {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding-top: var(--tr-space-2, 8px);
    border-top: 1px solid var(--tr-grey-100, #F1F5F9);
  }
}/* ─────────────────────────────────────────────────────────────────────────────
   NotificationsPage Dedicated Styles (NotificationsPage.css)
   Contains strictly elements unique to notifications:
   - Notification item row layout & unread indicators
   - Type icon circles & badge pills
   - Quick mark-read / dismiss buttons
   - Contextual detail cards (Order tracking link, security link, promo link)
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Notification Row ───────────────────────────────────────────────────── */
.notif-row {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: 0;
  padding: var(--tr-space-4, 16px) var(--tr-space-5, 20px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tr-space-4, 16px);
  cursor: pointer;
  transition: background var(--tr-transition-fast, 0.15s ease);
}

.notif-row:last-child {
  border-bottom: none;
}

.notif-row:hover {
  background: var(--tr-grey-50, #F8FAFC);
}

.notif-row.is-unread {
  background: #FAF8F5;
}

.notif-row.is-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tr-orange, #EE822B);
}

.notif-row.is-unread:hover {
  background: #F5EFE8;
}

.notif-row.is-selected {
  background: #F1F5F9;
  border-left: 3px solid var(--tr-navy, #0F172A);
}

.notif-row.is-selected:hover {
  background: #E2E8F0;
}

/* ─── Row Left: Icon ─────────────────────────────────────────────────────── */
.notif-row-left {
  flex-shrink: 0;
  padding-top: 2px;
}

.notif-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--tr-radius-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon-order {
  background: #FFF7ED;
  color: #EA580C;
  border: 1px solid #FFEDD5;
}

.notif-icon-security {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #DCFCE7;
}

.notif-icon-promo {
  background: #FAF5FF;
  color: #9333EA;
  border: 1px solid #F3E8FF;
}

.notif-icon-system {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

/* ─── Row Center: Content ────────────────────────────────────────────────── */
.notif-row-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-row-header-line {
  display: flex;
  align-items: center;
  gap: var(--tr-space-2, 8px);
  flex-wrap: wrap;
}

.notif-row-title {
  font-size: var(--tr-font-base, 15px);
  font-weight: 600;
  color: var(--tr-navy, #0F172A);
  line-height: var(--tr-lh-snug, 1.4);
}

.notif-row-title.unread-bold {
  font-weight: 800;
  color: #1E293B;
}

.notif-row-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tr-orange, #EE822B);
  flex-shrink: 0;
}

.notif-row-time {
  font-size: var(--tr-font-xs, 12px);
  color: var(--tr-grey-500, #64748B);
}

.notif-row-body {
  font-size: var(--tr-font-sm, 13px);
  color: var(--tr-text-secondary, #475569);
  line-height: var(--tr-lh-normal, 1.4);
  word-break: break-word;
}

/* ─── Action Row (Order Ref Chip / View Details) ─────────────────────────── */
.notif-row-action-row {
  display: flex;
  align-items: center;
  gap: var(--tr-space-3, 12px);
  margin-top: 4px;
  flex-wrap: wrap;
}

.notif-row-ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--tr-radius-sm, 6px);
  background: var(--tr-grey-100, #F1F5F9);
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  font-size: var(--tr-font-xs, 12px);
  font-family: monospace;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.notif-row-ref-chip:hover {
  background: var(--tr-navy-light, #EFF6FF);
  color: var(--tr-navy, #0F172A);
  border-color: #93C5FD;
}

.notif-row-action-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--tr-font-xs, 12px);
  font-weight: 700;
  color: var(--tr-orange-dark, #D96200);
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.notif-row:hover .notif-row-action-link {
  color: var(--tr-orange, #EE822B);
  transform: translateX(2px);
}

/* ─── Type Badges ────────────────────────────────────────────────────────── */
.notif-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notif-pill-order {
  background: #FFEDD5;
  color: #9A3412;
}

.notif-pill-security {
  background: #DCFCE7;
  color: #14532D;
}

.notif-pill-promo {
  background: #F3E8FF;
  color: #581C87;
}

.notif-pill-system {
  background: #DBEAFE;
  color: #1E3A8A;
}

/* ─── Row Right: Quick Action Buttons ────────────────────────────────────── */
.notif-row-right {
  display: flex;
  align-items: center;
  gap: var(--tr-space-1, 4px);
  flex-shrink: 0;
  padding-top: 2px;
}

.notif-action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--tr-radius-sm, 6px);
  background: transparent;
  border: 1px solid transparent;
  color: var(--tr-grey-400, #94A3B8);
  cursor: pointer;
  transition: all var(--tr-transition-fast, 0.15s ease);
}

.notif-action-icon-btn:hover {
  background: var(--tr-grey-100, #F1F5F9);
  border-color: var(--tr-grey-200, #E2E8F0);
}

.notif-btn-read:hover {
  color: var(--tr-orange, #EE822B);
  background: #FFF7ED;
  border-color: #FED7AA;
}

.notif-btn-dismiss:hover {
  color: var(--tr-error, #DC2626);
  background: #FEF2F2;
  border-color: #FECACA;
}

.notif-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--tr-space-2, 8px);
}

/* ─── Contextual Detail Components ────────────────────────────────────────── */
.notif-detail-time {
  font-size: 11px;
  color: var(--tr-grey-500, #64748B);
}

.notif-detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  line-height: 1.35;
}

.notif-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tr-grey-500, #64748B);
}

.notif-detail-text {
  font-size: 14px;
  color: var(--tr-text-primary, #0F172A);
  line-height: 1.6;
  background: var(--tr-grey-50, #F8FAFC);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
}

.notif-detail-card {
  background: #FFFFFF;
  border: 1px solid var(--tr-grey-200, #E2E8F0);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-context-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-context-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.notif-context-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-context-ref {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.notif-ref-label {
  color: var(--tr-grey-500, #64748B);
}

.notif-ref-val {
  font-family: monospace;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.notif-context-desc {
  margin: 0;
  font-size: 12px;
  color: var(--tr-text-secondary, #475569);
  line-height: 1.4;
}

.notif-context-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.notif-footer-dismiss-btn {
  color: var(--tr-error, #DC2626);
}

.notif-list-grid {
  padding: var(--tr-space-2);
  background-color: var(--tr-white);
  border-radius: var(--tr-radius-sm);
}/* ─────────────────────────────────────────────────────────────────────────────
   ReferralsPage Dedicated Styles (ReferralsPage.css)
   Contains strictly elements unique to the referral program & ambassador experience:
   - Hero tier pill
   - Share & Code Showcase Card
   - Three referral pathways grid (Friend, Ambassador, Spot Scout)
   - Embedded wallet breakdown vault cards
   - QR code drawer image wrapper
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Hero Tier Pill ──────────────────────────────────────────────────────── */
.ref-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #FEF3C7;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Share & Code Showcase Card ───────────────────────────────────────────── */
.ref-share-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

.ref-share-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ref-share-title-group h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  margin: 0 0 4px;
}

.ref-share-title-group p {
  font-size: 13.5px;
  color: var(--tr-grey-600, #475569);
  margin: 0;
  line-height: 1.45;
}

.ref-code-box-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ref-code-display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--tr-grey-50, #F8FAFC);
  border: 1.5px dashed var(--tr-orange, #EE822B);
  border-radius: 12px;
  padding: 10px 18px;
}

.ref-code-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--tr-navy, #0F172A);
  font-family: monospace;
}

.ref-btn-copy-code {
  background: transparent;
  border: none;
  color: var(--tr-grey-500, #64748B);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.ref-btn-copy-code:hover {
  color: var(--tr-orange, #EE822B);
  background: #FFF7ED;
}

.ref-share-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ref-btn-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
}

.ref-btn-whatsapp:hover {
  background: #1EBE5D !important;
}

/* ─── Three Clear Pathways Grid ───────────────────────────────────────────── */
.ref-pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media screen and (max-width: 960px) {
  .ref-pathways-grid {
    grid-template-columns: 1fr;
  }
}

.ref-pathway-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.ref-pathway-top {
  display: flex;
  flex-direction: column;
}

.ref-pathway-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ref-pathway-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-icon-friends {
  background: #FFF7ED;
  color: #EA580C;
}

.ref-icon-ambassador {
  background: #EFF6FF;
  color: #2563EB;
}

.ref-icon-scout {
  background: #ECFDF5;
  color: #059669;
}

.ref-pathway-reward-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.ref-reward-pill-emerald {
  background: #ECFDF5;
  color: #047857;
  border-color: #D1FAE5;
}

.ref-pathway-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  margin: 0 0 6px;
}

.ref-pathway-desc {
  font-size: 13px;
  color: var(--tr-grey-600, #475569);
  line-height: 1.45;
  margin: 0 0 14px;
}

.ref-pathway-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--tr-text-secondary, #475569);
  line-height: 1.5;
}

.ref-pathway-steps li {
  margin-bottom: 6px;
}

.ref-pathway-steps-disc {
  list-style-type: disc;
}

.ref-btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.ref-pathway-friends-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
}

.ref-pathway-friends-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1D4ED8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ref-pathway-friends-btn:hover {
  background: #DBEAFE;
  color: #1E40AF;
}

/* ─── Wallet Details Breakdown on Referrals Page ─────────────────────────── */
.ref-wallet-breakdown-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ref-wallet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ref-wallet-title-group h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
  margin: 0 0 4px;
}

.ref-wallet-title-group p {
  font-size: 13px;
  color: var(--tr-grey-500, #64748B);
  margin: 0;
}

.ref-wallet-head-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ref-wallet-spendable-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-grey-600, #475569);
}

.ref-wallet-spendable-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--tr-orange-dark, #D96200);
}

.ref-buckets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media screen and (max-width: 860px) {
  .ref-buckets-row {
    grid-template-columns: 1fr;
  }
}

.ref-bucket-item {
  background: var(--tr-grey-50, #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-bucket-item.ref-bucket-total {
  background: linear-gradient(135deg, rgba(238, 130, 43, 0.08) 0%, rgba(238, 130, 43, 0.02) 100%);
  border-color: rgba(238, 130, 43, 0.35);
}

.ref-bucket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ref-bucket-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tr-navy, #0F172A);
}

.ref-bucket-name.total-highlight {
  color: #9A3412;
}

.ref-bucket-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ref-bucket-badge-lock {
  background: #F1F5F9;
  color: #475569;
}

.ref-bucket-badge-earn {
  background: #DCFCE7;
  color: #15803D;
}

.ref-bucket-badge-auto {
  background: #FFEDD5;
  color: #9A3412;
}

.ref-bucket-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--tr-navy, #0F172A);
}

.ref-bucket-desc {
  font-size: 12px;
  color: var(--tr-grey-600, #475569);
  line-height: 1.45;
  margin: 0;
}

/* ─── QR Drawer Image ─────────────────────────────────────────────────────── */
.ref-qr-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--tr-grey-50, #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
}

.ref-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.ref-loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}/* ─────────────────────────────────────────────────────────────────────────────
   WalletPage Dedicated Styles (WalletPage.css)
   Contains strictly elements unique to the dedicated wallet page:
   - Wallet overview hero card (Total Spendable)
   - Vault cards (Funding & Earnings) with small (i) info triggers
   - Quick actions bar & drawer info panels
   - Ledger filter pills & transaction table styling
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Hero Overview Card (Total Spendable) ─────────────────────────────────── */
.wallet-hero-card {
  background-color: var(--tr-white);
  border-radius: var(--tr-radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.06);
  margin-bottom: var(--tr-space-5, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wallet-hero-card-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #C2410C;
  background: #FFEDD5;
  border: 1px solid #FDBA74;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ref-guest-banner {
  border: 1px solid var(--tr-border-subtle, #E5E7EB);
  border-radius: var(--tr-radius-md, 10px);
  padding: 14px 20px;
  background: var(--tr-white, #FFFFFF);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tr-space-1);
  gap: 16px;
  flex-wrap: wrap;
}

.wallet-hero-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tr-text-secondary, #4B5563);
}

.wallet-hero-card-amount {
  font-size: 32px;
  font-weight: 900;
  color: #EA580C;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wallet-hero-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Vault Buckets Grid ───────────────────────────────────────────────────── */
.wallet-vaults-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: var(--tr-space-5, 20px);
}

@media (max-width: 720px) {
  .wallet-vaults-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-vault-box {
  background: var(--tr-bg-surface, #FFFFFF);
  border: 1px solid var(--tr-border-default, #E5E7EB);
  border-radius: var(--tr-radius-md, 14px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.wallet-vault-box:hover {
  border-color: #D1D5DB;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.wallet-vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wallet-vault-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-vault-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tr-text-primary, #111827);
  letter-spacing: 0.01em;
}

.wallet-vault-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tr-bg-subtle, #F3F4F6);
  border: 1px solid #E5E7EB;
  color: var(--tr-text-secondary, #6B7280);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.wallet-info-btn:hover {
  background: #E5E7EB;
  color: #111827;
  border-color: #D1D5DB;
}

.wallet-vault-figure {
  font-size: 26px;
  font-weight: 800;
  color: var(--tr-text-primary, #111827);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.wallet-vault-caption {
  margin: 0;
  font-size: 12.5px;
  color: var(--tr-text-secondary, #6B7280);
}

/* ─── Subtle Security Strip ───────────────────────────────────────────────── */
.wallet-policy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
  border-radius: var(--tr-radius-md, 12px);
  padding: 12px 18px;
  margin-bottom: var(--tr-space-6, 24px);
  margin-top: var(--tr-space-6, 24px);
  gap: 12px;
  flex-wrap: wrap;
}

.wallet-policy-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #166534;
  font-weight: 600;
}

.wallet-policy-btn {
  background: none;
  border: none;
  color: #15803D;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.wallet-policy-btn:hover {
  background: #DCFCE7;
  text-decoration: underline;
}

/* ─── Ledger Card & Responsive Table ──────────────────────────────────────── */
.wallet-ledger-card {
  background: var(--tr-bg-surface, #FFFFFF);
  border: 1px solid var(--tr-border-default, #E5E7EB);
  border-radius: var(--tr-radius-lg, 16px);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wallet-ledger-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wallet-ledger-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--tr-text-primary, #111827);
}

.wallet-filter-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wallet-pill-btn {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-pill-btn:hover {
  background: #E5E7EB;
  color: #111827;
}

.wallet-pill-btn.active {
  background: #111827;
  border-color: #111827;
  color: #FFFFFF;
}

.wallet-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--tr-border-subtle, #F3F4F6);
  border-radius: var(--tr-radius-md, 10px);
}

.wallet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.wallet-table th {
  background: var(--tr-bg-subtle, #F9FAFB);
  color: var(--tr-text-secondary, #6B7280);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tr-border-default, #E5E7EB);
  white-space: nowrap;
}

.wallet-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--tr-border-subtle, #F3F4F6);
  color: var(--tr-text-primary, #111827);
  vertical-align: middle;
}

.wallet-table tr:last-child td {
  border-bottom: none;
}

.wallet-table tr:hover td {
  background: #FAFAFA;
}

.wallet-badge-funding {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.wallet-badge-earnings {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.wallet-credit-num {
  color: #059669;
  font-weight: 700;
}

.wallet-debit-num {
  color: #DC2626;
  font-weight: 700;
}

.wallet-text-right {
  text-align: right;
}

.wallet-text-cap {
  text-transform: capitalize;
}

/* ─── Drawer Detail Panel Content ─────────────────────────────────────────── */
.wallet-drawer-info-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--tr-radius-md, 12px);
  padding: 18px;
  margin-bottom: 0;
}

.wallet-drawer-info-card h4 {
  margin: 0 0 8px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tr-text-primary, #111827);
}

.wallet-drawer-info-card p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tr-text-secondary, #4B5563);
}

.wallet-drawer-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--tr-text-secondary, #4B5563);
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.wallet-drawer-notice-box {
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}

.wallet-drawer-notice-box.orange {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #9A3412;
}

.wallet-drawer-notice-box.green {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

/* ─── Wallet Drawer Interactive Forms ─────────────────────────────────────── */
.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-text-primary, #111827);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-form-sublabel {
  font-size: 11.5px;
  color: var(--tr-text-muted, #6B7280);
  font-weight: normal;
}

.wallet-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-chip-btn {
  border: 1px solid var(--tr-border-default, #E5E7EB);
  border-radius: 8px;
  padding: 6px 12px;
  background: var(--tr-white, #FFFFFF);
  color: var(--tr-text-primary, #111827);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-chip-btn:hover {
  border-color: #F97316;
  background: #FFF7ED;
}

.wallet-chip-btn.active {
  border-color: #F97316;
  background: #FFEDD5;
  color: #C2410C;
}

.wallet-input-affix {
  display: flex;
  align-items: center;
  border: 1px solid var(--tr-border-default, #E5E7EB);
  border-radius: var(--tr-radius-md, 8px);
  background: var(--tr-white, #FFFFFF);
  overflow: hidden;
}

.wallet-input-affix-label {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-text-secondary, #4B5563);
  background: #F9FAFB;
  border-right: 1px solid var(--tr-border-default, #E5E7EB);
  height: 40px;
  display: flex;
  align-items: center;
}

.wallet-input-affix input {
  flex: 1;
  border: none;
  padding: 0 12px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tr-text-primary, #111827);
  outline: none;
}

.wallet-input-affix input:focus {
  outline: none;
}

.wallet-gateways-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-gateway-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid var(--tr-border-default, #E5E7EB);
  border-radius: 10px;
  background: var(--tr-white, #FFFFFF);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-gateway-card:hover {
  border-color: #FDBA74;
}

.wallet-gateway-card.selected {
  border-color: #F97316;
  background: #FFF7ED;
}

.wallet-gw-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-gw-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tr-text-primary, #111827);
}

.wallet-gw-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #C2410C;
  background: #FFEDD5;
  padding: 2px 7px;
  border-radius: 4px;
}

.wallet-breakdown-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.wallet-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tr-text-secondary, #4B5563);
}

.wallet-breakdown-row.total {
  font-weight: 700;
  color: var(--tr-text-primary, #111827);
  border-top: 1px dashed #E5E7EB;
  padding-top: 6px;
  margin-top: 2px;
}

.wallet-feedback-banner {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-feedback-banner.error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.wallet-receipt-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wallet-receipt-ref {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #166534;
  background: #DCFCE7;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ─── Compact Payment Method Switcher in Top Up ─── */
.wallet-payment-selector-compact {
  margin-top: 4px;
  margin-bottom: 4px;
}

.wallet-payment-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--tr-radius-md, 10px);
  transition: all 0.2s ease;
}

.wallet-payment-summary-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--tr-navy, #0f172a);
}

.wallet-payment-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #059669;
}

.wallet-payment-summary-text {
  font-size: 0.92rem;
  color: var(--tr-navy, #0f172a);
}

.wallet-payment-summary-text strong {
  font-weight: 800;
  color: var(--tr-navy, #0f172a);
}

.wallet-payment-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--tr-radius-md, 8px);
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-payment-switch-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #047857;
}

.wallet-payment-summary-hint {
  margin: 0.45rem 0 0 0.15rem;
  font-size: 0.78rem;
  color: var(--tr-text-secondary, #6b7280);
  line-height: 1.4;
}

/* Switching mode container */
.wallet-payment-picker-box {
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--tr-border-default, #E5E7EB);
  border-radius: var(--tr-radius-md, 10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wallet-payment-picker-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tr-text-primary, #111827);
  margin-bottom: 0.75rem;
}

.wallet-payment-options-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.wallet-payment-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  min-width: 90px;
  background: #ffffff;
  border: 1.5px solid var(--tr-border-default, #E5E7EB);
  border-radius: var(--tr-radius-md, 8px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-payment-option-card:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.wallet-payment-option-card.selected {
  border-color: #059669;
  background: #F0FDF4;
}

.wallet-payment-option-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
}

.wallet-payment-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-navy, #0f172a);
}

.wallet-payment-option-card.selected .wallet-payment-option-icon {
  color: #059669;
}

.wallet-payment-option-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tr-navy, #0f172a);
}

.wallet-payment-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--tr-border-default, #D1D5DB);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tr-text-secondary, #4B5563);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-payment-cancel-btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}




