
* {
  font-family: "Ubuntu", sans-serif;
}

body {
  margin: 0;
  background: #fff;
  -ms-overflow-style: none;
  scrollbar-width: none;
  
}

body::-webkit-scrollbar {
  display: none;
}

.form-control-sm,
.form-control-sm::placeholder {
  font-size: 16px !important;
}


*:focus {
  outline: none !important;
  box-shadow: none !important;
}


.page {
  opacity: 0;
  transition: opacity 0.2s ease;
  display: none;
}

.page.active {
  display: block;
  opacity: 1;
  overflow-y: auto;
}


.top-bar {
  background-color: white;
  padding: 8px 15px;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.top-bar-content {
  display: flex;
    margin-top: 45px;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-center {
  justify-content: center;
  flex: 1;
}

.notification-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.notification-center {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 20px;
  display: none;
  z-index: 9998;
}

.notification-center h4 {
  margin-top: 0;
}

.notification-center.show {
  display: block;
}

.notification-button {
  background-color: #e9e9e9;
  border: none;
  border-radius: 12px;
  padding: 6px 8px;
  position: relative;
  display: flex;
  align-items: center;
}

.notification-button img {
  width: 22px;
  height: 22px;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #d36b06;
  color: white;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 12px;
}

#notificationPanel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 20px;
  z-index: 9999;
  display: none;
}

#notificationPanel.open {
  transform: translateY(0);
  display: block;
}

#notificationOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
  display: none;
}

#notificationOverlay.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

@media (max-width: 600px) {
  .top-bar-content {
    padding: 6px 10px;
  }

  .notification-button {
    padding: 5px 6px;
  }

  .notification-button img {
    width: 18px;
    height: 18px;
  }

  .notification-count {
    font-size: 10px;
    padding: 2px 5px;
  }

  .ubuntu-titre-top {
    font-size: 18px;
  }

  #notificationPanel {
    padding: 15px;
  }

  #notificationPanel h4 {
    font-size: 16px;
  }

  #notificationPanel p {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .ubuntu-titre-top {
    font-size: 16px;
  }

  .notification-button img {
    width: 16px;
    height: 16px;
  }

  .notification-count {
    font-size: 9px;
    padding: 1px 4px;
  }
}





.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: #ffffff;
  color: black;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
}

.bottom-nav a {
  margin-bottom: 15px;
  color: black;
  text-decoration: none;
  text-align: center;
  flex: 1;
  padding: 0.27rem 0.5rem;
  font-size: 12px;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.bottom-nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transform: scale(1.2);
}


.favorite-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
}

.favorite-icon:hover {
  transform: scale(1.2);
  background-color: rgba(255, 255, 255, 1);
}

.favorite-icon.active {
  color: gold;
}




.truck-card-v2 {
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 12px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.truck-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.truck-card-v2 img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}

@media (max-width: 400px) {
  .truck-card-v2 img { width: 60px; height: 60px; }
  .truck-card-v2 strong { font-size: 16px; }
  .truck-card-v2 small { font-size: 12px; }
}

@media (min-width: 401px) and (max-width: 800px) {
  .truck-card-v2 img { width: 70px; height: 70px; }
  .truck-card-v2 strong { font-size: 17px; }
  .truck-card-v2 small { font-size: 13px; }
}


.favorite-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: none;
}


.favorite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.top-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.top-ranking-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-ranking-card img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
  margin-bottom: 8px;
}

.top-ranking-card .note {
  background-color: #34d399;
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 5px;
}

#topRankingList {
  margin-bottom: 6rem; 
}


.categories-scroll {
  display: grid;
  grid-auto-flow: column;              
  grid-template-rows: repeat(2, auto); 
  gap: 0px 7px;                      
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 7px; 
}

.category-item {
  width: 70px;           
  scroll-snap-align: start;
  cursor: pointer;
  text-align: center;
  font-size: 12px;        
}

.category-icon {
  width: 50px;        
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.category-item:hover .category-icon {
  transform: scale(1.1);
  border-color: #f18f1c;
}

#categories {
  margin-top: 3rem; 
}



#truckPanel{ 
  position: fixed; 
  left:0; 
  right:0; 
  bottom:0; 
}

.truck-detail-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1.25, 0.5, 1);
  padding: 20px;
  z-index: 9999;
  max-height: 90%;
  overflow-y: auto;
  display: none;
}

.truck-detail-panel.open {
  transform: translateY(0);
  display: block;
}



.truck-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
  display: none;
}

.truck-detail-overlay.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

#ccOrderOverlay {
  z-index: 11990;
}

#truckDetailContent {
  padding-bottom: 6rem;
}

.truck-detail-section {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.truck-detail-header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 20px;
}

.truck-detail-header-grid .truck-name {
  display: flex;
  align-items: center;
  text-align: left;
  padding-right: 10px;
  min-height: 80px;
}

.truck-detail-header-grid .truck-name h2 {
  margin: 0;
  font-size: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 400px) {
  .truck-detail-header-grid .truck-name h2 { font-size: 18px; }
}

@media (max-width: 300px) {
  .truck-detail-header-grid .truck-name h2 { font-size: 16px; }
}

.truck-logo-center {
  text-align: center;
}

.truck-logo-center img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.panel-topbar{
  position: sticky;
  top: 0;               
  z-index: 10005;
  display: grid;
  grid-template-columns: 38px 1fr 38px; 
  align-items: center;
  padding: 10px 8px; 
  background: transparent;
}


.truck-favorite{
  position: static;
}

.truck-fav-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  line-height: 1;
  font-size: 22px;
  border-radius: 999px;
  background: #fff;
  color: #ddd;           
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
}

.truck-fav-icon.active{
  background: #ffe9dc;
  color: #d36b06;
}





.truck-detail-note {
  background-color: #34d399;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: bold;
}

.truck-note {
  text-align: right;
}


.truck-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.truck-categories .category {
  background: #f3f3f3;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.truck-categories .category img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
}

.truck-detail-map,
.truck-detail-calendar {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: center;
}

.schedule-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

#truckMap {
  height: 300px !important;
  width: 100% !important;
  min-height: 300px;
  background-color: #f0f0f0; 
  z-index: 1;
}

.small-pos-btn {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 8px;
  font-size: 0.75em;
  background-color: #b6b6b6;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.small-pos-btn:hover {
  background-color: #dc2626;
}

.star-rating .star {
  font-size: 32px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
}

.star-rating .star.filled {
  color: #fbbf24;
}


.zoomable-img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 13000;
  padding: 16px;
}

.image-lightbox.show {
  display: flex;
}

.image-lightbox-inner {
  max-width: 92vw;
  max-height: 92vh;
}

.image-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}


.drag-handle{
  margin-top: -45px;
  grid-column: 2;
  position: static;      
  height: 56px;          
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;        
}







.panel-close-btn{
  position: static;        
  margin: 0;            
  width: 38px;             
  height: 38px;            
  line-height: 38px;       
  border-radius: 999px;    
  background-color: #e9e9e9;
  color: #333;
  font-size: 22px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1;        
}


.panel-close-btn:hover {
  background-color: #d6d6d6;
  transform: scale(1.1);
}


#map {
  height: calc(96vh - 120px); 
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

.user-dot {
  width: 22px;
  height: 22px;
  background: #2196f3;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(30,70,200,0.10);
}




.truck-label {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none; 
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 1500; 
}


.truck-label span {
  display: inline-flex;
  align-items: center;
  gap: 6px; 
  background-color: #E36D26;
  color: white;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  position: relative; 
  transform: translate(-50%, 0);
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.truck-label span.fade-out {
  animation: fadeOutDown 0.4s ease forwards;
}

@keyframes fadeOutDown {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes fadeOutDown {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}


.map-recenter-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2000;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.map-recenter-btn:hover {
  background-color: #f0f0f0;
}

.leaflet-control-container {
  position: relative;
  z-index: 1000 !important;
  pointer-events: none; 
}

.leaflet-top, .leaflet-bottom {
  z-index: 1500 !important; 
}

.map-truck-search-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100px; 
  background: white;
  border-radius: 20px;
  padding: 10px 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 3000;
  
  display:grid; 
  grid-template-columns: 1fr auto;
  align-items:center; 
  gap:8px;
  pointer-events: auto;
}





.map-search-inputwrap{
  position:relative; 
  flex:1; 
  min-width 0px;
}

.map-truck-search-bar input {
  width: 100%;
  border: none;
  font-size: 16px;
}

.map-truck-search-bar.active {
  bottom: 300px; 
}



.map-truck-search-bar.focused {
  bottom: 100px;
}

.map-search-mode{
  display:inline-flex; 
  align-items:center; 
  gap:6px;
  font-size:12px; 
  color:#666; 
  background:#fff;
  border-radius:10px; 
  padding:4px 8px; 
  box-shadow:0 1px 4px rgba(0,0,0,.1);
  transform: translateX(12px);
}

.map-truck-suggestions{
  position: absolute;
  bottom: calc(100% + 6px);
  top: auto;
  left: 0;
  right: 0;
  z-index: 5000;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  max-height: 0; 
}


.map-truck-suggestions.show {
  opacity: 1;
  pointer-events: auto;
  max-height: 150px; 
}


.map-truck-suggestions div {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.map-truck-suggestions div:hover {
  background-color: #f0f0f0;
}




#mapSearchModeSwitch {
  appearance: none;
  width: 36px; height: 24px;
  background: #E36D26;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background .2s ease;
  vertical-align: middle;
}
#mapSearchModeSwitch::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
#mapSearchModeSwitch:checked {
  background: #E36D26; 
}
#mapSearchModeSwitch:checked::after {
  transform: translateX(12px);
}





#mapTimeSelector select,
#mapTimeSelector input,
#mapTimeSelector button {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}





.browse-search-container {
  display: flex;
  align-items: center;
  gap: 10px; 
  background: none !important;
  padding: 0;
  border-radius: 0;
  margin-bottom: 15px;
}

.browse-search-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #f3f3f3;   
  border-radius: 38px;
  height: 48px;
  width: 100%;
}

.browse-search {
  border: none !important;
  background: transparent !important;
  border: none;
  outline: none;
  border-radius: 20px;
  font-size: 16px;
  width: 100%;
  padding-left: 44px;  !important
  padding-right: 16px;
  height: 48px;
  box-shadow: none;
  
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.85;
  top: 50%;
  transform: translateY(-50%);
}

.filter-btn {
  background: none;
  border: none;
  outline: none;
  padding: 0 0 0 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.filter-icon {
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

.browse-search::placeholder {
  color: #444;
  opacity: 1;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}




.browse-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.browse-filters .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 12px;
}

.browse-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1.25, 0.5, 1);
  padding: 20px;
  z-index: 9999;
  display: none;  
}

.browse-panel.open {
  transform: translateY(0);
  display: block;
}

.browse-panel.dragging {
  transition: none !important;
}

.browse-panel .browse-panel-content{
  overflow: auto;                
  max-height: calc(86dvh - 80px);
  padding-bottom: 8px;
}

.browse-panel .drag-handle {
  width: 50px;
  height: 5px;
  background: #ccc;
  border-radius: 5px;
  margin: 0 auto 15px auto;
}

.browse-panel-content h4 {
  margin-bottom: 15px;
}

.browse-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.browse-overlay.show {
  opacity: 1;
  visibility: visible;
}


#filterPanel {
  --brand:#d36b06;
  --panel-bg:#ffffff;
}

#filterPanel .browse-panel-header h4{
  margin: 18px 6px 8px;
  font-weight: 800;
  letter-spacing: .2px;
}


#filterPanel .browse-panel-content input[type="range"]{
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: #eee; outline: none;
}
#filterPanel .browse-panel-content input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(211,107,6,.35);
  cursor: pointer;
  margin-top: -8px;
}
#filterPanel .browse-panel-content input[type="range"]::-moz-range-thumb{
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(211,107,6,.35);
  cursor: pointer;
}

#filterPanel .form-label,
#filterPanel .form-check-label{
  font-weight: 600; color: #333;
}

#filterPanel .btn.btn-primary{
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(211,107,6,.25);
}
#filterPanel .btn.btn-primary:active{ transform: translateY(1px); }



#truckList {
  margin-bottom: 6rem; 
}



.loyalty-section {
  margin: 20px;
}

.points-container {
  text-align: center;
  margin-bottom: 20px;
}

.points-number {
  font-size: 60px;
  font-weight: bold;
  color: #d36b06;
}

.points-label {
  font-size: 18px;
  color: gray;
}

.qr-container {
  text-align: center;
  margin-bottom: 30px;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background-color: #f2f2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 16px;
}

.history-list {
  margin-top: 10px;
}

.history-list p.empty {
  text-align: center;
  color: gray;
  font-style: italic;
}

#qrFullscreen.show{ display:flex; }

#qrFullscreen.show img {
  transform: scale(1.05);
}

#qrFullscreen{
  position: fixed !important;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  z-index: 2147483000; 
}
#qrFullscreen .qr-box{ z-index: 1000000; }
#qrFullscreen .qr-fullscreen-note{
  text-align: center;
  font-size: 14px;
  color: #555;
  max-width: 360px;
  line-height: 1.35;
}


body.qr-open header,
body.qr-open footer{
  pointer-events: none;         
}
body.qr-open #truckPanel{ z-index: 1000 !important; }
body.qr-open #truckOverlay{ z-index: 1000 !important; }


.truck-card-loyality{
  display:flex; align-items:center; gap:12px;
  background:#fff; border:1px solid #eee; border-radius:12px;
  padding:10px 12px; margin-bottom:10px;
}
.truck-card-loyality > img{
  width:52px; height:52px; object-fit:cover; border-radius:10px; flex-shrink:0;
}
.truck-card-loyality .truck-row{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.truck-card-loyality .truck-name{
  font-size:16px; font-weight:700; color:#333; line-height:1.2;
}
.truck-card-loyality .points{
  font-size:19px; font-weight:700; color:#E36D26;
}


.earn-rule{
  font-size:12px; color:#666; margin-top:2px;
}


.loy-bar{
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #f1f1f1;
  margin-top: 8px;
  overflow: visible;             
}

.loy-bar .fill{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;                     
  background: #E36D26;           
  border-radius: 999px;
  z-index: 1;                    
}


.loy-bar .marker{
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%); 
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bdbdbd;               
  border: 2px solid #ffffff;         
  box-shadow: 0 0 0 1px #cfcfcf;    
  z-index: 2;                       
}

.loy-bar .marker.reached{
  background: #E36D26;                 
  box-shadow: 0 0 0 1px rgba(227,109,38,.45);
}

.loy-bar .marker .lbl{
  display: none !important;  
  position: absolute;
  top: 14px;                    
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #555;
  white-space: nowrap;
}


.cc-order-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  pointer-events: auto;
}
.cc-order-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
  padding: 16px;
  width: min(520px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  pointer-events: auto;
}
.cc-order-slots, .cc-order-times {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cc-section-title {
  font-weight: 700;
  color: #333;
  font-size: 0.95rem;
}
.cc-truck-name {
  color: #d36b06;
  font-weight: 700;
  font-size: 1rem;
}
.cc-order-select {
  width: 100%;
}
.cc-order-select option {
  color: #3a3a3a;
}
.cc-order-divider {
  margin: 10px 0 14px;
  border-color: #f1f1f1;
}
.cc-slot-btn, .cc-time-btn {
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}
.cc-slot-btn.selected, .cc-time-btn.selected {
  border-color: #d36b06;
  color: #d36b06;
  background: #fff7ef;
}
.cc-time-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.cc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}
.cc-item-row input {
  width: 80px;
}
.cc-item-row .cc-item-add-btn {
  min-width: 90px;
}
.cc-choice-title {
  font-weight: 600;
  color: #555;
  font-size: 0.85rem;
}
.cc-choice-select.is-invalid {
  border-color: #c00 !important;
  box-shadow: 0 0 0 0.1rem rgba(204,0,0,0.1);
}
.cc-order-cart {
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cc-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
.cc-cart-item.invalid {
  border-color: #c00;
  background: #fff3f3;
}
.cc-cart-item .cc-cart-meta {
  font-size: 12px;
  color: #777;
}
.cc-cart-remove {
  border: none;
  background: transparent;
  color: #c00;
  font-size: 14px;
}
.cc-cart-price {
  font-weight: 600;
  color: #444;
  min-width: 70px;
  text-align: right;
}
.cc-cart-summary {
  font-size: 0.92rem;
  color: #444;
  font-weight: 400;
}
.cc-cart-summary.muted {
  color: #777;
  font-size: 0.88rem;
  font-weight: 400;
}
.orders-list-user {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card-user {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.order-items-user {
  margin: 8px 0 0 18px;
  padding: 0;
}

.order-card-user .order-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.order-card-user .order-title {
  color:#E36D26;
  font-weight:700;
  font-size:16px;
  line-height:1.2;
}
.order-card-user .order-proposed {
  display:inline-block;
  border-radius:8px;
  padding:4px 8px;
  font-size:11px;
  margin-top:4px;
  background:#fff8e1;
  color:#b26a00;
  border:1px solid #ffd38a;
}
.order-card-user .order-proposed.done {
  background:#f2f2f2;
  color:#555;
  border-color:#e5e5e5;
}


.truck-card-v2 .meta{
  display:flex; flex-direction:column;
}
.truck-card-v2 .right{
  text-align:right;
}
@media (max-width:480px){
  .truck-card-v2 .truck-row{ flex-direction:column; align-items:flex-start; }
  .truck-card-v2 .right{ text-align:left; }
}



.rewards-head{
  display:flex; align-items:center; gap:10px; margin-bottom:8px;
}
.rewards-head img{
  width:44px; height:44px; border-radius:10px; object-fit:cover;
}

.rewards-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
  gap:12px; margin-top:12px; justify-content:center;
}
.reward-card{
  position:relative; border:1px solid #eee; border-radius:12px;
  overflow:hidden; background:#fff; cursor:pointer;
  transition: transform .08s ease;
}
.reward-card:hover{ transform: translateY(-1px); }
.reward-card.disabled{ opacity:.55; filter: grayscale(0.2); cursor:not-allowed; }
.reward-card .thumb{
  width:100%; aspect-ratio: 1/1; object-fit:cover; background:#f7f7f7;
}
.reward-card .cap{
  padding:8px; display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.reward-card .name{
  font-size:13px; color:#333; font-weight:600; line-height:1.1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.reward-card .cost{
  color:#E36D26; font-weight:700; font-size:13px;
  padding:2px 8px; border:1px solid #ffd3b8; border-radius:999px; background:#fff8f3;
}


.rewards-sub{
  font-size:13px; color:#666; margin-top:2px;
}

@media (max-width:480px){
  .rewards-grid{ grid-template-columns: 1fr 1fr; }
}




.account-list {
  list-style: none;
  padding: 0;
}

.account-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  cursor: pointer;
}

.account-list li:hover {
  background-color: #f9f9f9;
}





.subpage {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
}

.subpage.show {
  left: 0;
}

.subpage-header {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #f7f7f7;
  border-bottom: 1px solid #ccc;
}

.back-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #d36b06;
  cursor: pointer;
  margin-right: 1rem;
}

.subpage-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 102px;
}

.subpage.dragging {
  transition: none;
}




#authPage {
  background-color: #d36b06;
  position: relative;
  width: 106%;
  height: 102vh;
}

.auth-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 360px;
  min-height: 574px; 
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-message {
  flex-shrink: 0;
  margin-bottom : 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 173px;
}


.auth-message img { 
  width: 120px; 
  margin-bottom: 20px; 
}

.auth-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-top: auto; 
}

.auth-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.auth-button {
  width: 100%;
  padding: 12px;
  background-color: #d36b06;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.auth-button:hover {
  background-color: #b85a05;
}

.auth-button.secondary {
  background-color: #f4f4f4;
  color: #d36b06;
}

.forgot-btn,
.resendEmail-btn {
  background: none;
  border: none;
  margin-top: 12px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.forgot-btn {
  color: #000000;
}

.forgot-btn:hover {
  color: #000000;
}

.resendEmail-btn {
  color: #000000;
}


.auth-modal { position: fixed; inset: 0; z-index: 1000; }
.auth-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
}
.auth-modal-dialog {
  position: relative; margin: 8vh auto 0; width: min(92vw, 420px);
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.auth-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eee;
}
.auth-modal-header h3 { margin: 0; font-size: 18px; font-weight: 800; color: #1b1f2a; }
.auth-modal-close {
  background: transparent; border: none; font-size: 18px; cursor: pointer; line-height: 1;
}
.auth-modal-body { padding: 16px 18px; display: grid; gap: 10px; }
.auth-modal-label { font-size: 13px; color: #4b5563; }
.auth-modal-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #374151; }
.auth-modal-check a { color: #d36b06; text-decoration: underline; }
.auth-modal-footer {
  display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid #eee;
}
.auth-modal-message { min-height: 18px; font-size: 14px; color: #d03636; }








.conf-section h4 {
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1.1rem;
}
.conf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.conf-label {
  color: #888;
  font-size: 14px;
  margin-right: 8px;
}
.conf-value {
  font-size: 15px;
  font-weight: 500;
}
.conf-action {
  background: #f1e6d9;
  color: #d36b06;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.conf-action:hover {
  background: #d36b06;
  color: #fff;
}
.conf-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.conf-legal-list li {
  margin-bottom: 6px;
}
.conf-legal-list a {
  color: #d36b06;
  text-decoration: underline;
  font-size: 15px;
  cursor: pointer;
  transition: color .15s;
}
.conf-legal-list a:hover {
  color: #b25b02;
}

.lang-select-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.lang-btn {
  background: #f6f6f6;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  cursor: pointer;
  color: #222;
  position: relative;
  transition: background .13s;
}
.lang-btn:hover {
  background: #eaeaea;
}
.flag {
  font-size: 1.6em;
}
.selected-check {
  position: absolute;
  right: 18px;
  font-size: 1.2em;
  color: #36c06a;
}



.aide-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 22px 18px 16px 18px;
  margin-bottom: 24px;
}

.aide-box h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #111;        
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.reseaux-list li {
  margin-bottom: 7px;
}

.reseaux-list a:hover {
  text-decoration: underline;
  opacity: 1 !important;
}

.aide-box a {
  transition: color 0.15s, opacity 0.12s;
}




.modal-custom {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.modal-custom.show {
  display: flex !important;
}

.modal-backdrop {
  z-index: 30000 !important;
}
.modal {
  z-index: 30001 !important;
}


.modal-open header,
.modal-open footer,
.modal-open .app-header,
.modal-open .app-footer,
.modal-open .bottom-nav,
.modal-open .navbar,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
  pointer-events: none !important;
  filter: opacity(0.9);
}
