/*
 * ALKAS Customer Mobile-First Design System
 * UI layer: keeps current Flask/Jinja structure and business logic intact.
 * Targets: 360x800, 390x844, 412x915 first; expands progressively for tablet/desktop.
 */

.customer-app-page{
  --mf-primary:#08a982;
  --mf-primary-dark:#08775f;
  --mf-surface:#ffffff;
  --mf-background:#f4f8f6;
  --mf-text:#172821;
  --mf-muted:#71817b;
  --mf-line:#dfeae6;
  --mf-soft:#e9f7f2;
  --mf-danger:#d95353;
  --mf-warning:#a97818;
  --mf-radius:18px;
  --mf-shadow:0 8px 26px rgba(17,57,48,.055);
  color:var(--mf-text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.customer-app-page input,
.customer-app-page select,
.customer-app-page textarea,
.customer-app-page button{
  font:inherit;
}

.customer-app-page a,
.customer-app-page button,
.customer-app-page input,
.customer-app-page select,
.customer-app-page textarea{
  -webkit-tap-highlight-color:transparent;
}

.customer-app-page img,
.customer-app-page video,
.customer-app-page svg{
  max-width:100%;
}

.customer-app-page .page-shell{
  min-width:0;
}

.customer-app-page .customer-bottom-nav{
  min-height:70px;
  height:auto;
  padding-top:7px;
  padding-bottom:max(8px,env(safe-area-inset-bottom));
  isolation:isolate;
}

.customer-app-page .customer-bottom-nav>a:not(.customer-book-fab){
  min-height:52px;
  min-width:44px;
  font-size:.74rem;
  gap:4px;
}

.customer-app-page .customer-bottom-nav small{
  font-size:.72rem;
  line-height:1.15;
}

.customer-app-page .customer-nav-icon,
.customer-app-page .customer-nav-icon svg{
  width:24px;
  height:24px;
}

.customer-app-page .customer-book-fab{
  width:56px;
  height:56px;
  min-width:56px;
  min-height:56px;
  margin-top:-23px;
  border-width:4px;
}

.customer-app-page .customer-bottom-nav + .mobile-nav{
  display:none;
}

.customer-app-page :is(button,a,input,select,textarea):focus-visible{
  outline:3px solid color-mix(in srgb,var(--mf-primary) 32%,transparent);
  outline-offset:2px;
}

/* =========================
   Shared mobile shell
   ========================= */
@media (max-width:768px){
  .customer-app-page{
    background:var(--mf-background);
    font-size:16px;
  }

  .customer-app-page .page-shell{
    width:100%;
    max-width:760px;
    margin-inline:auto;
    padding:12px 14px calc(94px + env(safe-area-inset-bottom));
  }

  .customer-app-page :is(.public-header,.customer-welcome,.booking-mobile-head,.account-page-head){
    max-width:100%;
  }

  .customer-app-page :is(.panel,.booking-card,.booking-total-card,.booking-help-card,.booking-policy-card,
    .account-profile-hero,.account-summary-grid a,.account-editor-card,.notification-preferences-card,
    .detail-hero,.detail-resource-list,.detail-money-grid,.receipt-history,.booking-chat-card,
    .customer-booking-card,.account-row,.hub-detail){
    border-radius:var(--mf-radius);
  }

  .customer-app-page :is(.btn,.hub-primary,.hub-soft,.booking-primary-button,.detail-action-button,
    .account-logout-button,.booking-head-link,.account-mini-edit){
    min-height:48px;
    font-size:1rem;
  }

  .customer-app-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
    min-height:50px;
    font-size:16px !important;
  }

  .customer-app-page :is(label,small,.eyebrow){
    letter-spacing:0;
  }
}

/* =========================
   Customer home
   ========================= */
@media (max-width:768px){
  .home-public-page .page-shell{
    width:100%;
    max-width:760px;
    padding:12px 14px calc(94px + env(safe-area-inset-bottom));
  }

  .customer-home-page{
    gap:0;
  }

  .customer-home-header{
    min-height:58px;
    gap:10px;
    margin-bottom:10px;
  }

  .home-profile{
    gap:11px;
  }

  .home-avatar{
    width:48px;
    height:48px;
    flex-basis:48px;
    border-radius:16px;
    font-size:1.12rem;
  }

  .home-profile-copy{
    gap:5px;
    min-width:0;
  }

  .home-profile-copy span{
    font-size:.82rem;
    line-height:1.15;
  }

  .home-profile-copy strong{
    font-size:1.08rem;
    line-height:1.2;
    max-width:42vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .home-header-actions{
    gap:6px;
  }

  .home-icon-button{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    border-radius:14px;
  }

  .home-icon-button svg{
    width:22px !important;
    height:22px !important;
  }

  .home-points-pill{
    min-height:44px;
    padding-inline:9px;
    border-radius:14px;
    font-size:.8rem;
  }

  .home-points-value{
    font-size:.86rem;
  }

  .home-search{
    height:52px;
    margin-bottom:13px;
    border-radius:17px;
    padding-inline:7px;
  }

  .home-search input{
    font-size:16px;
    font-weight:750;
    padding-inline:10px;
  }

  .home-search-icon,
  .home-filter-button{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:12px;
  }

  .home-search-icon svg,
  .home-filter-button svg{
    width:21px !important;
    height:21px !important;
  }

  .home-location-row{
    padding-bottom:8px;
  }

  .home-location-pill{
    min-height:44px;
    font-size:.9rem;
    padding-inline:8px;
  }

  .home-featured-banner{
    margin-bottom:18px;
  }

  .home-featured-viewport{
    aspect-ratio:16/9;
    min-height:185px;
    max-height:240px;
    border-radius:20px;
  }

  .home-featured-overlay{
    background:
      linear-gradient(270deg,rgba(2,25,20,.8) 0%,rgba(2,25,20,.38) 54%,rgba(2,25,20,.04) 100%),
      linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.16));
  }

  .home-featured-brand{
    top:11px;
    right:12px;
  }

  .home-featured-brand img{
    max-width:100px;
    max-height:32px;
  }

  .home-featured-copy{
    right:14px;
    left:14px;
    bottom:14px;
    width:auto;
    gap:6px;
    align-items:flex-start;
  }

  .home-featured-badge{
    padding:6px 9px;
    border-radius:999px;
    font-size:.75rem;
  }

  .home-featured-copy h1{
    max-width:92%;
    font-size:clamp(1.2rem,5.3vw,1.75rem);
    line-height:1.28;
  }

  .home-featured-copy p{
    max-width:92%;
    font-size:.82rem;
    line-height:1.55;
    -webkit-line-clamp:2;
  }

  .home-featured-cta{
    min-height:42px;
    padding:0 12px;
    border-radius:11px;
    font-size:.82rem;
  }

  .home-featured-dots{
    bottom:9px;
    gap:6px;
  }

  .home-featured-dot{
    width:7px;
    height:7px;
  }

  .home-featured-dot.is-active{
    width:20px;
  }

  .home-section{
    margin-top:19px;
  }

  .home-section-label,
  .home-section-head h2{
    font-size:1.14rem !important;
    line-height:1.35;
  }

  .home-section-head{
    margin-bottom:10px;
  }

  .home-section-head a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding-inline:6px;
    font-size:.82rem;
  }

  .home-sports-scroller,
  .home-resource-scroller,
  .home-live-scroller,
  .home-match-scroller,
  .home-bottom-discover-scroller{
    gap:10px;
    padding-bottom:7px;
    scroll-snap-type:x proximity;
  }

  .home-sports-scroller>a,
  .home-resource-scroller>a,
  .home-live-scroller>a,
  .home-match-scroller>a,
  .home-bottom-discover-scroller>a{
    scroll-snap-align:start;
  }

  .home-sport-tile{
    flex-basis:112px;
    height:126px;
    border-radius:16px;
  }

  .home-sport-icon{
    font-size:2.45rem;
  }

  .home-sport-tile>span:last-child{
    right:8px;
    left:8px;
    bottom:9px;
    font-size:.8rem;
  }

  .home-fast-booking{
    margin-top:20px;
    padding:14px;
    border-radius:20px;
  }

  .home-fast-booking-head h2{
    font-size:1.15rem;
  }

  .home-fast-booking-head span:first-child{
    font-size:.78rem;
  }

  .home-fast-badge{
    padding:6px 9px;
    font-size:.72rem;
  }

  .home-fast-form{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }

  .home-fast-form label{
    min-height:58px;
    padding:8px 9px;
    border-radius:13px;
  }

  .home-fast-form label small{
    font-size:.7rem;
  }

  .home-fast-form label select,
  .home-fast-form label input{
    min-height:42px;
    font-size:.92rem !important;
  }

  .home-fast-submit{
    grid-column:1/-1;
    min-height:52px;
    border-radius:13px;
    font-size:.95rem;
  }

  .home-resource-card{
    flex-basis:min(78vw,300px);
    border-radius:18px;
  }

  .home-resource-photo{
    height:150px;
  }

  .home-available-chip,
  .home-resource-tag{
    min-height:32px;
    display:inline-flex;
    align-items:center;
    font-size:.72rem;
    padding-inline:8px;
  }

  .home-resource-body{
    padding:12px;
  }

  .home-resource-title h3{
    font-size:1rem;
  }

  .home-star-chip{
    width:36px;
    height:30px;
    font-size:.78rem;
  }

  .home-resource-body p{
    margin:6px 0 9px;
    font-size:.8rem;
    line-height:1.6;
  }

  .home-resource-meta{
    font-size:.78rem;
  }

  .home-card-cta{
    min-height:46px;
    margin-top:10px;
    border-radius:11px;
    font-size:.88rem;
  }

  .home-my-booking-row{
    grid-template-columns:52px 1fr auto;
    gap:9px;
    min-height:72px;
    padding:10px;
  }

  .home-my-booking-thumb{
    width:52px;
    height:45px;
  }

  .home-my-booking-main strong{
    font-size:.86rem;
  }

  .home-my-booking-main small{
    font-size:.72rem;
  }

  .home-booking-status{
    font-size:.7rem;
    padding:6px 8px;
  }

  .home-my-booking-price{
    display:none;
  }

  .home-my-booking-row>svg{
    display:none;
  }

  .home-empty-booking{
    min-height:86px;
    padding:14px;
  }

  .home-empty-booking strong{
    font-size:.86rem;
  }

  .home-empty-booking small{
    font-size:.72rem;
    line-height:1.6;
  }

  .home-live-card{
    height:190px;
  }

  .home-live-copy strong{
    font-size:1rem;
  }

  .home-live-copy small{
    font-size:.76rem;
    line-height:1.5;
  }

  .home-live-pill{
    min-height:32px;
    display:inline-flex;
    align-items:center;
    font-size:.72rem;
  }

  .home-match-card{
    flex-basis:220px;
    min-height:190px;
    padding:14px 12px;
  }

  .home-match-card>small:first-child{
    font-size:.72rem;
  }

  .home-match-card>strong{
    font-size:1rem;
  }

  .home-match-teams{
    margin-top:13px;
  }

  .home-match-teams img,
  .home-match-teams>div>span{
    width:42px;
    height:42px;
    font-size:.9rem;
  }

  .home-match-teams b{
    max-width:90px;
    font-size:.72rem;
  }

  .home-match-place{
    font-size:.68rem;
  }

  .home-promo-grid,
  .home-info-row{
    grid-template-columns:1fr;
    gap:10px;
  }

  .home-promo-card{
    min-height:132px;
    border-radius:17px;
  }

  .home-promo-copy strong{
    font-size:.92rem;
  }

  .home-promo-copy span{
    font-size:.7rem;
  }

  .home-membership-grid{
    grid-template-columns:1fr 1fr !important;
    gap:9px;
  }

  .home-membership-card{
    min-height:154px;
    padding:12px;
    border-radius:16px;
  }

  .home-membership-card strong{
    font-size:.95rem;
  }

  .home-membership-price{
    font-size:1.15rem;
  }

  .home-membership-meta{
    font-size:.7rem;
  }

  .home-services-grid{
    grid-template-columns:1fr 1fr !important;
    gap:9px;
  }

  .home-service-tile{
    min-height:104px;
    border-radius:16px;
    padding:10px;
  }

  .home-service-tile b{
    font-size:.86rem !important;
  }

  .home-service-tile small{
    font-size:.7rem !important;
  }

  .home-service-tile>span{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
  }
}

@media (max-width:390px){
  .home-public-page .page-shell{
    padding-inline:12px;
  }

  .customer-home-header{
    gap:6px;
  }

  .home-header-actions{
    gap:5px;
  }

  .home-points-pill{
    padding-inline:7px;
  }

  .home-points-pill>span:nth-child(2){
    display:none;
  }

  .home-featured-viewport{
    min-height:180px;
  }

  .home-featured-copy h1{
    font-size:1.18rem;
  }

  .home-featured-copy p{
    font-size:.76rem;
  }

  .home-fast-booking{
    padding:12px;
  }

  .home-fast-form{
    grid-template-columns:1fr;
  }

  .home-fast-submit{
    grid-column:auto;
  }

  .home-membership-grid{
    grid-template-columns:1fr !important;
  }
}

/* =========================
   Booking screen
   ========================= */
@media (max-width:768px){
  .booking-mobile-page{
    width:100%;
    max-width:720px;
    margin-inline:auto;
  }

  .booking-mobile-head{
    min-height:58px;
    grid-template-columns:44px 1fr auto !important;
    gap:9px;
    margin-bottom:12px;
  }

  .booking-mobile-head>div span{
    font-size:.82rem !important;
  }

  .booking-mobile-head>div h1{
    margin-top:2px !important;
    font-size:1.45rem !important;
    line-height:1.2;
  }

  .booking-back{
    width:44px !important;
    height:44px !important;
    min-width:44px;
    min-height:44px;
    border-radius:13px;
    font-size:1.8rem !important;
  }

  .booking-head-link{
    min-height:44px !important;
    padding-inline:10px !important;
    border-radius:12px !important;
    font-size:.82rem !important;
  }

  .booking-card{
    padding:14px !important;
    margin-bottom:11px !important;
    box-shadow:var(--mf-shadow) !important;
  }

  .booking-step{
    gap:10px !important;
    margin-bottom:11px !important;
  }

  .booking-step>span{
    width:34px !important;
    height:34px !important;
    flex-basis:34px !important;
    font-size:.95rem !important;
  }

  .booking-step small{
    font-size:.8rem !important;
  }

  .booking-step strong{
    font-size:1rem !important;
  }

  .booking-sport-scroller{
    gap:8px !important;
    padding-bottom:5px;
  }

  .booking-sport-chip{
    min-height:46px !important;
    padding-inline:14px !important;
    border-radius:13px !important;
    font-size:.9rem !important;
    flex:0 0 auto;
  }

  .booking-selection-hint{
    margin-top:8px !important;
    font-size:.78rem !important;
    line-height:1.65 !important;
  }

  .booking-date-time-card .booking-schedule-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:10px !important;
  }

  .booking-date-time-card .booking-date-field{
    grid-column:1/-1;
  }

  .booking-control-label{
    font-size:.82rem !important;
    margin-bottom:5px;
  }

  .booking-control-box{
    min-height:52px !important;
    height:52px !important;
    padding-inline:9px !important;
    border-radius:13px !important;
  }

  .booking-control-icon,
  .booking-control-icon svg{
    width:22px !important;
    height:22px !important;
  }

  .booking-control-box input,
  .booking-control-box select,
  .booking-duration-box select{
    min-height:48px !important;
    font-size:16px !important;
  }

  .booking-date-quick-row{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px !important;
    margin-top:8px !important;
  }

  .booking-date-quick{
    min-height:48px !important;
    padding:5px 9px !important;
    border-radius:12px !important;
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:7px;
  }

  .booking-date-quick span{
    font-size:.78rem !important;
  }

  .booking-date-quick b{
    font-size:.8rem !important;
  }

  .booking-control-help{
    margin-top:5px;
    font-size:.68rem !important;
  }

  .booking-slot-status{
    min-height:46px !important;
    padding:10px 11px !important;
    margin-top:10px !important;
    display:flex;
    align-items:center;
    line-height:1.55;
    font-size:.78rem !important;
    border-radius:12px !important;
  }

  .booking-section-title{
    gap:8px !important;
  }

  .booking-section-title h2{
    font-size:1.1rem !important;
  }

  .booking-section-title small{
    font-size:.78rem !important;
  }

  .booking-section-title>span{
    font-size:.76rem !important;
  }

  .booking-resource-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .booking-resource-option{
    min-height:116px;
    grid-template-columns:92px 1fr auto !important;
    border-radius:16px !important;
    padding:8px !important;
  }

  .booking-resource-art{
    width:92px !important;
    height:100px !important;
    min-height:100px !important;
    border-radius:12px !important;
  }

  .booking-resource-art b{
    font-size:2rem !important;
  }

  .booking-resource-main{
    min-width:0;
    padding-inline:3px;
  }

  .booking-resource-title strong{
    font-size:1rem !important;
  }

  .booking-resource-main small{
    margin-top:4px !important;
    font-size:.74rem !important;
    line-height:1.5;
  }

  .booking-resource-main em{
    display:inline-flex !important;
    align-items:center;
    min-height:32px;
    margin-top:7px !important;
    font-size:.72rem !important;
    border-radius:8px;
  }

  .booking-resource-side{
    min-width:74px;
  }

  .booking-resource-side b{
    font-size:.95rem !important;
  }

  .booking-resource-side small{
    font-size:.68rem !important;
  }

  .booking-resource-tap{
    grid-column:2/-1;
    min-height:42px !important;
    padding:0 9px !important;
    margin-top:2px;
    border-radius:10px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:.8rem !important;
  }

  /* Turn the booking cart table into touch-friendly cards. */
  .booking-cart-table-wrap{
    overflow:visible !important;
  }

  .booking-cart-table,
  .booking-cart-table tbody{
    display:grid !important;
    gap:10px !important;
    width:100%;
  }

  .booking-cart-table thead{
    display:none !important;
  }

  .booking-cart-table tbody tr{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:9px !important;
    padding:12px !important;
    border:1px solid var(--mf-line) !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 5px 18px rgba(17,57,48,.035);
  }

  .booking-cart-table tbody td{
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
    display:grid !important;
    gap:4px !important;
    align-content:start;
  }

  .booking-cart-table tbody td[data-label]::before{
    content:attr(data-label);
    color:#85938e;
    font-size:.7rem;
    font-weight:850;
    line-height:1.2;
  }

  .booking-cart-table tbody .cart-resource-cell{
    grid-column:1/-1;
    padding-bottom:2px !important;
  }

  .booking-cart-table tbody .cart-resource-cell strong{
    font-size:1rem !important;
  }

  .booking-cart-table tbody .cart-resource-cell small{
    font-size:.76rem !important;
  }

  .booking-cart-table tbody td :is(input,select){
    width:100%;
    min-height:46px !important;
    border-radius:10px !important;
    font-size:15px !important;
  }

  .booking-cart-table tbody .cart-end-time{
    min-height:46px;
    align-content:center;
    padding-inline:10px !important;
    border-radius:10px !important;
    background:#f4faf7;
    color:#20382f;
    font-size:.9rem !important;
    font-weight:900;
  }

  .booking-cart-table tbody .cart-price{
    min-height:46px;
    align-content:center;
    padding-inline:10px !important;
    border-radius:10px !important;
    background:#effaf6;
    color:#078564;
    font-size:.9rem !important;
    font-weight:950;
  }

  .booking-cart-table tbody td:last-child{
    grid-column:1/-1;
    justify-items:stretch;
  }

  .booking-cart-table .cart-remove{
    width:100% !important;
    min-height:44px !important;
    border-radius:11px !important;
    font-size:1rem !important;
  }

  .booking-cart-total{
    min-height:64px !important;
    margin-top:10px !important;
    padding:10px 12px !important;
    border-radius:14px !important;
  }

  .booking-cart-total span{
    font-size:.82rem !important;
  }

  .booking-cart-total strong{
    font-size:1.25rem !important;
  }

  .booking-guest-card{
    padding:14px !important;
    border-radius:18px !important;
  }

  .booking-card-title strong{
    font-size:1rem !important;
  }

  .booking-card-title small{
    font-size:.76rem !important;
    line-height:1.65 !important;
  }

  .booking-guest-grid{
    grid-template-columns:1fr !important;
    gap:9px !important;
  }

  .booking-guest-grid label{
    font-size:.82rem !important;
  }

  .booking-guest-grid input{
    min-height:50px !important;
    font-size:16px !important;
  }

  .booking-total-card{
    padding:14px !important;
    border-radius:19px !important;
    gap:11px !important;
  }

  .booking-total-card>div>small{
    font-size:.78rem !important;
  }

  .booking-total-card>div>strong{
    margin-top:4px !important;
    font-size:1.55rem !important;
  }

  .booking-total-card>div>span{
    margin-top:5px !important;
    font-size:.75rem !important;
    line-height:1.55 !important;
  }

  .booking-primary-button{
    min-height:54px !important;
    border-radius:14px !important;
    font-size:1rem !important;
    width:100%;
  }

  .booking-alert{
    min-height:46px;
    padding:10px 11px !important;
    border-radius:12px !important;
    font-size:.8rem !important;
    line-height:1.6 !important;
  }

  .booking-payment-line,
  .booking-policy-card p,
  .booking-steps-footer,
  .booking-help-card small{
    font-size:.78rem !important;
    line-height:1.75 !important;
  }

  .booking-method-pills{
    gap:7px !important;
  }

  .booking-method-pills span{
    min-height:38px !important;
    padding-inline:10px !important;
    display:inline-flex !important;
    align-items:center;
    font-size:.76rem !important;
  }

  .booking-confirm{
    position:sticky !important;
    bottom:calc(76px + env(safe-area-inset-bottom)) !important;
    z-index:60;
    padding:11px !important;
    border-radius:16px !important;
    box-shadow:0 10px 34px rgba(17,57,48,.15) !important;
  }

  .booking-confirm strong{
    font-size:.98rem !important;
  }

  .booking-confirm small{
    font-size:.74rem !important;
  }

  .booking-confirm button{
    min-height:48px !important;
    font-size:.9rem !important;
  }
}

@media (max-width:390px){
  .booking-mobile-head>div h1{
    font-size:1.3rem !important;
  }

  .booking-card{
    padding:12px !important;
  }

  .booking-resource-option{
    grid-template-columns:80px 1fr !important;
  }

  .booking-resource-art{
    width:80px !important;
    height:94px !important;
    min-height:94px !important;
  }

  .booking-resource-side{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    min-width:68px;
  }

  .booking-resource-main{
    grid-column:2;
    grid-row:1;
    padding-inline-start:2px;
    padding-inline-end:70px;
  }

  .booking-resource-tap{
    grid-column:1/-1;
    grid-row:2;
  }

  .booking-resource-title strong{
    font-size:.94rem !important;
  }

  .booking-resource-main small{
    font-size:.7rem !important;
  }
}

/* =========================
   Customer account / hub / dashboard
   ========================= */
@media (max-width:768px){
  .customer-account-page,
  .customer-hub{
    width:100% !important;
    max-width:760px !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
    padding-bottom:18px !important;
  }

  .customer-hub-head{
    align-items:stretch !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  .customer-hub-head h1{
    font-size:1.65rem !important;
    line-height:1.25;
  }

  .customer-hub-head p{
    font-size:.82rem !important;
    line-height:1.7;
  }

  .customer-hub-head .hub-primary{
    width:100%;
  }

  .account-page-head{
    grid-template-columns:44px 1fr 44px !important;
    gap:8px;
    margin-bottom:12px;
  }

  .account-page-head small{
    font-size:.8rem !important;
  }

  .account-page-head h1{
    font-size:1.55rem !important;
  }

  .account-back,
  .account-notification-button{
    width:44px !important;
    height:44px !important;
    min-width:44px;
    min-height:44px;
    border-radius:13px !important;
  }

  .account-alert{
    min-height:48px;
    padding:11px 12px !important;
    font-size:.82rem !important;
    line-height:1.6;
  }

  .account-profile-hero{
    grid-template-columns:64px minmax(0,1fr) auto !important;
    padding:13px !important;
    gap:11px !important;
    box-shadow:var(--mf-shadow);
  }

  .account-avatar-large{
    width:64px !important;
    height:64px !important;
    border-radius:19px !important;
    font-size:1.35rem !important;
  }

  .account-profile-copy span{
    font-size:.75rem !important;
  }

  .account-profile-copy h2{
    font-size:1.08rem !important;
    line-height:1.3;
  }

  .account-profile-copy small{
    font-size:.74rem !important;
  }

  .account-mini-edit{
    min-height:44px !important;
    padding-inline:10px !important;
    font-size:.78rem !important;
    display:inline-flex;
    align-items:center;
  }

  .account-summary-grid{
    gap:8px !important;
    margin-top:10px !important;
  }

  .account-summary-grid a{
    min-height:78px !important;
  }

  .account-summary-grid strong{
    font-size:1.2rem !important;
  }

  .account-summary-grid small{
    margin-top:4px !important;
    font-size:.72rem !important;
  }

  .account-section{
    margin-top:16px !important;
  }

  .account-section-title{
    margin-bottom:9px !important;
  }

  .account-section-title h2{
    font-size:1.05rem !important;
  }

  .account-section-title .hub-soft{
    min-height:42px !important;
    font-size:.78rem !important;
  }

  .account-quick-section .service-grid{
    grid-template-columns:1fr 1fr !important;
    gap:9px !important;
  }

  .account-quick-section .service-tile{
    min-height:104px !important;
    border-radius:16px !important;
    padding:10px 7px !important;
  }

  .account-quick-section .service-tile b{
    font-size:.82rem !important;
  }

  .account-quick-section .service-tile small{
    font-size:.68rem !important;
  }

  .service-grid{
    grid-template-columns:1fr 1fr !important;
    gap:9px !important;
  }

  .service-tile{
    min-height:92px !important;
    padding:9px 6px !important;
    border-radius:15px !important;
  }

  .service-tile b{
    font-size:.78rem !important;
  }

  .service-tile small{
    font-size:.64rem !important;
  }

  .service-tile .icon-tile{
    width:40px !important;
    height:40px !important;
    flex-basis:40px !important;
    border-radius:13px !important;
    font-size:.95rem !important;
  }

  .account-editor-card summary{
    min-height:64px;
    padding:12px 13px !important;
  }

  .account-editor-card summary span{
    font-size:.9rem !important;
  }

  .account-editor-card summary small{
    font-size:.68rem !important;
  }

  .account-editor-card summary b{
    font-size:1.2rem !important;
  }

  .account-editor-card form{
    padding:0 12px 13px !important;
  }

  .hub-form{
    gap:10px !important;
  }

  .hub-form label{
    gap:6px !important;
    font-size:.82rem !important;
  }

  .hub-form :is(input,select,textarea){
    min-height:50px !important;
    font-size:16px !important;
    border-radius:12px !important;
  }

  .hub-form textarea{
    min-height:110px !important;
    padding:10px !important;
  }

  .hub-primary,
  .hub-soft{
    min-height:48px !important;
    padding-inline:14px !important;
    border-radius:12px !important;
    font-size:.86rem !important;
  }

  .account-row{
    min-height:64px;
    padding:10px 11px !important;
    gap:10px !important;
  }

  .account-row-main strong{
    font-size:.86rem !important;
    line-height:1.4;
  }

  .account-row-main small{
    font-size:.68rem !important;
    line-height:1.5;
  }

  .account-row-rich{
    padding:10px 11px !important;
  }

  .account-row-icon,
  .icon-tile{
    min-width:40px;
    min-height:40px;
  }

  .hub-status{
    min-height:32px;
    padding:5px 8px !important;
    align-items:center;
    font-size:.68rem !important;
  }

  .notification-preferences-card label{
    min-height:65px;
    padding:11px 12px !important;
  }

  .notification-preferences-card b{
    font-size:.82rem !important;
  }

  .notification-preferences-card small{
    font-size:.68rem !important;
    line-height:1.45;
  }

  .notification-preferences-card input{
    width:24px !important;
    height:24px !important;
  }

  .account-logout-button{
    min-height:52px !important;
    font-size:.86rem !important;
  }

  .account-logout-section small{
    font-size:.66rem !important;
  }

  .account-logout-dialog{
    width:min(100%,460px);
    padding:19px !important;
    border-radius:20px !important;
  }

  .account-logout-dialog h2{
    font-size:1.2rem !important;
  }

  .account-logout-dialog p{
    font-size:.82rem !important;
    line-height:1.65;
  }

  .account-logout-dialog>div{
    gap:8px;
  }

  /* Generic dashboard */
  .customer-welcome{
    padding:18px !important;
    border-radius:20px !important;
    gap:14px !important;
  }

  .customer-welcome h1{
    font-size:1.65rem !important;
    line-height:1.25;
  }

  .customer-welcome p{
    font-size:.84rem !important;
    line-height:1.7;
  }

  .customer-kpis{
    grid-template-columns:1fr 1fr !important;
    gap:9px !important;
  }

  .customer-kpis>div{
    min-height:84px;
    padding:13px !important;
    border-radius:16px !important;
  }

  .customer-kpis>div:last-child{
    grid-column:1/-1;
  }

  .customer-kpis span{
    font-size:.74rem !important;
  }

  .customer-kpis strong{
    margin-top:5px;
    font-size:1.35rem !important;
  }

  .customer-grid{
    grid-template-columns:1fr !important;
    gap:11px !important;
  }

  .customer-booking{
    min-height:68px;
    grid-template-columns:72px 1fr auto !important;
    padding:11px 5px !important;
    gap:10px !important;
  }

  .customer-booking b{
    font-size:.82rem !important;
  }

  .customer-booking small{
    font-size:.68rem !important;
  }

  .notification-row{
    min-height:76px;
    padding:13px 7px !important;
    gap:10px !important;
  }

  .notification-icon{
    width:42px !important;
    height:42px !important;
    flex-basis:42px !important;
    border-radius:13px !important;
    font-size:1rem !important;
  }

  .notification-row b{
    font-size:.9rem !important;
  }

  .notification-row p{
    margin:5px 0 !important;
    font-size:.76rem !important;
    line-height:1.6 !important;
  }

  .notification-row small{
    font-size:.64rem !important;
  }

  /* Booking history */
  .customer-booking-list-modern{
    display:grid;
    gap:10px;
  }

  .customer-booking-card{
    min-height:154px;
    padding:13px !important;
    border:1px solid var(--mf-line) !important;
    background:#fff;
    box-shadow:var(--mf-shadow);
  }

  .customer-booking-card-top strong{
    font-size:.92rem !important;
  }

  .detail-status{
    min-height:32px;
    padding:5px 8px !important;
    font-size:.7rem !important;
    display:inline-flex;
    align-items:center;
  }

  .customer-booking-card-date{
    font-size:.78rem !important;
  }

  .customer-booking-card-date b{
    font-size:.9rem !important;
  }

  .customer-booking-card-resources{
    gap:6px !important;
    margin-top:9px;
  }

  .customer-booking-card-resources span{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    padding:0 8px !important;
    border-radius:9px;
    font-size:.72rem !important;
  }

  .customer-booking-card-bottom{
    margin-top:10px !important;
    gap:8px !important;
  }

  .customer-booking-card-bottom strong{
    font-size:1rem !important;
  }

  .customer-booking-card-bottom span{
    font-size:.68rem !important;
  }

  .customer-booking-card-bottom b{
    font-size:.72rem !important;
  }

  /* Booking details */
  .booking-detail-page{
    width:100%;
    max-width:760px;
    margin-inline:auto;
  }

  .detail-hero{
    grid-template-columns:1fr 1fr !important;
    gap:9px !important;
    padding:14px !important;
    margin-bottom:10px !important;
  }

  .detail-hero div{
    min-height:96px;
    padding:11px !important;
    border-radius:14px !important;
  }

  .detail-hero small{
    font-size:.72rem !important;
  }

  .detail-hero strong{
    margin-top:6px !important;
    font-size:1.15rem !important;
  }

  .detail-hero span{
    margin-top:3px !important;
    font-size:.76rem !important;
  }

  .detail-resource-row{
    min-height:72px;
    gap:10px !important;
    padding:10px 4px !important;
  }

  .detail-resource-icon{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
    border-radius:13px !important;
  }

  .detail-resource-row strong{
    font-size:.9rem !important;
  }

  .detail-resource-row small{
    font-size:.7rem !important;
    line-height:1.5;
  }

  .detail-resource-row>b{
    font-size:.86rem !important;
  }

  .detail-money-grid{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .detail-money-grid>div{
    min-height:76px;
    padding:11px !important;
    border-radius:12px !important;
  }

  .detail-money-grid small{
    font-size:.68rem !important;
  }

  .detail-money-grid strong{
    margin-top:5px !important;
    font-size:.95rem !important;
  }

  .payment-instruction-row{
    min-height:76px;
    padding:11px 0 !important;
    gap:10px !important;
  }

  .payment-instruction-row>span{
    width:42px !important;
    height:42px !important;
    flex-basis:42px !important;
    border-radius:12px !important;
  }

  .payment-instruction-row strong{
    font-size:.9rem !important;
  }

  .payment-instruction-row p{
    font-size:.72rem !important;
    line-height:1.6;
  }

  .receipt-drop{
    min-height:104px !important;
    padding:12px !important;
    border-radius:14px !important;
  }

  .receipt-drop span{
    font-size:.9rem !important;
  }

  .receipt-drop small{
    font-size:.7rem !important;
  }

  .detail-action-button{
    width:100%;
    min-height:50px !important;
    border-radius:12px !important;
    font-size:.86rem !important;
  }

  .receipt-item{
    min-height:60px;
    padding:9px !important;
  }

  .receipt-item strong{
    font-size:.78rem !important;
  }

  .receipt-item small{
    font-size:.66rem !important;
  }

  .booking-chat{
    max-height:430px !important;
    padding:2px !important;
  }

  .chat-bubble{
    max-width:88% !important;
    padding:10px 11px !important;
    border-radius:14px !important;
  }

  .chat-bubble p{
    font-size:.82rem !important;
    line-height:1.65;
  }

  .chat-bubble small{
    font-size:.64rem !important;
  }

  .chat-compose{
    gap:7px !important;
    margin-top:9px !important;
  }

  .chat-compose input{
    min-height:50px !important;
    font-size:16px !important;
  }

  .chat-compose button{
    min-width:76px !important;
    min-height:50px !important;
    border-radius:12px !important;
    font-size:.8rem !important;
  }

  .chat-attach{
    width:48px !important;
    min-width:48px !important;
    min-height:50px !important;
  }

  .detail-cancel-button{
    min-height:50px !important;
    border-radius:13px !important;
    font-size:.86rem !important;
  }
}

/* =========================
   Public listing/detail pages inside customer shell
   ========================= */
@media (max-width:768px){
  .customer-app-page :is(.public-header,.home-bottom-discover-section){
    margin-bottom:8px;
  }

  .customer-app-page .public-header{
    padding:4px 0 5px;
  }

  .customer-app-page .public-header h1{
    margin:2px 0 5px;
    font-size:1.55rem !important;
    line-height:1.25;
  }

  .customer-app-page .public-header p{
    font-size:.82rem !important;
    line-height:1.7 !important;
  }

  .customer-app-page :is(.panel,.hub-detail){
    padding:14px !important;
    background:var(--mf-surface);
    box-shadow:var(--mf-shadow);
  }

  .customer-app-page .empty-state,
  .customer-app-page .booking-empty-state{
    min-height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    font-size:.86rem;
    line-height:1.7;
    text-align:center;
  }

  .customer-app-page .eyebrow{
    font-size:.76rem !important;
  }

  .hub-grid{
    grid-template-columns:1fr 1fr !important;
    gap:9px !important;
  }

  .hub-card{
    border-radius:16px !important;
  }

  .hub-card-media{
    height:132px !important;
  }

  .hub-card-body{
    padding:11px !important;
  }

  .hub-card-body h2{
    font-size:.92rem !important;
    line-height:1.4;
  }

  .hub-card-body p{
    font-size:.74rem !important;
    line-height:1.6;
  }

  .hub-price{
    font-size:1.08rem !important;
  }

  .hub-pill{
    min-height:30px;
    align-items:center;
    font-size:.65rem !important;
  }

  .hub-actions{
    gap:7px;
  }
}

@media (max-width:390px){
  .customer-app-page .page-shell{
    padding-inline:11px;
  }

  .hub-grid{
    grid-template-columns:1fr !important;
  }

  .hub-card-media{
    height:150px !important;
  }
}

/* =========================
   Progressive enhancement for tablets / desktop
   ========================= */
@media (min-width:769px){
  .customer-app-page .page-shell{
    width:min(100%,1180px);
    margin-inline:auto;
  }

  .customer-app-page .customer-bottom-nav{
    max-width:620px;
    right:50%;
    left:auto;
    transform:translateX(50%);
    border:1px solid var(--mf-line);
    border-bottom:0;
    border-radius:22px 22px 0 0;
  }

  .customer-app-page .customer-book-fab{
    width:58px;
    height:58px;
  }
}


/* =========================================================
   Final mobile polish — booking form + all booking tables
   Goal: readable at 360px without sideways scrolling.
   ========================================================= */
@media (max-width: 620px){
  .customer-app-page .booking-mobile-page{
    width:100%;
    max-width:100%;
    padding:4px 0 calc(18px + env(safe-area-inset-bottom));
  }

  .customer-app-page .booking-mobile-head{
    grid-template-columns:42px minmax(0,1fr) auto !important;
    gap:8px !important;
    margin-bottom:10px !important;
    min-height:54px;
  }

  .customer-app-page .booking-mobile-head > div{
    min-width:0;
  }

  .customer-app-page .booking-mobile-head > div > span{
    font-size:.74rem !important;
  }

  .customer-app-page .booking-mobile-head h1{
    font-size:1.38rem !important;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .customer-app-page .booking-back{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
  }

  .customer-app-page .booking-head-link{
    min-height:42px !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding-inline:9px !important;
    font-size:.78rem !important;
    white-space:nowrap;
  }

  .customer-app-page .booking-card,
  .customer-app-page .booking-guest-card,
  .customer-app-page .booking-cart-card,
  .customer-app-page .booking-total-card,
  .customer-app-page .booking-help-card,
  .customer-app-page .booking-policy-card{
    margin-bottom:10px !important;
    padding:12px !important;
    border-radius:17px !important;
  }

  .customer-app-page .booking-step{
    margin-bottom:9px !important;
  }

  .customer-app-page .booking-step > span{
    width:32px !important;
    height:32px !important;
    flex-basis:32px !important;
    border-radius:10px !important;
    font-size:.9rem !important;
  }

  .customer-app-page .booking-step small{
    font-size:.74rem !important;
  }

  .customer-app-page .booking-step strong{
    font-size:.98rem !important;
  }

  /* Sport choices: one clean horizontal rail. */
  .customer-app-page .booking-sport-scroller{
    width:100%;
    gap:7px !important;
    overflow-x:auto;
    padding:1px 1px 5px !important;
    scroll-snap-type:x proximity;
  }

  .customer-app-page .booking-sport-chip{
    min-height:44px !important;
    height:44px;
    flex:0 0 auto;
    padding-inline:13px !important;
    border-radius:12px !important;
    font-size:.84rem !important;
    scroll-snap-align:start;
  }

  .customer-app-page .booking-selection-hint{
    margin-top:7px !important;
    padding:8px 9px !important;
    border-radius:11px !important;
    font-size:.74rem !important;
    line-height:1.65 !important;
  }

  /* Booking date/time: date on its own row, shortcuts below,
     time + duration side-by-side. */
  .customer-app-page .booking-date-time-card .booking-schedule-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:9px !important;
    align-items:start;
  }

  .customer-app-page .booking-date-time-card .booking-date-field{
    grid-column:1/-1 !important;
  }

  .customer-app-page .booking-control-label{
    display:block;
    margin-bottom:5px !important;
    font-size:.78rem !important;
    font-weight:900;
  }

  .customer-app-page .booking-control-box{
    width:100%;
    min-height:52px !important;
    height:52px !important;
    padding-inline:9px !important;
    border-radius:13px !important;
  }

  .customer-app-page .booking-control-icon,
  .customer-app-page .booking-control-icon svg{
    width:21px !important;
    height:21px !important;
    flex:0 0 21px;
  }

  .customer-app-page .booking-control-box input,
  .customer-app-page .booking-control-box select{
    width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    height:48px !important;
    font-size:16px !important;
    line-height:1.2;
  }

  .customer-app-page .booking-duration-box{
    padding-inline:8px !important;
  }

  .customer-app-page .booking-duration-box select{
    padding-inline:4px !important;
  }

  .customer-app-page .booking-date-quick-row{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:7px !important;
    margin-top:7px !important;
  }

  .customer-app-page .booking-date-quick{
    width:100%;
    min-height:46px !important;
    height:46px;
    padding:6px 9px !important;
    border-radius:11px !important;
  }

  .customer-app-page .booking-date-quick span{
    font-size:.72rem !important;
  }

  .customer-app-page .booking-date-quick b{
    font-size:.76rem !important;
    margin-top:3px !important;
  }

  .customer-app-page .booking-control-help{
    display:block;
    margin-top:5px;
    font-size:.65rem !important;
    line-height:1.35;
  }

  .customer-app-page .booking-slot-status{
    min-height:46px !important;
    margin-top:9px !important;
    padding:9px 10px !important;
    border-radius:11px !important;
    font-size:.74rem !important;
    line-height:1.55 !important;
  }

  /* Resource cards: one per row on the phone. */
  .customer-app-page .booking-resource-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
  }

  .customer-app-page .booking-resource-option{
    width:100%;
    min-width:0 !important;
    min-height:112px !important;
    display:grid !important;
    grid-template-columns:76px minmax(0,1fr) auto !important;
    grid-template-areas:
      "art main side"
      "art tap  tap" !important;
    gap:8px !important;
    align-items:start !important;
    padding:8px !important;
    border-radius:15px !important;
    overflow:hidden;
  }

  .customer-app-page .booking-resource-art{
    grid-area:art !important;
    width:76px !important;
    height:92px !important;
    min-height:92px !important;
    border-radius:11px !important;
  }

  .customer-app-page .booking-resource-art b{
    font-size:1.85rem !important;
  }

  .customer-app-page .booking-resource-main{
    grid-area:main !important;
    min-width:0;
    padding-top:1px;
  }

  .customer-app-page .booking-resource-title{
    min-width:0;
  }

  .customer-app-page .booking-resource-title strong{
    display:block;
    min-width:0;
    max-width:100%;
    font-size:.96rem !important;
    line-height:1.35 !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .customer-app-page .booking-resource-main small{
    display:block;
    margin-top:4px !important;
    font-size:.72rem !important;
    line-height:1.45 !important;
    white-space:normal !important;
  }

  .customer-app-page .booking-resource-main em{
    display:inline-flex !important;
    align-items:center;
    min-height:28px;
    margin-top:6px !important;
    padding-inline:7px;
    font-size:.68rem !important;
    border-radius:8px;
  }

  .customer-app-page .booking-resource-side{
    grid-area:side !important;
    min-width:70px;
    text-align:left !important;
    padding-top:1px;
  }

  .customer-app-page .booking-resource-side b{
    font-size:.9rem !important;
    white-space:nowrap;
  }

  .customer-app-page .booking-resource-side small{
    font-size:.62rem !important;
    white-space:nowrap;
  }

  .customer-app-page .booking-resource-tap{
    grid-area:tap !important;
    position:static !important;
    width:100% !important;
    min-height:38px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 9px !important;
    border-radius:10px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:.76rem !important;
  }

  /* Guest details: full-width inputs, one field at a time. */
  .customer-app-page .booking-guest-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
    margin-top:10px !important;
  }

  .customer-app-page .booking-guest-grid label,
  .customer-app-page .booking-date-picker{
    font-size:.78rem !important;
  }

  .customer-app-page .booking-guest-grid input{
    width:100%;
    min-height:50px !important;
    height:50px !important;
    font-size:16px !important;
    border-radius:12px !important;
  }

  /* Cart: no horizontal scrolling; each line is a readable card. */
  .customer-app-page .booking-cart-table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
    border:0 !important;
    border-radius:0 !important;
  }

  .customer-app-page .booking-cart-table{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    display:grid !important;
    border-collapse:separate !important;
    gap:9px !important;
  }

  .customer-app-page .booking-cart-table thead{
    display:none !important;
  }

  .customer-app-page .booking-cart-table tbody{
    display:grid !important;
    width:100% !important;
    min-width:0 !important;
    gap:9px !important;
  }

  .customer-app-page .booking-cart-table tbody tr{
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px !important;
    padding:11px !important;
    margin:0 !important;
    border:1px solid var(--mf-line) !important;
    border-radius:15px !important;
    background:#fff !important;
    box-shadow:0 5px 16px rgba(17,57,48,.04);
  }

  .customer-app-page .booking-cart-table tbody td{
    display:grid !important;
    width:auto !important;
    min-width:0 !important;
    height:auto !important;
    min-height:46px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    white-space:normal !important;
    overflow:visible !important;
    align-content:start !important;
    justify-content:stretch !important;
    background:transparent !important;
  }

  .customer-app-page .booking-cart-table tbody td::before{
    content:attr(data-label) !important;
    display:block !important;
    margin-bottom:4px;
    color:#82918b !important;
    font-size:.66rem !important;
    font-weight:850 !important;
    line-height:1.2;
  }

  .customer-app-page .booking-cart-table tbody .cart-resource-cell{
    grid-column:1/-1 !important;
    min-height:57px !important;
    padding-bottom:2px !important;
    border-bottom:1px solid #edf2f0 !important;
  }

  .customer-app-page .booking-cart-table tbody .cart-resource-cell::before{
    content:"الملعب" !important;
  }

  .customer-app-page .booking-cart-table tbody .cart-resource-cell strong{
    max-width:100% !important;
    font-size:.94rem !important;
    line-height:1.35 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis;
  }

  .customer-app-page .booking-cart-table tbody .cart-resource-cell small{
    font-size:.7rem !important;
    line-height:1.4 !important;
  }

  .customer-app-page .booking-cart-table tbody td[data-label="التاريخ"],
  .customer-app-page .booking-cart-table tbody td[data-label="من"],
  .customer-app-page .booking-cart-table tbody td[data-label="المدة"],
  .customer-app-page .booking-cart-table tbody td[data-label="إلى"],
  .customer-app-page .booking-cart-table tbody td[data-label="السعر"]{
    grid-column:auto !important;
  }

  .customer-app-page .booking-cart-table tbody td :is(input,select){
    width:100% !important;
    min-width:0 !important;
    min-height:44px !important;
    height:44px !important;
    padding-inline:7px !important;
    border:1px solid #dfe9e5 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#2d4038 !important;
    font-size:15px !important;
  }

  .customer-app-page .booking-cart-table tbody .cart-end-time,
  .customer-app-page .booking-cart-table tbody .cart-price{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    padding:0 9px !important;
    border-radius:10px !important;
    font-size:.82rem !important;
    font-weight:900 !important;
  }

  .customer-app-page .booking-cart-table tbody .cart-end-time{
    background:#f5faf8 !important;
    color:#334940 !important;
  }

  .customer-app-page .booking-cart-table tbody .cart-price{
    background:#eaf9f3 !important;
    color:#078560 !important;
  }

  .customer-app-page .booking-cart-table tbody td:last-child{
    grid-column:1/-1 !important;
    min-height:42px !important;
    justify-content:stretch !important;
    align-content:stretch !important;
  }

  .customer-app-page .booking-cart-table tbody td:last-child::before{
    display:none !important;
    content:none !important;
  }

  .customer-app-page .booking-cart-table .cart-remove{
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    height:42px !important;
    border-radius:10px !important;
    font-size:.8rem !important;
  }

  .customer-app-page .booking-cart-total{
    min-height:62px !important;
    margin-top:9px !important;
    padding:10px 11px !important;
    border-radius:13px !important;
  }

  .customer-app-page .booking-cart-total span{
    font-size:.78rem !important;
  }

  .customer-app-page .booking-cart-total strong{
    font-size:1.22rem !important;
  }

  /* Sticky submit area remains visible above the bottom navigation. */
  .customer-app-page .booking-total-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:13px !important;
    border-radius:17px !important;
  }

  .customer-app-page .booking-total-card > div > small{
    font-size:.74rem !important;
  }

  .customer-app-page .booking-total-card > div > strong{
    display:block;
    margin-top:4px !important;
    font-size:1.52rem !important;
    line-height:1.15;
  }

  .customer-app-page .booking-total-card > div > span{
    display:block;
    max-width:none !important;
    margin-top:5px !important;
    font-size:.72rem !important;
    line-height:1.55 !important;
  }

  .customer-app-page .booking-primary-button{
    width:100% !important;
    min-height:54px !important;
    height:54px !important;
    border-radius:13px !important;
    font-size:.98rem !important;
  }

  .customer-app-page .booking-method-pills{
    gap:6px !important;
  }

  .customer-app-page .booking-method-pills span{
    min-height:36px !important;
    padding-inline:10px !important;
    font-size:.72rem !important;
  }

  .customer-app-page .booking-policy-card p,
  .customer-app-page .booking-payment-line,
  .customer-app-page .booking-steps-footer,
  .customer-app-page .booking-help-card small{
    font-size:.75rem !important;
    line-height:1.75 !important;
  }

  .customer-app-page .booking-alert{
    font-size:.78rem !important;
    line-height:1.6 !important;
  }

  .customer-app-page .booking-confirm{
    position:sticky !important;
    bottom:calc(76px + env(safe-area-inset-bottom)) !important;
    z-index:70 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:11px !important;
    border-radius:15px !important;
  }

  .customer-app-page .booking-confirm button{
    width:100%;
    min-height:48px !important;
    font-size:.88rem !important;
  }
}

@media (max-width:390px){
  .customer-app-page .booking-mobile-page{
    padding-inline:0;
  }

  .customer-app-page .booking-card,
  .customer-app-page .booking-guest-card,
  .customer-app-page .booking-cart-card,
  .customer-app-page .booking-total-card,
  .customer-app-page .booking-help-card,
  .customer-app-page .booking-policy-card{
    padding:11px !important;
  }

  .customer-app-page .booking-mobile-head h1{
    font-size:1.28rem !important;
  }

  .customer-app-page .booking-resource-option{
    grid-template-columns:70px minmax(0,1fr) auto !important;
  }

  .customer-app-page .booking-resource-art{
    width:70px !important;
    height:88px !important;
    min-height:88px !important;
  }

  .customer-app-page .booking-resource-side{
    min-width:64px;
  }

  .customer-app-page .booking-resource-title strong{
    font-size:.9rem !important;
  }

  .customer-app-page .booking-resource-side b{
    font-size:.84rem !important;
  }

  .customer-app-page .booking-cart-table tbody tr{
    padding:10px !important;
    gap:7px !important;
  }

  .customer-app-page .booking-cart-table tbody td[data-label]::before{
    font-size:.62rem !important;
  }

  .customer-app-page .booking-cart-table tbody td :is(input,select){
    min-height:43px !important;
    height:43px !important;
    font-size:14px !important;
  }
}


/* =========================================================
   v8 — Flutter-like mobile polish: compact booking + cohesive cards
   ========================================================= */

/* Home: compact quick booking, balanced controls */
@media (max-width:620px){
  .home-fast-booking{
    margin-top:16px!important;
    padding:12px!important;
    border-radius:18px!important;
    box-shadow:0 8px 24px rgba(17,57,48,.055)!important;
  }
  .home-fast-booking-head{
    min-height:34px;
    margin-bottom:8px!important;
  }
  .home-fast-booking-head h2{
    margin:0!important;
    font-size:1.02rem!important;
    line-height:1.25!important;
  }
  .home-fast-booking-head span:first-child{
    font-size:.72rem!important;
  }
  .home-fast-badge{
    min-height:30px!important;
    padding:5px 8px!important;
    border-radius:999px!important;
    font-size:.68rem!important;
  }
  .home-fast-form{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .home-fast-form label{
    min-width:0!important;
    min-height:58px!important;
    padding:7px 8px!important;
    border-radius:12px!important;
    gap:2px!important;
  }
  .home-fast-form label>span{
    width:25px;
    height:25px;
    border-radius:8px;
    display:grid;
    place-items:center;
    background:#eaf8f3;
    color:#079b78;
  }
  .home-fast-form label>span svg{
    width:14px!important;
    height:14px!important;
  }
  .home-fast-form label small{
    font-size:.62rem!important;
    line-height:1.1!important;
    margin-top:1px!important;
  }
  .home-fast-form label select,
  .home-fast-form label input{
    width:100%!important;
    min-height:30px!important;
    height:30px!important;
    font-size:.76rem!important;
    line-height:1.1!important;
    padding:0 4px!important;
  }
  .home-fast-submit{
    grid-column:1/-1!important;
    min-height:44px!important;
    height:44px!important;
    border-radius:12px!important;
    font-size:.82rem!important;
    font-weight:900!important;
    gap:6px;
  }

  /* Resource cards: two equal columns, like a native mobile grid. */
  .home-resource-scroller{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    overflow:visible!important;
    padding-bottom:2px!important;
  }
  .home-resource-card{
    width:100%!important;
    min-width:0!important;
    flex:none!important;
    border-radius:17px!important;
    box-shadow:0 7px 22px rgba(17,57,48,.055)!important;
  }
  .home-resource-photo{
    height:112px!important;
  }
  .home-resource-body{
    padding:10px!important;
  }
  .home-resource-title{
    gap:5px!important;
  }
  .home-resource-title h3{
    min-width:0;
    font-size:.84rem!important;
    line-height:1.35!important;
  }
  .home-star-chip{
    width:30px!important;
    height:28px!important;
    border-radius:9px!important;
    flex:0 0 30px;
    font-size:.7rem!important;
    display:grid!important;
    place-items:center!important;
  }
  .home-resource-body p{
    margin:5px 0 7px!important;
    font-size:.68rem!important;
    line-height:1.45!important;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  .home-resource-meta{
    font-size:.66rem!important;
    gap:5px!important;
  }
  .home-card-cta{
    min-height:40px!important;
    margin-top:8px!important;
    border-radius:10px!important;
    font-size:.72rem!important;
  }
  .home-available-chip,
  .home-resource-tag{
    min-height:27px!important;
    font-size:.61rem!important;
    padding-inline:7px!important;
    border-radius:8px!important;
  }

  /* Sports: consistent icon/tile geometry. */
  .home-sport-tile{
    flex-basis:100px!important;
    height:112px!important;
    border-radius:16px!important;
    box-shadow:0 6px 18px rgba(17,57,48,.045)!important;
  }
  .home-sport-icon{
    font-size:2rem!important;
  }
  .home-sport-tile>span:last-child{
    font-size:.72rem!important;
  }

  /* Native-app feel for action icons and lower cards. */
  .home-icon-button{
    box-shadow:0 4px 13px rgba(17,57,48,.045)!important;
    border:1px solid #e2ece8!important;
    background:#fff!important;
  }
  .home-icon-button svg{
    stroke-width:1.9!important;
  }
  .mini-panel-icon{
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
    font-size:1rem!important;
  }
  .home-mini-panels>a{
    min-height:64px!important;
    padding:9px!important;
    border-radius:15px!important;
    box-shadow:0 5px 16px rgba(17,57,48,.035)!important;
  }
}

/* Booking: compact table with at most two visible rows on phone. */
@media (max-width:620px){
  .booking-mobile-page{
    font-size:16px!important;
  }
  .booking-card,
  .booking-guest-card,
  .booking-cart-card,
  .booking-total-card,
  .booking-help-card{
    border-radius:17px!important;
  }
  .booking-card,
  .booking-guest-card,
  .booking-help-card{
    padding:12px!important;
  }
  .booking-step{
    margin-bottom:9px!important;
  }
  .booking-step>span{
    width:30px!important;
    height:30px!important;
    flex-basis:30px!important;
  }
  .booking-step strong{
    font-size:.94rem!important;
  }
  .booking-step small{
    font-size:.68rem!important;
  }
  .booking-sport-chip{
    min-height:42px!important;
    font-size:.72rem!important;
    padding-inline:12px!important;
  }
  .booking-date-time-card .booking-schedule-grid{
    grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)!important;
    gap:8px!important;
  }
  .booking-control-box{
    height:48px!important;
    min-height:48px!important;
    border-radius:12px!important;
  }
  .booking-control-box input[type="time"]{
    font-size:16px!important;
    font-weight:750!important;
    cursor:pointer;
  }
  .booking-control-box input[type="time"]::-webkit-calendar-picker-indicator{
    opacity:.82;
    width:20px;
    height:20px;
    margin-inline-start:3px;
  }
  .booking-date-quick{
    min-height:44px!important;
  }

  /* Keep the editable table, but cap its visible area to header + ~2 rows. */
  .booking-cart-card{
    padding:10px!important;
  }
  .booking-cart-table-wrap{
    max-height:132px!important;
    overflow:auto!important;
    border-radius:11px!important;
    scrollbar-width:thin;
  }
  .booking-cart-table{
    width:576px!important;
    min-width:576px!important;
  }
  .booking-cart-table thead,
  .booking-cart-table tbody{
    width:576px!important;
    min-width:576px!important;
  }
  .booking-cart-table thead{
    grid-template-columns:160px 78px 72px 76px 72px 82px 36px!important;
  }
  .booking-cart-table tbody{
    max-height:calc(42px * 2)!important;
    overflow:visible!important;
  }
  .booking-cart-table tr{
    width:576px!important;
    min-width:576px!important;
    grid-template-columns:160px 78px 72px 76px 72px 82px 36px!important;
  }
  .booking-cart-table th,
  .booking-cart-table td{
    height:42px!important;
    min-height:42px!important;
    padding:4px 5px!important;
    font-size:.61rem!important;
  }
  .booking-cart-table th{
    height:30px!important;
    min-height:30px!important;
    font-size:.54rem!important;
  }
  .booking-cart-table .cart-resource-cell strong{
    max-width:150px!important;
    font-size:.62rem!important;
  }
  .booking-cart-table .cart-resource-cell small,
  .booking-cart-table .cart-invalid-reason{
    max-width:150px!important;
    font-size:.48rem!important;
  }
  .booking-cart-table input,
  .booking-cart-table select{
    height:28px!important;
    font-size:.54rem!important;
    border-radius:7px!important;
    padding-inline:4px!important;
  }
  .booking-cart-table .cart-end-time,
  .booking-cart-table .cart-price{
    font-size:.6rem!important;
  }
  .booking-cart-table .cart-remove{
    width:26px!important;
    height:26px!important;
    border-radius:8px!important;
  }
  .booking-cart-total{
    margin-top:6px!important;
    padding-top:6px!important;
  }
}

/* Confirmation should stay in normal flow — never float over the booking page. */
.booking-confirm,
.customer-app-page .booking-confirm{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  margin:8px 0 10px!important;
  z-index:auto!important;
}
.booking-confirm .btn{
  min-height:44px!important;
}

/* Consistent Flutter-like card language across the customer shell. */
@media (max-width:768px){
  .customer-app-page :is(.panel,.booking-card,.booking-total-card,.booking-help-card,
    .account-profile-hero,.account-editor-card,.notification-preferences-card,
    .detail-hero,.detail-resource-list,.detail-money-grid,.receipt-history,
    .booking-chat-card,.customer-booking-card,.hub-detail){
    border:1px solid #e1ebe7!important;
    box-shadow:0 7px 22px rgba(17,57,48,.045)!important;
  }
  .customer-app-page :is(.btn,.hub-primary,.hub-soft,.booking-primary-button,
    .detail-action-button,.account-logout-button,.booking-head-link){
    border-radius:12px!important;
    font-weight:900!important;
  }
  .customer-bottom-nav{
    box-shadow:0 -8px 24px rgba(18,56,48,.07)!important;
  }
  .customer-app-page .customer-nav-icon{
    border-radius:10px;
  }
}
@media (max-width:390px){
  .home-fast-booking{
    padding:10px!important;
  }
  .home-fast-form{
    gap:6px!important;
  }
  .home-fast-form label{
    min-height:56px!important;
    padding:6px 7px!important;
  }
  .home-fast-form label select,
  .home-fast-form label input{
    font-size:.71rem!important;
  }
  .home-fast-submit{
    min-height:42px!important;
    height:42px!important;
    font-size:.78rem!important;
  }
  .home-resource-scroller{
    gap:7px!important;
  }
  .home-resource-photo{
    height:100px!important;
  }
  .home-resource-body{
    padding:8px!important;
  }
  .home-resource-title h3{
    font-size:.78rem!important;
  }
  .home-resource-body p{
    font-size:.63rem!important;
  }
  .home-resource-meta{
    font-size:.6rem!important;
  }
  .home-card-cta{
    min-height:38px!important;
    font-size:.68rem!important;
  }
  .booking-cart-table-wrap{
    max-height:126px!important;
  }
}


/* v9 — authentication card + final mobile consistency */
@media(max-width:620px){
  .auth-card{
    width:100%!important;
    max-width:430px!important;
    margin:5vh auto 0!important;
    padding:18px!important;
    border:1px solid #e1ebe7!important;
    border-radius:20px!important;
    box-shadow:0 12px 32px rgba(17,57,48,.065)!important;
  }
  .auth-card .eyebrow{
    font-size:.72rem!important;
    color:#079b78!important;
    opacity:1!important;
  }
  .auth-card h1{
    margin:7px 0 6px!important;
    font-size:1.45rem!important;
    line-height:1.25!important;
    letter-spacing:-.02em!important;
  }
  .auth-card>p{
    margin:0!important;
    color:#778983!important;
    font-size:.82rem!important;
    line-height:1.75!important;
  }
  .auth-card .form-stack{
    gap:11px!important;
    margin-top:16px!important;
  }
  .auth-card .form-stack label{
    gap:6px!important;
    font-size:.74rem!important;
    color:#52655d!important;
    font-weight:900!important;
  }
  .auth-card .form-stack input{
    width:100%!important;
    min-height:50px!important;
    height:50px!important;
    padding:0 13px!important;
    border:1px solid #dce8e3!important;
    border-radius:13px!important;
    background:#fbfdfc!important;
    font-size:16px!important;
    color:#21352d!important;
    outline:none!important;
    box-shadow:none!important;
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
  }
  .auth-card .form-stack input:focus{
    border-color:#08aa83!important;
    background:#fff!important;
    box-shadow:0 0 0 3px rgba(8,170,131,.10)!important;
  }
  .auth-card .form-stack button{
    width:100%!important;
    min-height:50px!important;
    height:50px!important;
    margin-top:2px;
    border-radius:13px!important;
    font-size:.9rem!important;
    font-weight:950!important;
  }
  .auth-switch{
    margin-top:14px!important;
    padding-top:13px!important;
    border-top:1px solid #edf2f0!important;
    display:flex!important;
    justify-content:center!important;
    flex-wrap:wrap;
    gap:5px!important;
    font-size:.72rem!important;
  }
  .auth-switch a{
    color:#009c78!important;
    font-weight:950!important;
  }

  /* Unified icon buttons: same surface, radius and optical size. */
  .home-header-actions .home-icon-button,
  .home-filter-button,
  .home-search-icon{
    display:grid!important;
    place-items:center!important;
    border:1px solid #dfeae6!important;
    background:#fff!important;
    color:#5f746b!important;
  }
  .home-header-actions .home-icon-button svg,
  .home-filter-button svg,
  .home-search-icon svg{
    width:20px!important;
    height:20px!important;
  }
}
@media(max-width:390px){
  .auth-card{
    margin-top:3vh!important;
    padding:15px!important;
    border-radius:18px!important;
  }
  .auth-card h1{font-size:1.32rem!important}
  .auth-card .form-stack input{min-height:48px!important;height:48px!important}
  .auth-card .form-stack button{min-height:48px!important;height:48px!important}
}


/* =========================================================
   v10 — home banner / resource rows / booking cards & table
   ========================================================= */

/* Taller, calmer promotional banner on the home screen. */
@media(max-width:620px){
  .home-featured-viewport{
    aspect-ratio:16 / 9!important;
    min-height:215px!important;
    max-height:255px!important;
    border-radius:19px!important;
  }
  .home-featured-copy{
    right:14px!important;
    left:14px!important;
    bottom:13px!important;
  }
  .home-featured-copy h1{
    font-size:1.12rem!important;
    line-height:1.3!important;
  }
  .home-featured-copy p{
    font-size:.7rem!important;
    line-height:1.65!important;
  }
}
@media(max-width:390px){
  .home-featured-viewport{
    min-height:208px!important;
    max-height:235px!important;
  }
  .home-featured-copy h1{font-size:1.03rem!important}
}

/* Resource section: two stacked rows with horizontal paging. */
.home-resources-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.home-resources-head .home-section-label{
  margin:13px 2px 0!important;
}
.home-view-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:34px;
  padding:0 9px;
  border-radius:10px;
  background:#eaf8f3;
  color:#078f70;
  font-size:.66rem;
  font-weight:950;
  white-space:nowrap;
}
.home-view-all svg{width:15px!important;height:15px!important}
@media(max-width:620px){
  .home-resources-section .home-resource-scroller{
    display:grid!important;
    grid-auto-flow:column!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    grid-auto-columns:minmax(190px,58vw)!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0 2px 8px!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
    direction:rtl!important;
  }
  .home-resources-section .home-resource-scroller::-webkit-scrollbar{display:none}
  .home-resources-section .home-resource-card{
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    scroll-snap-align:start;
  }
  .home-resources-section .home-resource-photo{
    height:100px!important;
  }
}
@media(max-width:390px){
  .home-resources-section .home-resource-scroller{
    grid-auto-columns:180px!important;
    gap:7px!important;
  }
  .home-resources-section .home-resource-photo{height:94px!important}
  .home-resources-section .home-resource-body{padding:8px!important}
}

/* Quick booking: one compact navigation row, not a form. */
.home-fast-booking-compact{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.home-fast-booking-link{
  min-height:66px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 32px;
  align-items:center;
  gap:9px;
  width:100%;
  padding:9px 11px;
  border:1px solid #dfeae6;
  border-radius:17px;
  background:linear-gradient(90deg,#eefaf6,#fff);
  box-shadow:0 7px 20px rgba(17,57,48,.045);
}
.home-fast-booking-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#09aa83;
  color:#fff;
  box-shadow:0 6px 14px rgba(9,170,131,.18);
}
.home-fast-booking-icon svg{width:21px!important;height:21px!important}
.home-fast-booking-copy{
  min-width:0;
  display:grid;
  gap:1px;
}
.home-fast-booking-copy small{
  color:#83918c;
  font-size:.58rem;
  line-height:1.1;
}
.home-fast-booking-copy strong{
  color:#20342d;
  font-size:.86rem;
  line-height:1.25;
}
.home-fast-booking-copy em{
  color:#8a9792;
  font-size:.57rem;
  line-height:1.35;
  font-style:normal;
}
.home-fast-booking-arrow{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#e4f7f1;
  color:#079a78;
}
@media(max-width:390px){
  .home-fast-booking-link{
    min-height:60px;
    grid-template-columns:40px minmax(0,1fr) 30px;
    gap:8px;
    padding:8px 9px;
    border-radius:15px;
  }
  .home-fast-booking-icon{width:38px;height:38px;border-radius:11px}
  .home-fast-booking-icon svg{width:19px!important;height:19px!important}
  .home-fast-booking-copy strong{font-size:.8rem}
  .home-fast-booking-copy em{font-size:.54rem}
  .home-fast-booking-arrow{width:30px;height:30px}
}

/* Booking resource cards: use the same visual language as homepage. */
@media(max-width:620px){
  .booking-resource-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .booking-resource-option{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:
      "art art"
      "main side"
      "main side"!important;
    min-height:214px!important;
    padding:0 0 39px!important;
    overflow:hidden!important;
    border:1px solid #e1ebe7!important;
    border-radius:17px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(17,57,48,.05)!important;
  }
  .booking-resource-art{
    grid-area:art!important;
    width:100%!important;
    height:102px!important;
    border-radius:0!important;
    background:linear-gradient(145deg,#0b604f,#11aa83)!important;
  }
  .booking-resource-art img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .booking-resource-art b{
    font-size:2rem!important;
    filter:drop-shadow(0 4px 8px rgba(0,0,0,.16));
  }
  .booking-resource-main{
    grid-area:main!important;
    min-width:0!important;
    padding:8px 9px 0!important;
  }
  .booking-resource-title strong{
    display:block!important;
    font-size:.76rem!important;
    line-height:1.35!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .booking-resource-main small{
    display:block!important;
    margin-top:3px!important;
    font-size:.56rem!important;
    line-height:1.4!important;
  }
  .booking-resource-main em{
    display:inline-flex!important;
    margin-top:5px!important;
    padding:3px 6px!important;
    border-radius:7px!important;
    font-size:.52rem!important;
    background:#eaf8f3;
    color:#079675;
  }
  .booking-resource-main em.busy,
  .booking-resource-main em.blocked{
    background:#fff2f2!important;
    color:#cf5a5a!important;
  }
  .booking-resource-side{
    grid-area:side!important;
    padding:9px 8px 0 7px!important;
    text-align:left!important;
    align-self:start!important;
  }
  .booking-resource-side b{
    font-size:.72rem!important;
    white-space:nowrap!important;
  }
  .booking-resource-side small{
    font-size:.46rem!important;
    white-space:nowrap!important;
  }
  .booking-resource-tap{
    inset-inline:8px!important;
    bottom:7px!important;
    min-height:30px!important;
    border-radius:9px!important;
    font-size:.58rem!important;
    background:#09aa83!important;
    color:#fff!important;
    border-color:#09aa83!important;
    box-shadow:0 5px 12px rgba(9,170,131,.14);
  }
  .booking-resource-option.is-selected .booking-resource-tap{
    background:#087e66!important;
    border-color:#087e66!important;
  }
}
@media(max-width:390px){
  .booking-resource-grid{gap:7px!important}
  .booking-resource-option{
    min-height:202px!important;
    padding-bottom:38px!important;
    border-radius:15px!important;
  }
  .booking-resource-art{height:92px!important}
  .booking-resource-main{padding:7px 8px 0!important}
  .booking-resource-title strong{font-size:.7rem!important}
  .booking-resource-main small{font-size:.52rem!important}
  .booking-resource-main em{font-size:.49rem!important}
  .booking-resource-side{padding:8px 7px 0 6px!important}
  .booking-resource-side b{font-size:.66rem!important}
  .booking-resource-tap{inset-inline:7px!important;bottom:6px!important;font-size:.54rem!important}
}

/* Booking cart: compact readable table, one row per booking item, scroll horizontally. */
@media(max-width:620px){
  .booking-cart-card{
    padding:10px!important;
    border-radius:16px!important;
  }
  .booking-cart-table-wrap{
    width:100%!important;
    max-height:121px!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
    direction:rtl!important;
    border:1px solid #e2ece8!important;
    border-radius:10px!important;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .booking-cart-table{
    display:block!important;
    width:650px!important;
    min-width:650px!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    direction:rtl!important;
  }
  .booking-cart-table thead,
  .booking-cart-table tbody{
    display:grid!important;
    width:650px!important;
    min-width:650px!important;
  }
  .booking-cart-table thead{
    grid-template-columns:178px 82px 80px 82px 76px 78px 34px!important;
    height:30px!important;
  }
  .booking-cart-table tbody{
    grid-auto-rows:44px!important;
    grid-template-columns:1fr!important;
    max-height:88px!important;
    overflow:visible!important;
  }
  .booking-cart-table tr{
    display:grid!important;
    width:650px!important;
    min-width:650px!important;
    grid-template-columns:178px 82px 80px 82px 76px 78px 34px!important;
    min-height:44px!important;
    height:44px!important;
    margin:0!important;
    padding:0!important;
  }
  .booking-cart-table th,
  .booking-cart-table td{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    width:auto!important;
    height:44px!important;
    min-height:44px!important;
    padding:4px 5px!important;
    border-bottom:1px solid #e8efed!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    font-size:.61rem!important;
    background:#fff!important;
  }
  .booking-cart-table th{
    height:30px!important;
    min-height:30px!important;
    background:#f7faf9!important;
    color:#84918c!important;
    font-size:.51rem!important;
    font-weight:900!important;
  }
  .booking-cart-table .cart-resource-cell{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:1px!important;
    white-space:nowrap!important;
  }
  .booking-cart-table .cart-resource-cell strong{
    max-width:168px!important;
    font-size:.62rem!important;
    line-height:1.25!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .booking-cart-table .cart-resource-cell small,
  .booking-cart-table .cart-invalid-reason{
    max-width:168px!important;
    font-size:.46rem!important;
    line-height:1.25!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .booking-cart-table input,
  .booking-cart-table select{
    width:100%!important;
    min-width:0!important;
    height:28px!important;
    min-height:28px!important;
    padding:0 4px!important;
    border:1px solid #dce8e3!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#31443c!important;
    font-size:.54rem!important;
    outline:none!important;
  }
  .booking-cart-table .cart-end-time,
  .booking-cart-table .cart-price{
    justify-content:flex-start!important;
    font-size:.59rem!important;
    font-weight:950!important;
  }
  .booking-cart-table .cart-price{color:#009b77!important}
  .booking-cart-table td:last-child{
    justify-content:center!important;
    padding-inline:2px!important;
  }
  .booking-cart-table .cart-remove{
    width:25px!important;
    height:25px!important;
    border-radius:7px!important;
    font-size:.9rem!important;
  }
  .booking-cart-total{
    min-height:34px!important;
    margin-top:5px!important;
    padding-top:5px!important;
  }
  .booking-cart-total span{font-size:.6rem!important}
  .booking-cart-total strong{font-size:.95rem!important}
}
@media(max-width:390px){
  .booking-cart-table-wrap{max-height:116px!important}
  .booking-cart-table,
  .booking-cart-table thead,
  .booking-cart-table tbody,
  .booking-cart-table tr{width:630px!important;min-width:630px!important}
  .booking-cart-table thead,
  .booking-cart-table tr{
    grid-template-columns:165px 78px 76px 78px 72px 76px 34px!important;
  }
  .booking-cart-table .cart-resource-cell strong,
  .booking-cart-table .cart-resource-cell small{max-width:155px!important}
}

/* Full resource listing: same card language as homepage. */
@media(max-width:620px){
  .resource-list-page{
    padding-top:6px!important;
  }
  .resource-list-page .customer-hub-head{
    padding:12px!important;
    margin-bottom:10px!important;
    border-radius:17px!important;
    background:#fff!important;
    border:1px solid #e1ebe7!important;
    box-shadow:0 7px 20px rgba(17,57,48,.045)!important;
  }
  .resource-list-page .customer-hub-head h1{
    font-size:1.35rem!important;
  }
  .resource-list-page .customer-hub-head p{
    font-size:.7rem!important;
    line-height:1.6!important;
  }
  .resource-list-page .hub-primary{
    min-height:42px!important;
    border-radius:11px!important;
    font-size:.76rem!important;
  }
  .resource-list-page .resource-home-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .resource-list-page .resource-home-card{
    min-width:0!important;
    overflow:hidden!important;
    border:1px solid #e1ebe7!important;
    border-radius:17px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(17,57,48,.05)!important;
  }
  .resource-list-page .resource-home-card .hub-card-media{
    height:104px!important;
    min-height:104px!important;
    border-radius:0!important;
  }
  .resource-list-page .resource-home-card .hub-card-media img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .resource-list-page .resource-home-card .hub-card-body{
    padding:9px!important;
  }
  .resource-list-page .resource-home-card .hub-pill{
    font-size:.55rem!important;
    padding:4px 6px!important;
    border-radius:7px!important;
  }
  .resource-list-page .resource-home-card h2{
    margin:6px 0 0!important;
    font-size:.78rem!important;
    line-height:1.3!important;
  }
  .resource-list-page .resource-home-card p{
    margin:4px 0!important;
    font-size:.61rem!important;
    line-height:1.4!important;
  }
  .resource-list-page .resource-home-card .hub-price{
    font-size:.72rem!important;
  }
}


/* =========================================================
   v11 — final phone density pass
   ========================================================= */

/* Home: reduce overall visual scale slightly without browser zoom. */
@media(max-width:620px){
  .home-public-page .page-shell{
    padding-inline:12px!important;
    padding-top:9px!important;
    padding-bottom:104px!important;
  }
  .customer-home-header{
    min-height:52px!important;
    margin-bottom:7px!important;
    gap:7px!important;
  }
  .home-avatar{
    width:40px!important;
    height:40px!important;
    flex-basis:40px!important;
    border-radius:12px!important;
  }
  .home-profile-copy{
    gap:2px!important;
  }
  .home-profile-copy span{font-size:.7rem!important}
  .home-profile-copy strong{font-size:.84rem!important}
  .home-header-actions{gap:4px!important}
  .home-icon-button{
    width:39px!important;
    min-width:39px!important;
    height:39px!important;
    min-height:39px!important;
    border-radius:11px!important;
  }
  .home-icon-button svg{width:19px!important;height:19px!important}
  .home-points-pill{
    min-height:39px!important;
    border-radius:11px!important;
    font-size:.7rem!important;
  }
  .home-search{
    height:46px!important;
    margin-bottom:9px!important;
    border-radius:14px!important;
  }
  .home-search-icon,.home-filter-button{
    width:36px!important;
    height:36px!important;
    flex-basis:36px!important;
    border-radius:10px!important;
  }
  .home-search input{font-size:14px!important}
  .home-featured-banner{margin-bottom:12px!important}
  .home-featured-viewport{
    min-height:192px!important;
    max-height:215px!important;
    border-radius:16px!important;
  }
  .home-featured-copy{
    padding:10px 11px!important;
    right:11px!important;
    left:11px!important;
    bottom:10px!important;
    gap:3px!important;
  }
  .home-featured-copy h1{font-size:.96rem!important}
  .home-featured-copy p{font-size:.62rem!important;line-height:1.5!important}
  .home-featured-badge{font-size:.62rem!important;padding:4px 7px!important}
  .home-featured-cta{min-height:35px!important;font-size:.66rem!important;padding-inline:9px!important}
  .home-section{margin-top:13px!important}
  .home-section-label,.home-section-head h2{
    font-size:1rem!important;
  }
  .home-section-head{margin-bottom:6px!important}
  .home-sports-scroller{
    gap:7px!important;
    padding-bottom:3px!important;
  }
  .home-sport-tile{
    flex-basis:92px!important;
    height:99px!important;
    border-radius:13px!important;
  }
  .home-sport-icon{font-size:1.75rem!important}
  .home-sport-tile>span:last-child{
    bottom:7px!important;
    font-size:.65rem!important;
  }
  .home-fast-booking-link{
    min-height:56px!important;
    padding:7px 8px!important;
    border-radius:13px!important;
    grid-template-columns:36px minmax(0,1fr) 28px!important;
    gap:7px!important;
  }
  .home-fast-booking-icon{
    width:36px!important;height:36px!important;border-radius:10px!important;
  }
  .home-fast-booking-icon svg{width:18px!important;height:18px!important}
  .home-fast-booking-copy small{font-size:.5rem!important}
  .home-fast-booking-copy strong{font-size:.74rem!important}
  .home-fast-booking-copy em{font-size:.5rem!important}
  .home-fast-booking-arrow{width:28px!important;height:28px!important}
  .home-resources-head{margin-bottom:5px!important}
  .home-resources-head .home-section-label{margin-top:8px!important}
  .home-view-all{min-height:30px!important;font-size:.6rem!important;padding-inline:7px!important}
  .home-resources-section .home-resource-scroller{
    grid-auto-columns:166px!important;
    gap:6px!important;
    padding-bottom:5px!important;
  }
  .home-resources-section .home-resource-photo{height:86px!important}
  .home-resources-section .home-resource-body{padding:7px!important}
  .home-resources-section .home-resource-title h3{font-size:.72rem!important}
  .home-resources-section .home-resource-body p{font-size:.58rem!important;line-height:1.35!important}
  .home-resources-section .home-resource-meta{font-size:.56rem!important}
  .home-resources-section .home-card-cta{
    min-height:34px!important;
    margin-top:6px!important;
    font-size:.61rem!important;
    border-radius:8px!important;
  }
}

/* Booking cart: compact, aligned, readable, one physical row per item. */
@media(max-width:620px){
  .booking-cart-card{
    padding:8px!important;
    border-radius:14px!important;
  }
  .booking-cart-card .booking-section-title{
    margin-bottom:6px!important;
  }
  .booking-cart-card .booking-section-title h2{
    font-size:.85rem!important;
  }
  .booking-cart-card .booking-section-title small{
    font-size:.5rem!important;
  }
  .booking-cart-card .booking-section-title>span{
    font-size:.54rem!important;
    padding:4px 6px!important;
  }
  .booking-cart-table-wrap{
    max-height:112px!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
    direction:rtl!important;
    overscroll-behavior:contain;
    background:#fbfdfc!important;
  }
  .booking-cart-table,
  .booking-cart-table thead,
  .booking-cart-table tbody,
  .booking-cart-table tr{
    width:548px!important;
    min-width:548px!important;
  }
  .booking-cart-table thead,
  .booking-cart-table tr{
    grid-template-columns:138px 69px 67px 70px 66px 108px 30px!important;
  }
  .booking-cart-table thead{
    height:27px!important;
    min-height:27px!important;
  }
  .booking-cart-table tbody{
    grid-auto-rows:38px!important;
  }
  .booking-cart-table tr{
    height:38px!important;
    min-height:38px!important;
  }
  .booking-cart-table th,
  .booking-cart-table td{
    height:38px!important;
    min-height:38px!important;
    padding:3px 4px!important;
    border-bottom:1px solid #e9efed!important;
  }
  .booking-cart-table th{
    height:27px!important;
    min-height:27px!important;
    font-size:.47rem!important;
    font-weight:950!important;
    background:#f3f8f6!important;
  }
  .booking-cart-table td{
    font-size:.52rem!important;
    background:#fff!important;
  }
  .booking-cart-table .cart-resource-cell{
    padding-inline:6px!important;
  }
  .booking-cart-table .cart-resource-cell strong{
    max-width:128px!important;
    font-size:.55rem!important;
    line-height:1.15!important;
  }
  .booking-cart-table .cart-resource-cell small,
  .booking-cart-table .cart-invalid-reason{
    max-width:128px!important;
    font-size:.41rem!important;
    line-height:1.1!important;
  }
  .booking-cart-table input,
  .booking-cart-table select{
    height:25px!important;
    min-height:25px!important;
    border-radius:6px!important;
    padding:0 3px!important;
    font-size:.49rem!important;
    line-height:1!important;
  }
  .booking-cart-table .cart-end-time,
  .booking-cart-table .cart-price{
    font-size:.53rem!important;
    font-weight:950!important;
  }
  .booking-cart-table .cart-price{
    color:#009b77!important;
    white-space:nowrap!important;
  }
  .booking-cart-table td:last-child{
    padding:2px!important;
  }
  .booking-cart-table .cart-remove{
    width:23px!important;
    height:23px!important;
    border-radius:6px!important;
    font-size:.78rem!important;
  }
  .booking-cart-total{
    min-height:29px!important;
    margin-top:4px!important;
    padding-top:4px!important;
  }
  .booking-cart-total span{font-size:.54rem!important}
  .booking-cart-total strong{font-size:.84rem!important}
}
@media(max-width:390px){
  .home-public-page .page-shell{padding-inline:10px!important}
  .home-featured-viewport{min-height:184px!important;max-height:205px!important}
  .home-sport-tile{flex-basis:87px!important;height:94px!important}
  .home-resources-section .home-resource-scroller{grid-auto-columns:158px!important}
  .booking-cart-table,
  .booking-cart-table thead,
  .booking-cart-table tbody,
  .booking-cart-table tr{width:522px!important;min-width:522px!important}
  .booking-cart-table thead,
  .booking-cart-table tr{
    grid-template-columns:130px 66px 63px 67px 63px 103px 30px!important;
  }
  .booking-cart-table .cart-resource-cell strong,
  .booking-cart-table .cart-resource-cell small{max-width:120px!important}
}


/* =========================================================
   v12 — hard mobile width containment for customer home
   ========================================================= */

/* Never allow the homepage itself to create horizontal overflow. */
html,
body{
  max-width:100%;
}
.home-public-page{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
.home-public-page .page-shell,
.home-public-page .customer-home-page{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow-x:clip;
}
.home-public-page .page-shell{
  margin-inline:auto!important;
}

/* Every home block must be allowed to shrink with the phone. */
.customer-home-page > *,
.customer-home-page section,
.customer-home-page header,
.customer-home-page form,
.customer-home-page .home-section,
.customer-home-page .home-section-head,
.customer-home-page .home-resources-head{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.customer-home-page img,
.customer-home-page video,
.customer-home-page svg{
  max-width:100%;
}

/* Horizontal scrolling belongs only to the designated scrollers. */
@media(max-width:768px){
  .customer-home-page .home-sports-scroller,
  .customer-home-page .home-resource-scroller,
  .customer-home-page .home-live-scroller,
  .customer-home-page .home-match-scroller,
  .customer-home-page .home-bottom-discover-scroller{
    min-width:0!important;
    max-width:100%!important;
  }

  .customer-home-page .home-sports-scroller,
  .customer-home-page .home-resource-scroller,
  .customer-home-page .home-live-scroller,
  .customer-home-page .home-match-scroller,
  .customer-home-page .home-bottom-discover-scroller{
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch;
  }

  /* Prevent flex/grid children from widening their parent. */
  .customer-home-page .home-profile,
  .customer-home-page .home-profile-copy,
  .customer-home-page .home-header-actions,
  .customer-home-page .home-fast-booking-link,
  .customer-home-page .home-fast-booking-copy,
  .customer-home-page .home-resource-card,
  .customer-home-page .home-resource-body,
  .customer-home-page .home-resource-title,
  .customer-home-page .home-match-card,
  .customer-home-page .home-news-card,
  .customer-home-page .home-info-row,
  .customer-home-page .home-promo-grid,
  .customer-home-page .home-membership-grid,
  .customer-home-page .home-services-grid{
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .customer-home-page .home-resource-title h3,
  .customer-home-page .home-resource-body p,
  .customer-home-page .home-match-card strong,
  .customer-home-page .home-news-card h3,
  .customer-home-page .home-news-card p{
    min-width:0!important;
    max-width:100%!important;
  }
}

/* A slightly more compact 360–412px composition. */
@media(max-width:430px){
  .home-public-page .page-shell{
    padding-inline:10px!important;
  }
  .customer-home-page{
    gap:0!important;
  }
  .customer-home-header{
    min-height:50px!important;
  }
  .home-search{
    height:44px!important;
    border-radius:13px!important;
  }
  .home-featured-viewport{
    min-height:180px!important;
    max-height:202px!important;
    border-radius:15px!important;
  }
  .home-section{
    margin-top:11px!important;
  }
  .home-sport-tile{
    flex-basis:84px!important;
    height:91px!important;
    border-radius:12px!important;
  }
  .home-resources-section .home-resource-scroller{
    grid-auto-columns:150px!important;
  }
  .home-fast-booking-link{
    min-height:54px!important;
    border-radius:12px!important;
  }
}

/* On very narrow screens, prevent text-based controls from forcing width. */
@media(max-width:380px){
  .customer-home-page .home-featured-copy h1,
  .customer-home-page .home-featured-copy p,
  .customer-home-page .home-fast-booking-copy strong,
  .customer-home-page .home-fast-booking-copy em{
    max-width:100%!important;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .home-view-all{
    flex:0 0 auto;
  }
}

/* =========================================================
   v13 — customer mobile: two-card horizontal resources + stable prices
   ========================================================= */
@media(max-width:620px){
  /* Homepage resources: exactly two cards visible, then horizontal scrolling. */
  .customer-home-page .home-resources-section .home-resource-scroller{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0 2px 7px!important;
    direction:rtl!important;
    scroll-snap-type:x mandatory!important;
    scrollbar-width:thin!important;
    scrollbar-color:rgba(24,105,85,.38) transparent!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain!important;
  }

  .customer-home-page .home-resources-section .home-resource-scroller::-webkit-scrollbar{
    display:block!important;
    height:4px!important;
  }
  .customer-home-page .home-resources-section .home-resource-scroller::-webkit-scrollbar-track{
    background:transparent!important;
  }
  .customer-home-page .home-resources-section .home-resource-scroller::-webkit-scrollbar-thumb{
    background:rgba(24,105,85,.38)!important;
    border-radius:999px!important;
  }

  .customer-home-page .home-resources-section .home-resource-card{
    flex:0 0 calc((100% - 8px) / 2)!important;
    width:calc((100% - 8px) / 2)!important;
    min-width:0!important;
    max-width:none!important;
    scroll-snap-align:start!important;
  }

  .customer-home-page .home-resources-section .home-resource-photo{
    height:100px!important;
  }

  /* Booking resource price block: keep amount and unit separated and aligned. */
  .customer-app-page .booking-resource-option{
    grid-template-columns:minmax(0,1fr) auto!important;
  }

  .customer-app-page .booking-resource-side{
    min-width:76px!important;
    width:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:2px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }

  .customer-app-page .booking-resource-side b{
    display:block!important;
    margin:0!important;
    font-size:.78rem!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  .customer-app-page .booking-resource-side small{
    display:block!important;
    margin:0!important;
    font-size:.48rem!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }

  /* Booking table: preserve one physical row and give the price its own readable column. */
  .customer-app-page .booking-cart-table-wrap{
    overflow-x:auto!important;
    overflow-y:auto!important;
    scrollbar-width:thin!important;
    -webkit-overflow-scrolling:touch;
  }

  .customer-app-page .booking-cart-table .cart-price{
    min-width:108px!important;
    width:108px!important;
    justify-content:flex-start!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:.55rem!important;
    line-height:1!important;
  }
}

@media(max-width:390px){
  .customer-home-page .home-resources-section .home-resource-card{
    flex-basis:calc((100% - 7px) / 2)!important;
    width:calc((100% - 7px) / 2)!important;
  }

  .customer-app-page .booking-resource-side{
    min-width:72px!important;
  }

  .customer-app-page .booking-cart-table .cart-price{
    min-width:103px!important;
    width:103px!important;
    font-size:.52rem!important;
  }
}

/* =========================================================
   v14 — booking page: compact appointment + true table rows
   ========================================================= */
@media(max-width:620px){
  .customer-app-page .booking-date-time-card{padding:10px!important}
  .customer-app-page .booking-date-time-card .booking-step{margin-bottom:6px!important}
  .customer-app-page .booking-date-time-card .booking-step > span{width:28px!important;height:28px!important;flex-basis:28px!important;border-radius:9px!important;font-size:.82rem!important}
  .customer-app-page .booking-date-time-card .booking-step small{font-size:.66rem!important}
  .customer-app-page .booking-date-time-card .booking-step strong{font-size:.82rem!important}
  .customer-app-page .booking-date-time-card .booking-schedule-grid{gap:7px!important}
  .customer-app-page .booking-date-time-card .booking-control-label{font-size:.7rem!important;margin-bottom:3px!important}
  .customer-app-page .booking-date-time-card .booking-control-box{min-height:44px!important;height:44px!important;padding-inline:7px!important;border-radius:10px!important}
  .customer-app-page .booking-date-time-card .booking-control-icon,
  .customer-app-page .booking-date-time-card .booking-control-icon svg{width:18px!important;height:18px!important}
  .customer-app-page .booking-date-time-card .booking-control-box input,
  .customer-app-page .booking-date-time-card .booking-control-box select,
  .customer-app-page .booking-date-time-card .booking-duration-box select{min-height:40px!important;height:40px!important;font-size:14px!important}
  .customer-app-page .booking-date-time-card .booking-date-quick-row{gap:5px!important;margin-top:5px!important}
  .customer-app-page .booking-date-time-card .booking-date-quick{min-height:38px!important;height:38px!important;padding:4px 7px!important;border-radius:9px!important}
  .customer-app-page .booking-date-time-card .booking-date-quick span{font-size:.62rem!important}
  .customer-app-page .booking-date-time-card .booking-date-quick b{font-size:.64rem!important;margin-top:2px!important}
  .customer-app-page .booking-date-time-card .booking-control-help{margin-top:3px!important;font-size:.55rem!important}
  .customer-app-page .booking-date-time-card .booking-slot-status{min-height:38px!important;margin-top:7px!important;padding:7px 8px!important;border-radius:9px!important;font-size:.62rem!important;line-height:1.4!important}

  .customer-app-page .booking-resource-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    width:100%!important;max-width:100%!important;
  }
  .customer-app-page .booking-resource-option{
    width:100%!important;min-width:0!important;min-height:188px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"art art" "main side" "tap tap"!important;
    gap:0!important;padding:0 0 35px!important;border-radius:14px!important;
  }
  .customer-app-page .booking-resource-art{width:100%!important;height:78px!important;min-height:78px!important;border-radius:0!important}
  .customer-app-page .booking-resource-art b{font-size:1.65rem!important}
  .customer-app-page .booking-resource-main{min-width:0!important;padding:7px 7px 0!important}
  .customer-app-page .booking-resource-title strong{font-size:.67rem!important;line-height:1.25!important}
  .customer-app-page .booking-resource-main small{margin-top:3px!important;font-size:.46rem!important;line-height:1.3!important}
  .customer-app-page .booking-resource-main em{min-height:22px!important;margin-top:4px!important;padding-inline:5px!important;border-radius:6px!important;font-size:.43rem!important}
  .customer-app-page .booking-resource-side{min-width:52px!important;padding:7px 7px 0 4px!important;align-items:flex-start!important}
  .customer-app-page .booking-resource-side b{font-size:.62rem!important;line-height:1!important}
  .customer-app-page .booking-resource-side small{font-size:.4rem!important;line-height:1.1!important}
  .customer-app-page .booking-resource-tap{inset-inline:6px!important;bottom:6px!important;min-height:28px!important;height:28px!important;border-radius:8px!important;font-size:.49rem!important}

  .customer-app-page .booking-cart-table-wrap{
    width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;
    border:1px solid #e2ece8!important;border-radius:10px!important;background:#fff!important;
  }
  .customer-app-page .booking-cart-table{
    display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;
    table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;direction:rtl!important;
  }
  .customer-app-page .booking-cart-table thead{display:table-header-group!important;width:auto!important;min-width:0!important}
  .customer-app-page .booking-cart-table tbody{display:table-row-group!important;width:auto!important;min-width:0!important}
  .customer-app-page .booking-cart-table tr{display:table-row!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important}
  .customer-app-page .booking-cart-table th,
  .customer-app-page .booking-cart-table td{
    display:table-cell!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;
    padding:5px 3px!important;border-bottom:1px solid #e8efed!important;background:#fff!important;
    vertical-align:middle!important;white-space:normal!important;overflow:visible!important;
    font-size:.47rem!important;line-height:1.2!important;text-align:center!important;
  }
  .customer-app-page .booking-cart-table th{
    height:28px!important;padding:4px 2px!important;background:#f3f8f6!important;color:#6f7f79!important;
    font-size:.43rem!important;font-weight:950!important;
  }
  .customer-app-page .booking-cart-table th:first-child,.customer-app-page .booking-cart-table td:first-child{width:25%!important;text-align:right!important}
  .customer-app-page .booking-cart-table th:nth-child(2),.customer-app-page .booking-cart-table td:nth-child(2){width:14%!important}
  .customer-app-page .booking-cart-table th:nth-child(3),.customer-app-page .booking-cart-table td:nth-child(3){width:12%!important}
  .customer-app-page .booking-cart-table th:nth-child(4),.customer-app-page .booking-cart-table td:nth-child(4){width:14%!important}
  .customer-app-page .booking-cart-table th:nth-child(5),.customer-app-page .booking-cart-table td:nth-child(5){width:11%!important}
  .customer-app-page .booking-cart-table th:nth-child(6),.customer-app-page .booking-cart-table td:nth-child(6){width:17%!important}
  .customer-app-page .booking-cart-table th:last-child,.customer-app-page .booking-cart-table td:last-child{width:7%!important}
  .customer-app-page .booking-cart-table tbody td[data-label]::before{display:none!important;content:none!important}
  .customer-app-page .booking-cart-table .cart-resource-cell{display:table-cell!important;padding:5px 4px!important}
  .customer-app-page .booking-cart-table .cart-resource-cell strong{display:block!important;max-width:100%!important;font-size:.52rem!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .customer-app-page .booking-cart-table .cart-resource-cell small{display:block!important;max-width:100%!important;margin-top:2px!important;font-size:.39rem!important;line-height:1.15!important;white-space:normal!important;overflow:visible!important}
  .customer-app-page .booking-cart-table input,
  .customer-app-page .booking-cart-table select{width:100%!important;min-width:0!important;max-width:100%!important;height:29px!important;min-height:29px!important;padding:0 2px!important;border:1px solid #dce7e3!important;border-radius:6px!important;background:#fff!important;font-size:.47rem!important;line-height:1!important}
  .customer-app-page .booking-cart-table .cart-end-time,
  .customer-app-page .booking-cart-table .cart-price{display:table-cell!important;min-width:0!important;width:auto!important;padding-inline:3px!important;font-size:.49rem!important;font-weight:950!important;line-height:1.15!important;white-space:normal!important;overflow:visible!important}
  .customer-app-page .booking-cart-table .cart-price{color:#078b6b!important}
  .customer-app-page .booking-cart-table td:last-child{text-align:center!important;padding:3px 2px!important}
  .customer-app-page .booking-cart-table .cart-remove{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border-radius:7px!important;font-size:.76rem!important}
  .customer-app-page .booking-cart-total{min-height:42px!important;margin-top:6px!important;padding:6px 8px!important;border-radius:9px!important}
  .customer-app-page .booking-cart-total span{font-size:.55rem!important}
  .customer-app-page .booking-cart-total strong{font-size:.92rem!important}
}
@media(max-width:390px){
  .customer-app-page .booking-resource-option{min-height:178px!important;padding-bottom:34px!important}
  .customer-app-page .booking-resource-art{height:72px!important;min-height:72px!important}
  .customer-app-page .booking-resource-main{padding:6px 6px 0!important}
  .customer-app-page .booking-resource-title strong{font-size:.62rem!important}
  .customer-app-page .booking-resource-main small{font-size:.41rem!important}
  .customer-app-page .booking-resource-side{min-width:48px!important;padding:6px 6px 0 3px!important}
  .customer-app-page .booking-resource-side b{font-size:.57rem!important}
  .customer-app-page .booking-resource-side small{font-size:.37rem!important}
  .customer-app-page .booking-resource-tap{inset-inline:5px!important;bottom:5px!important;min-height:27px!important;height:27px!important;font-size:.46rem!important}
  .customer-app-page .booking-cart-table th,.customer-app-page .booking-cart-table td{padding-inline:2px!important;font-size:.43rem!important}
  .customer-app-page .booking-cart-table input,.customer-app-page .booking-cart-table select{height:27px!important;min-height:27px!important;font-size:.44rem!important}
  .customer-app-page .booking-cart-table .cart-resource-cell strong{font-size:.48rem!important}
  .customer-app-page .booking-cart-table .cart-resource-cell small{font-size:.36rem!important}
  .customer-app-page .booking-cart-table .cart-end-time,.customer-app-page .booking-cart-table .cart-price{font-size:.45rem!important}
}

/* =========================================================
   v15 — booking table row layout + faster preflight
   ========================================================= */
@media(max-width:620px){
  /* Keep every booking item as one horizontal table row. */
  .customer-app-page .booking-cart-table-wrap{
    overflow:hidden!important;
  }
  .customer-app-page .booking-cart-table{
    width:100%!important;
    table-layout:fixed!important;
  }
  .customer-app-page .booking-cart-table thead,
  .customer-app-page .booking-cart-table tbody{
    width:100%!important;
  }
  .customer-app-page .booking-cart-table tr{
    width:100%!important;
    height:52px!important;
    min-height:52px!important;
  }
  .customer-app-page .booking-cart-table th,
  .customer-app-page .booking-cart-table td{
    height:52px!important;
    min-height:52px!important;
    padding:4px 2px!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    vertical-align:middle!important;
  }
  .customer-app-page .booking-cart-table th{
    height:27px!important;
    min-height:27px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell strong{
    display:block!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.2!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell small{
    display:block!important;
    max-width:100%!important;
    margin-top:2px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.1!important;
  }
  .customer-app-page .booking-cart-table input,
  .customer-app-page .booking-cart-table select{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    padding:0 2px!important;
    border-radius:6px!important;
    font-size:10px!important;
    line-height:30px!important;
    white-space:nowrap!important;
  }
  .customer-app-page .booking-cart-table .cart-end-time,
  .customer-app-page .booking-cart-table .cart-price{
    display:table-cell!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.1!important;
    font-size:10px!important;
  }
  .customer-app-page .booking-cart-table .cart-price{
    color:#078b6b!important;
    font-weight:950!important;
  }
  .customer-app-page .booking-cart-table td:last-child{
    overflow:visible!important;
  }
}
@media(max-width:390px){
  .customer-app-page .booking-cart-table tr,
  .customer-app-page .booking-cart-table th,
  .customer-app-page .booking-cart-table td{
    height:49px!important;
    min-height:49px!important;
  }
  .customer-app-page .booking-cart-table input,
  .customer-app-page .booking-cart-table select{
    height:28px!important;
    min-height:28px!important;
    line-height:28px!important;
    font-size:9px!important;
  }
  .customer-app-page .booking-cart-table .cart-end-time,
  .customer-app-page .booking-cart-table .cart-price{
    font-size:9px!important;
  }
}

/* =========================================================
   v16 — final booking table composition + smart availability UI
   ========================================================= */
@media(max-width:620px){
  /* The table is a real horizontal row: no stacking, no hidden scrollbar. */
  .customer-app-page .booking-cart-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    border:1px solid #dfe9e5!important;
    border-radius:12px!important;
    background:#fff!important;
  }
  .customer-app-page .booking-cart-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    border:0!important;
    direction:rtl!important;
  }
  .customer-app-page .booking-cart-table thead,
  .customer-app-page .booking-cart-table tbody{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  .customer-app-page .booking-cart-table thead tr,
  .customer-app-page .booking-cart-table tbody tr{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    grid-template-columns:minmax(0,1.55fr) minmax(0,.94fr) minmax(0,.68fr) minmax(0,.78fr) minmax(0,.66fr) minmax(0,.9fr) 27px!important;
    align-items:center!important;
    column-gap:0!important;
    row-gap:0!important;
    margin:0!important;
    padding:0!important;
  }
  .customer-app-page .booking-cart-table thead tr{
    min-height:29px!important;
    background:#f4f8f6!important;
    border-bottom:1px solid #e3ece8!important;
  }
  .customer-app-page .booking-cart-table tbody tr{
    min-height:54px!important;
    background:#fff!important;
  }
  .customer-app-page .booking-cart-table tbody tr+tr{
    border-top:1px solid #e8efec!important;
  }
  .customer-app-page .booking-cart-table th,
  .customer-app-page .booking-cart-table td{
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:4px 3px!important;
    border:0!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.15!important;
    box-sizing:border-box!important;
    background:transparent!important;
  }
  .customer-app-page .booking-cart-table th{
    min-height:29px!important;
    font-size:.43rem!important;
    font-weight:950!important;
    color:#6d7e77!important;
  }
  .customer-app-page .booking-cart-table td{
    min-height:54px!important;
    font-size:.49rem!important;
    color:#33473f!important;
  }
  .customer-app-page .booking-cart-table th:first-child,
  .customer-app-page .booking-cart-table td:first-child{
    justify-content:flex-start!important;
    text-align:right!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:1px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell strong{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    font-size:.54rem!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell small{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    font-size:.39rem!important;
    color:#82918a!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .customer-app-page .booking-cart-table input,
  .customer-app-page .booking-cart-table select{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    padding:0 2px!important;
    border:1px solid #d8e5e0!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#2e4139!important;
    font-size:9px!important;
    line-height:30px!important;
    text-align:center!important;
  }
  .customer-app-page .booking-cart-table .cart-end-time,
  .customer-app-page .booking-cart-table .cart-price{
    display:flex!important;
    min-width:0!important;
    width:auto!important;
    justify-content:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:9px!important;
    font-weight:950!important;
  }
  .customer-app-page .booking-cart-table .cart-end-time{
    color:#42564e!important;
  }
  .customer-app-page .booking-cart-table .cart-price{
    color:#078b6b!important;
  }
  .customer-app-page .booking-cart-table td:last-child{
    padding:3px 2px!important;
    overflow:visible!important;
  }
  .customer-app-page .booking-cart-table .cart-remove{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
    min-height:23px!important;
    max-width:23px!important;
    max-height:23px!important;
    padding:0!important;
    border-radius:7px!important;
    font-size:.72rem!important;
  }

  /* Availability explanation under each unavailable court. */
  .customer-app-page .booking-resource-next{
    display:block!important;
    max-width:100%!important;
    margin-top:2px!important;
    color:#a87416!important;
    font-size:.39rem!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .customer-app-page .booking-resource-option.is-disabled{
    opacity:.82!important;
  }
  .customer-app-page .booking-resource-option.is-disabled .booking-resource-tap{
    background:#f2f4f3!important;
    border-color:#e0e6e3!important;
    color:#75837e!important;
    box-shadow:none!important;
  }
}
@media(max-width:390px){
  .customer-app-page .booking-cart-table thead tr,
  .customer-app-page .booking-cart-table tbody tr{
    grid-template-columns:minmax(0,1.46fr) minmax(0,.9fr) minmax(0,.66fr) minmax(0,.74fr) minmax(0,.64fr) minmax(0,.88fr) 25px!important;
  }
  .customer-app-page .booking-cart-table tbody tr{
    min-height:50px!important;
  }
  .customer-app-page .booking-cart-table td{
    min-height:50px!important;
    padding-inline:2px!important;
    font-size:.45rem!important;
  }
  .customer-app-page .booking-cart-table .cart-resource-cell strong{font-size:.5rem!important}
  .customer-app-page .booking-cart-table .cart-resource-cell small{font-size:.36rem!important}
  .customer-app-page .booking-cart-table input,
  .customer-app-page .booking-cart-table select{
    height:28px!important;
    min-height:28px!important;
    font-size:8px!important;
  }
}

/* =========================================================
   v17 — use global system theme on customer/home surfaces
   ========================================================= */
.customer-app-page{
  --mf-primary:var(--primary,#08a982)!important;
  --mf-primary-dark:var(--secondary,#08775f)!important;
  --mf-surface:var(--surface,#fff)!important;
  --mf-background:var(--background,#f4f8f6)!important;
  --mf-text:var(--text,#172821)!important;
  --mf-muted:color-mix(in srgb,var(--text,#172821) 52%,transparent)!important;
  --mf-line:color-mix(in srgb,var(--text,#172821) 12%,transparent)!important;
  --mf-soft:color-mix(in srgb,var(--primary,#08a982) 10%,var(--surface,#fff))!important;
  --mf-danger:var(--danger,#d95353)!important;
  --mf-warning:var(--accent,#a97818)!important;
  --mf-radius:var(--radius,18px)!important;
}

.home-public-page{
  --home-green:var(--primary,#009172)!important;
  --home-green-2:var(--secondary,#03ad86)!important;
  --home-mint:var(--background,#f3f8f6)!important;
  --home-panel:var(--surface,#fff)!important;
  --home-text:var(--text,#13221f)!important;
  --home-muted:color-mix(in srgb,var(--text,#13221f) 48%,transparent)!important;
  --home-line:color-mix(in srgb,var(--text,#13221f) 10%,transparent)!important;
}

/* Keep the main customer background and primary action colors driven by settings. */
.home-public-page .home-fast-booking-link,
.home-public-page .home-card-cta,
.home-public-page .home-view-all{
  border-color:color-mix(in srgb,var(--primary,#009172) 22%,transparent)!important;
}
.home-public-page .home-card-cta{
  background:var(--primary,#009172)!important;
}

