
:root{
  --bg:#0b1220; --card:#121b2f; --muted:#9fb0d0; --text:#eaf1ff;
  --brand:#4da3ff; --ok:#2dd4bf; --warn:#fbbf24; --danger:#fb7185;
  --shadow: 0 14px 30px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(77,163,255,.35), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(45,212,191,.22), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:18px}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-radius:18px; background:rgba(18,27,47,.85);
  border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow); backdrop-filter: blur(10px);
}
.nav .left{display:flex; gap:12px; align-items:center}
.logo{
  width:44px;height:44px;border-radius:14px;
  background: rgba(255,255,255,.05);
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.logo img{width:100%;height:100%;object-fit:contain;display:block;padding:6px;}

.nav-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--text);
  width:44px; height:44px;
  border-radius:14px;
  cursor:pointer;
  font-size:18px;
}
.nav a, .nav .btnlink{
  text-decoration:none; font-weight:600; font-size:14px; opacity:.95;
  padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  white-space:nowrap;
}
.nav a:hover, .nav .btnlink:hover{border-color: rgba(77,163,255,.55); background: rgba(77,163,255,.10)}
.grid{display:grid; grid-template-columns:1.2fr .8fr; gap:14px; margin-top:14px}
@media(max-width:900px){.grid{grid-template-columns:1fr}}

/* ===== Admin nav safety (prevent overflow / misaligned buttons) ===== */
body.admin-page .nav{ flex-wrap:wrap; align-items:flex-start; }
body.admin-page .nav .left{ flex:1 1 auto; min-width:260px; }
body.admin-page .nav .row.navlinks{ flex:1 1 420px; min-width:260px; justify-content:flex-end; flex-wrap:wrap; }
body.admin-page .nav .row.navlinks a{
  white-space:normal; /* allow wrap on mid widths */
  line-height:1.15;
  text-align:center;
  min-width:92px;
}
@media(max-width:1100px){
  body.admin-page .nav .row.navlinks a{ font-size:13px; padding:9px 10px; }
}
.card{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  padding:14px;
}
.card h2,.card h3{margin:0 0 8px}
.muted{color:var(--muted)}
.btn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
}
.btn.primary{background: rgba(77,163,255,.18); border-color: rgba(77,163,255,.4)}
.btn.danger{background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.5)}
.input, select, textarea{
  width:100%; padding:12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
label{display:block; font-size:13px; margin:10px 0 6px; color:var(--muted)}
.row{display:flex; gap:10px; flex-wrap:wrap}
.row > *{flex:1}

/* ===== Staff / Employee dashboard ===== */
.dash-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin-top:10px}
.stat-card{padding:14px}
.stat-value{font-size:28px; font-weight:900; margin-top:8px; line-height:1}
.dash-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.dash-actions .btn{flex:1; justify-content:center}

/* Admin/Staff sub-navigation inside /admin pages */
.admin-subnav-wrap{position:sticky; top:10px; z-index:30; backdrop-filter: blur(8px);}
.admin-subnav{display:flex; gap:10px; flex-wrap:wrap}
.admin-subnav .btn{flex:1 1 150px; justify-content:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Keep the admin sub-navigation visible without horizontal swipe.
   Buttons wrap into rows on smaller screens instead of scrolling. */
@media (max-width: 720px){
  .admin-subnav{flex-wrap:wrap; overflow:visible; gap:8px}
  .admin-subnav .btn{flex:1 1 46%; width:auto; padding:10px 12px; border-radius:14px; white-space:nowrap}
}

@media (max-width: 720px){
  .dash-grid{grid-template-columns:1fr}
  .dash-actions{display:grid; grid-template-columns:1fr;}
  .dash-actions .btn{width:100%}
}
.table{width:100%; border-collapse:collapse; overflow:hidden; border-radius:16px}
.table th,.table td{padding:10px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; font-size:14px}
.table th{color:var(--muted); font-weight:700}
.badge{display:inline-block; font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.18); color:var(--text); background:rgba(255,255,255,.10); font-weight:800; letter-spacing:.2px; white-space:nowrap}
/* Stronger contrast so statuses are easy to read (especially on mobile). */
.badge.status-REQUESTED{background: rgba(77,163,255,.35); border-color: rgba(77,163,255,.70)}
.badge.status-PICKED_UP{background: rgba(45,212,191,.30); border-color: rgba(45,212,191,.65)}
.badge.status-WASHING{background: rgba(251,191,36,.30); border-color: rgba(251,191,36,.65)}
.badge.status-READY{background: rgba(34,197,94,.30); border-color: rgba(34,197,94,.65)}
.badge.status-OUT_FOR_DELIVERY{background: rgba(168,85,247,.30); border-color: rgba(168,85,247,.65)}
.badge.status-DELIVERED{background: rgba(34,197,94,.35); border-color: rgba(34,197,94,.75)}
.badge.status-CANCELED{background: rgba(251,113,133,.28); border-color: rgba(251,113,133,.75)}
.footer{margin-top:18px; color:var(--muted); font-size:12px; text-align:center}
.notice{padding:10px 12px;border-radius:14px;border:1px solid rgba(45,212,191,.35); background:rgba(45,212,191,.08)}
.error{padding:10px 12px;border-radius:14px;border:1px solid rgba(251,113,133,.45); background:rgba(251,113,133,.10)}
.small{font-size:12px;color:var(--muted)}
hr{border:none;border-top:1px solid rgba(255,255,255,.08); margin:14px 0}


/* ===== Swipe Gallery (Instagram-like) ===== */
.swipe-gallery{
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.swipe-track{
  display: flex;
  transition: transform .25s ease;
  will-change: transform;
  touch-action: pan-y;
}

.swipe-slide{
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #111;
}

.swipe-slide img, .swipe-slide video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swipe-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.swipe-btn.prev{ left: 10px; }
.swipe-btn.next{ right: 10px; }
@media (min-width: 900px){
  .swipe-btn{ display: inline-flex; }
}

.swipe-dots{
  position: absolute;
  left: 0; right: 0;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.swipe-dots .dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.swipe-dots .dot.active{
  background: rgba(255,255,255,.95);
  transform: scale(1.1);
}

/* Feed card tweaks */
.post{ max-width: 760px; margin: 16px auto; }
.post-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.post-actions{ display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap: wrap; }
.like-btn, .wa-btn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.like-btn.liked{
  background: rgba(255,0,80,.14);
  border-color: rgba(255,0,80,.32);
}

/* ===== Full-screen zoom modal ===== */
.zoom-modal{
  position:fixed; inset:0; z-index:9999;
  background: rgba(0,0,0,.92);
  display:none;
}
.zoom-modal.open{ display:block; }
.zoom-stage{
  position:absolute; inset:0;
  display:grid; place-items:center;
  padding: 52px 14px;
  z-index:1;
  /* Allow scroll/pan on desktop when media is large */
  pointer-events:auto;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.zoom-stage img{
  /* Keep the image within the visible viewport while still allowing scroll
     if the user zooms the browser or the image is unusually tall/wide. */
  max-width: min(100%, calc(100vw - 28px));
  max-height: calc(100vh - 120px);
  object-fit: contain;
  pointer-events:auto;
  display:block;
  margin:auto;
}
.zoom-close{
  position:absolute; top:14px; right:14px;
  width:44px; height:44px; border-radius:999px;
  border:0; background:rgba(255,255,255,.12); color:#fff;
  cursor:pointer; font-size:18px;
  z-index:2;
}
.zoom-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px;
  border:0; background:rgba(255,255,255,.12); color:#fff;
  cursor:pointer; font-size:26px;
  z-index:2;
}
.zoom-nav.prev{ left:14px; }
.zoom-nav.next{ right:14px; }


.section{ margin: 22px 0; }
.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.post-body{ margin: 0; }

/* ===== Facebook-like feed cards (Promotions / News / Tips) ===== */
.fb-post{
  max-width: 760px;
  margin: 16px auto;
  /* Match the rest of the project's glass/dark card style */
  background: rgba(18,27,47,.85);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fb-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding: 12px 12px 10px; }
.fb-head-left{ display:flex; align-items:flex-start; gap:10px; min-width: 0; }
.fb-avatar{
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--text);
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.10);
}
.fb-head-text{ min-width:0; }
.fb-name-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fb-name{ font-weight: 700; font-size: 14px; }
.fb-badge{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(77,163,255,.12);
  color: var(--text);
  border: 1px solid rgba(77,163,255,.35);
}
.fb-meta{ font-size: 12px; color: rgba(234,241,255,.75); display:flex; align-items:center; gap:6px; margin-top: 2px; flex-wrap:wrap; }
.fb-dot{ opacity: .7; }
.fb-public{ display:inline-flex; align-items:center; gap:6px; }
.fb-head-right{ display:flex; align-items:center; gap:8px; }
.fb-pill{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,241,255,.85);
}
.fb-more{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 0;
  font-size: 18px;
}
.fb-title{ padding: 0 12px 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.fb-body{ padding: 0 12px 12px; font-size: 14px; color: rgba(234,241,255,.92); }

.fb-media{ border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.fb-media .swipe-slide{ height: 360px; }
.fb-media .swipe-slide img, .fb-media .swipe-slide video{ height: 360px; width:100%; }
.fb-media .swipe-slide img{ object-fit: cover; background: #111; }
.fb-media .swipe-slide video{ object-fit: cover; }
@media (max-width: 720px){
  .fb-media .swipe-slide{ height: 260px; }
  .fb-media .swipe-slide img, .fb-media .swipe-slide video{ height: 260px; }
}

.fb-actions{
  display:flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.fb-action-btn{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 600;
}
.fb-action-btn:hover{ border-color: rgba(77,163,255,.55); background: rgba(77,163,255,.10); }
.fb-action-btn:disabled{ opacity: .55; cursor:not-allowed; }
.fb-count{ font-weight: 800; }
.fb-post .like-btn.liked{ background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.35); }

/* --- Compact organized feed (Promotions/News/Tips) --- */

.feed-section{ margin: 18px 0 24px; }
.section-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.section-head h2{ margin:0; font-size:18px; }
.section-link{ font-size:13px; text-decoration:none; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); color:var(--text); }
.section-link:hover{ border-color: rgba(77,163,255,.55); background: rgba(77,163,255,.10); }

.h-scroll{ display:flex; gap:12px; overflow:auto; scroll-snap-type:x mandatory; padding-bottom: 6px; }
.h-scroll::-webkit-scrollbar{ height: 8px; }
.h-scroll::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.12); border-radius:999px; }
.h-scroll > *{ scroll-snap-align:start; }

.stack{ display:grid; gap:10px; }

.grid-mini{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
@media (max-width: 720px){ .grid-mini{ grid-template-columns: 1fr; } }

.card-mini{ border:1px solid rgba(255,255,255,.08); border-radius:14px; background: rgba(18,27,47,.85); padding:10px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.card-mini h3{ margin:0; font-size:14px; line-height:1.2; }
.card-mini .meta{ margin-top:4px; font-size:12px; color: rgba(234,241,255,.75); }
.card-mini .text{ margin-top:8px; font-size:13px; color: rgba(234,241,255,.88);
  display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }

.promo-compact{ width: 260px; flex: 0 0 auto; }

/* Feed media preview (desktop + mobile)
   Goal: previews should feel compact on desktop, while staying readable on mobile. */
.media-mini{ border-radius:12px; overflow:hidden; margin-top:8px; max-width: 460px; }
/* Desktop: reduce vertical space so the card doesn't look "empty" */
.media-mini .swipe-slide{ height: 170px; }
.media-mini .swipe-slide img, .media-mini .swipe-slide video{ height: 170px; }
.media-mini .swipe-slide img{ object-fit: contain; background:#111; }
.media-mini .swipe-slide video{ object-fit: cover; }
@media (max-width: 520px){
  .media-mini .swipe-slide{ height: 220px; max-height: 220px; }
  .media-mini .swipe-slide img, .media-mini .swipe-slide video{ height: 220px; max-height: 220px; }
}

/* Promotions grid cards are narrower; keep their previews even more compact on desktop */
.promo-compact .media-mini{ max-width: 260px; }
.promo-compact .media-mini .swipe-slide{ height: 150px; }
.promo-compact .media-mini .swipe-slide img, .promo-compact .media-mini .swipe-slide video{ height: 150px; }
.media-mini .swipe-btn{ display:none; }
.media-mini .swipe-dots{ bottom:6px; }


/* --- Mobile polish --- */
@media (max-width: 720px){
  .container{ padding:12px; }
  .nav{ padding:12px; border-radius:16px; align-items:stretch; flex-direction:column; }
  .nav .left{ width:100%; justify-content:space-between; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav .row.navlinks{ width:100%; justify-content:flex-start; flex-wrap:wrap; }
  .nav .row.navlinks{ display:none; }
  .nav .row.navlinks.open{ display:flex; }
  .nav a, .nav .btnlink{ padding:12px 12px; font-size:14px; flex:1 1 auto; text-align:center; }
  .btn{ padding:12px 14px; }
  .input, select, textarea{ font-size:16px; padding:14px; }
  label{ font-size:14px; }
  h1{ font-size:22px; }
  .section-head h2{ font-size:17px; }
  .h-scroll{ -webkit-overflow-scrolling: touch; scroll-padding: 12px; }
}



/* =========================
   Mobile UX Upgrade (v2)
   ========================= */
@media (max-width: 720px){
  /* Make room for bottom nav + safe area */
  body{ padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* Top nav: keep compact */
  .topbar{ position: sticky; top: 0; z-index: 50; }
  .topbar .navlinks{ 
    position: absolute;
    left: 12px; right: 12px; top: 60px;
    background: rgba(18,27,47,.98);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
  }
  .topbar .navlinks.open{ display:flex; }
  .topbar .navlinks a{ width: 100%; padding: 12px 12px; border-radius: 12px; }
  .nav-toggle{ display: inline-flex; }

  /* Cards / sections spacing */
  .card{ border-radius: 16px; }
  .feed-section .stack{ gap: 10px; }
  .section-head{ position: sticky; top: 62px; z-index: 20; backdrop-filter: blur(10px); }

  /* Zoom modal: bigger controls on mobile */
  .zoom-close{
    width: 46px; height: 46px;
    font-size: 22px;
    top: 14px; right: 14px;
  }
  .zoom-nav{
    width: 52px; height: 52px;
    font-size: 34px;
  }

  /* Floating Pick-Up button */
  .mobile-fab{
    position: fixed;
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(77,163,255,1), rgba(77,163,255,.75));
    color: #071022;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
  }

  /* Bottom navigation */
  .bottom-nav{
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(11,18,32,.92);
    border-top: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .bottom-nav a{
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255,255,255,.78);
  }
  .bottom-nav a span{ font-size: 18px; line-height: 1; }
  .bottom-nav a small{ font-size: 11px; line-height: 1; }
  .bottom-nav a.active{
    background: rgba(77,163,255,.18);
    color: #fff;
  }
}

/* Default: hide mobile-only UI */
.mobile-fab, .bottom-nav{ display:none; }
@media (max-width: 720px){
  .mobile-fab, .bottom-nav{ display:inline-flex; }
  .bottom-nav{ display:grid; }
}


/* Mobile-friendly tables */
.table-wrap{width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:14px;}
.table{min-width:720px;}
@media (max-width:720px){
  .table{min-width:640px;}
  .card{padding:14px;}
  .btn{padding:12px 14px;}
  .input, select, textarea{font-size:16px;}
}


/* Mobile table-to-cards */
@media (max-width:720px){
  .table.table-cards{min-width:0; width:100%; border-collapse:separate; border-spacing:0 10px;}
  .table.table-cards thead{display:none;}
  .table.table-cards tbody, .table.table-cards tr, .table.table-cards td{display:block; width:100%;}
  .table.table-cards tr{background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden; margin:0 0 12px 0;}
  .table.table-cards td{min-width:0; padding:10px 12px; border:none; border-bottom:1px solid rgba(255,255,255,.06); display:flex; gap:10px; align-items:flex-start; justify-content:space-between;}
  .table.table-cards td:last-child{border-bottom:none;}
  .table.table-cards td::before{content: attr(data-label); color: var(--muted); font-weight:600; flex: 0 0 42%; max-width:42%;}
  .table.table-cards td > *{flex: 1 1 auto;}
  /* Actions cell: keep buttons inside the card on mobile */
  .table.table-cards td.actions{display:block; justify-content:flex-start;}
  .table.table-cards td.actions::before{content:''; display:none;}
  .table.table-cards td.actions > *{flex:none; width:100%;}
  .table.table-cards td.actions form{width:100%;}
  .table.table-cards td.actions button{width:100%;}
  .table.table-cards details > summary.btn{width:100%; text-align:center;}
}


/* --- Home: Services (clean + pro) --- */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:stretch;
  margin-top:16px;
}
.hero__content{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.hero__content h1{margin:0 0 8px; font-size:34px; letter-spacing:-0.02em;}
.hero__cta{margin-top:12px; flex-wrap:wrap;}
.hero__meta{
  margin-top:14px;
  display:flex;
  gap:10px 14px;
  flex-wrap:wrap;
  font-size:13px;
  color: var(--muted);
}
.hero__image{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background:
    linear-gradient(120deg, rgba(77,163,255,.35), rgba(45,212,191,.18)),
    url('/assets/img/services/self-service.jpg') center/cover no-repeat;
  min-height: 240px;
}
.services{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}
.service-card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.service-card img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}
.service-card__body{padding:14px;}
.service-card__body h3{margin:0 0 6px;}
.service-bullets{
  margin:10px 0 0;
  padding-left:18px;
  color: var(--muted);
  font-size:14px;
}
.service-bullets li{margin:4px 0;}
@media (max-width: 920px){
  .hero{grid-template-columns: 1fr; }
  .hero__image{min-height: 200px;}
  .services{grid-template-columns: 1fr;}
  .hero__content h1{font-size:30px;}
}


/* Alerts */
.alert{padding:10px 12px;border-radius:10px;margin:10px 0;font-weight:700}
.alert.success{background:#e8fff0;border:1px solid #b6f2c7}
.alert.error{background:#fff1f1;border:1px solid #ffc6c6}


/* --- Mobile friendly tables + cards --- */
.table-wrap{ width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table{ width:100%; border-collapse:collapse; }
.table th,.table td{ padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; vertical-align:top; }
.m-cards{ display:none; }
.m-card{ border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:14px; margin:10px 0; background: rgba(18,27,47,.92); box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.m-row{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px dashed rgba(255,255,255,.10); }
.m-row b{ color: rgba(234,241,255,.92); font-weight:800; }
.m-row span{ color: var(--text); }

/* Customer orders: improve readability */
.order-card{ border-color: rgba(77,163,255,.22); }
.order-card .badge{ font-weight:800; }
.order-actions .btn{ padding:10px 12px; }
.m-row:last-child{ border-bottom:none; }
@media (max-width: 720px){
  .table-wrap{ display:none; }
  .m-cards{ display:block; }
}


/* ===== Mobile Admin visibility fixes (Jan 2026) ===== */
@media (max-width:720px){
  /* Ensure list tables never force horizontal layout on mobile */
  .table.table-cards{min-width:0 !important;}
  /* When using card tables, allow full-width content (no horizontal scroll needed) */
  .table-wrap{overflow-x:visible;}
  /* Prevent long values from being clipped */
  .table.table-cards td{word-break:break-word;}
  .table.table-cards td::before{flex:0 0 38%; max-width:38%;}
}
/* ===== End fixes ===== */

/* ===== Global utility aliases (compat) ===== */
.ok{ padding:10px 12px; border-radius:14px; border:1px solid rgba(45,212,191,.35); background:rgba(45,212,191,.08); }
.err{ padding:10px 12px; border-radius:14px; border:1px solid rgba(251,113,133,.45); background:rgba(251,113,133,.10); }

/* ===== Zoom close reliability on mobile ===== */
.zoom-close{ z-index: 10001; pointer-events: auto; }

/* ===== Admin: always show tables on mobile (orders/customers/content) ===== */
@media (max-width: 720px){
  .admin-page .table-wrap{ display:block !important; overflow-x:auto; }
  .admin-page .m-cards{ display:none !important; }
}


/* ===== Admin Orders: better mobile layout (Jan 2026) ===== */
@media (max-width: 720px){
  .admin-page .table-wrap{ overflow-x: visible; }

  /* Put label above value to avoid cramped two-column rows */
  .admin-page .table.table-cards td{
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }
  .admin-page .table.table-cards td::before{
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .9;
  }

  /* Inputs should never overflow the card */
  .admin-page .table.table-cards input,
  .admin-page .table.table-cards select,
  .admin-page .table.table-cards textarea{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Stack small "row" groups on mobile (delivery date/time, buttons, etc.) */
  .admin-page .table.table-cards .row{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  /* Actions: big full-width buttons */
  .admin-page .table.table-cards td[data-label="Actions"] form{
    width: 100%;
  }
  .admin-page .table.table-cards td[data-label="Actions"] .btn{
    width: 100%;
    justify-content: center;
  }
}
/* ===== End Admin Orders mobile layout ===== */

/* ===== Admin Orders: compact mobile panel with expandable details (Jan 2026) ===== */
@media (max-width: 720px){
  /* Only for the Orders page wrapper */
  .admin-page .orders-mobile-only .table-wrap{ display:none !important; }
  .admin-page .orders-mobile-only .m-cards{ display:block !important; }

  .admin-page .admin-orders-cards .order-card{ padding: 14px; }
  .admin-page .admin-orders-cards .badge{ font-weight: 800; }
  .admin-page .admin-orders-cards details.order-details > summary.btn{
    width: 100%;
    text-align: center;
  }
  .admin-page .admin-orders-cards details.order-details[open] > summary.btn{
    opacity: .92;
  }
  .admin-page .admin-orders-cards .stack{ display:flex; flex-direction:column; }

  /* Mobile button sizing (match other pages: full-width, consistent height) */
  .admin-page .admin-orders-cards .btn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1;
  }
  /* Ensure spacing between actions inside the expanded panel */
  .admin-page .admin-orders-cards details.order-details .btn{ margin-top: 10px; }
  .admin-page .admin-orders-cards details.order-details > summary.btn{ margin-top: 0; }

}
/* ===== End Admin Orders compact panel ===== */

/* ---------- Save Loading Overlay ---------- */
.save-loading{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.55); opacity:0; pointer-events:none; transition:opacity .15s ease; z-index:1000; }
.save-loading.open{ opacity:1; pointer-events:auto; }
.save-loading-card{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; background:rgba(17,18,20,.92); border:1px solid rgba(255,255,255,.12); box-shadow:0 14px 40px rgba(0,0,0,.45); }
.save-loading-text{ font-weight:700; letter-spacing:.2px; }
.spinner{ width:20px; height:20px; border-radius:50%; border:2px solid rgba(255,255,255,.28); border-top-color: rgba(255,255,255,.92); animation: spin .75s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.is-disabled{ opacity:.7; cursor:not-allowed; }

/* Admin subnav swipe hint (mobile) */
.admin-subnav-hint{display:none; font-size:12px; color:var(--muted,#667); margin-top:6px; text-align:right;}
@media (max-width:700px){
  .admin-subnav-hint{display:block;}
  .admin-subnav-wrap{top:0;}
}


/* ===== Global button safety (prevent double-line labels) ===== */
.btn, .btnlink, .nav a{
  white-space: nowrap;
}

/* Compact buttons for dense tables/cards */
.btn.btn-sm{
  padding:6px 10px;
  border-radius:12px;
  font-size:13px;
}

/* Actions grid: equal-size buttons, compact use of space */
.actions-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(90px,1fr);
  gap:8px;
  align-items:center;
}
.actions-grid > *{ width:100%; }
.actions-grid .btn{ width:100%; justify-content:center; }
.actions-grid details.action-details{ width:100%; }
.actions-grid details.action-details > summary.btn{ list-style:none; cursor:pointer; text-align:center; }
@media(max-width:520px){
  .actions-grid{
    grid-auto-flow:row;
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .actions-grid .btn{ width:100%; }
}



/* Content publish form: stack Start/End dates */
.content-date-stack{ display:flex; flex-direction:column; gap:10px; }
.content-date-field{ width:100%; }
.content-date-field .input{ width:100%; }

/* ===== Admin Content actions: keep buttons at bottom and mobile friendly ===== */
.admin-post-actions{ padding:0 14px 14px; }
.admin-post-actions .actions-grid{ margin-top:10px; }

/* Smooth slide-down edit panel inside content posts */
.edit-panel{ max-height:0; overflow:hidden; opacity:0; transition:max-height .28s ease, opacity .20s ease; }
.edit-panel.open{ opacity:1; }
.edit-panel .edit-panel-inner{ margin-top:8px; padding:16px; }
.body-textarea{min-height:240px; resize:vertical;}

/* Content edit form: use available space without overflowing cards */
.content-edit-form{ width:100%; }
.content-edit-form label{ display:block; font-weight:700; margin:8px 0 6px; }
.content-edit-form .cef-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:14px;
  align-items:end; /* align Title input and Status toggle baseline */
}
.content-edit-form .cef-field{ min-width:0; }
.content-edit-form .cef-field > label{ margin-top:0; }
.content-edit-form .cef-full{ margin-top:6px; }
.content-edit-form .cef-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background: rgba(255,255,255,.03);
}
.content-edit-form .cef-toggle input{ transform: scale(1.1); }
.content-edit-form .cef-toggle span{ font-weight:700; white-space:nowrap; }
.content-edit-form .cef-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
  flex-wrap:wrap;
}
.content-edit-form .cef-actions .btn{ min-width:140px; justify-content:center; }

@media(max-width:720px){
  .content-edit-form .cef-grid{ grid-template-columns:1fr; }
  .content-edit-form .cef-actions{ justify-content:stretch; }
  .content-edit-form .cef-actions .btn{ flex:1; min-width:0; }
}
@media(max-width:520px){
  .admin-post-actions{ padding:0 12px 12px; }
  /* Larger touch targets for mobile (Email / Edit / Delete) */
  .admin-post-actions .btn.btn-sm{
    padding:12px 12px;
    font-size:15px;
    border-radius:14px;
    min-height:44px;
  }
  .admin-post-actions .actions-grid{ gap:10px; }

  /* Make edit panel wider on mobile for easier editing */
  .edit-panel .edit-panel-inner{ margin-left:-12px; margin-right:-12px; border-radius:16px; padding:14px; }
  .content-edit-form .cef-actions{ gap:12px; }
  .body-textarea{ min-height:220px; }
}


/* ===== Content "Facebook-like" cards ===== */
.post-sections{display:flex; flex-direction:column; gap:18px}
.post-section-title{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 10px}
.post-grid{display:flex; flex-direction:column; gap:12px}

.post-card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  overflow:hidden;
}
.post-card .post-head{
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.post-card .post-title{font-weight:800}
.post-card .post-meta{font-size:12px; opacity:.8; margin-top:4px}
.post-card .post-body{padding:0 14px 12px; color: rgba(234,241,255,.92)}
.post-card .post-media{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:0 14px 12px;
}
.post-card .post-media img{
  width:100%;
  max-width:260px;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
}
@media(max-width:520px){
  .post-card .post-media img{max-width:100%}
}

/* Small inline forms */
.inline-form{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.inline-form input[type="email"]{
  max-width:240px;
}


/* ------------------------------------------------------------
   Admin consistency & section spacing (Jan 2026)
------------------------------------------------------------ */
.admin-page .card{ margin-bottom:16px; }
.admin-page .admin-subnav-wrap{ margin-top:12px !important; margin-bottom:16px !important; }
.admin-page .admin-subnav{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.admin-page .admin-subnav .btn{ white-space:nowrap; }
.admin-page .section-space{ margin-top:14px; }
.admin-page .form-row-space{ margin-top:10px; }

/* ===== Content mobile layout fixes ===== */

/* Action buttons in one row */
.content-actions{
    display:flex;
    gap:8px;
    flex-wrap:nowrap;
}

@media (max-width: 768px){
    .content-actions button{
        flex:1;
        font-size:15px;
        padding:12px 10px;
        min-height:44px;
    }
}

/* Edit container (Title + Status) bigger on mobile */
@media (max-width: 768px){
    .content-edit-container{
        padding:16px !important;
    }
    .content-edit-container input,
    .content-edit-container select{
        font-size:16px;
        height:44px;
    }
}

/* New content form: reduce excessive height */
.new-content-container{
    padding-bottom:16px !important;
}


/* ===== Content: actions row + mobile sizing tweaks (v34) ===== */

/* Keep Email/Edit/Delete on a single row */
.actions-grid{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}
.actions-grid form{ margin:0; }
.actions-grid > *{ flex:1; }
.actions-grid button{ width:100%; }

/* Make edit header (Title + Status) roomier on mobile */
@media (max-width: 768px){
  .edit-panel-inner{
    padding:14px !important;
  }
  .content-edit-form .cef-grid{
    grid-template-columns: 1fr !important;
    gap:12px !important;
  }
  .content-edit-form .cef-field .input,
  .content-edit-form .cef-field select,
  .content-edit-form .cef-toggle{
    font-size:16px;
  }
  .content-edit-form .cef-field .input{
    height:44px;
  }
  .content-edit-form .cef-toggle{
    padding:10px 12px;
    border-radius:12px;
  }
}

/* Publish (new post) card: reduce excessive vertical growth */
@media (max-width: 768px){
  .grid > aside.card{
    padding:14px !important;
  }
  .grid > aside.card textarea.body-textarea{
    min-height: 140px;
  }
  .grid > aside.card label{
    margin-top:10px;
    display:block;
  }
  .grid > aside.card .input[type="file"]{
    padding:10px 12px;
  }
}


/* ===== Content v35: native date picker + compact new publication ===== */

/* Make date inputs look consistent */
.content-date-field .date-input{
  max-width: 220px;
}

/* Compact "New publication" (left card) so it ends right after Back button */
@media (max-width: 768px){
  .grid > aside.card{
    padding: 12px !important;
    margin-bottom: 12px !important;
  }
  .grid > aside.card form{
    margin-bottom: 0 !important;
  }
  .grid > aside.card textarea.body-textarea{
    min-height: 110px !important;
    max-height: 180px;
  }
  .grid > aside.card .content-date-field{
    margin-bottom: 10px;
  }
  .grid > aside.card .btn{
    padding: 12px 12px;
  }
}


/* ===== Content v36: new form static + equal buttons + wider edit ===== */

/* New publication card should size to content only (no extra empty height) */
.grid > aside.card{
  height: fit-content;
  align-self: flex-start;
}

/* Ensure form doesn't add extra space */
.grid > aside.card form,
.grid > aside.card .card-body{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Publish + Back same size */
.newpost-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.newpost-actions .btn,
.newpost-actions button,
.newpost-actions a{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 12px;
  font-size:15px;
}

/* Make the expanded edit form wider (avoid narrow column on mobile/desktop) */
.content-edit-container{
  width: 100%;
  max-width: none !important;
}

@media (max-width: 768px){
  /* If the edit form sits inside a grid column, make it span full width */
  .content-edit-container{
    padding:18px !important;
  }
}

/* If there is a wrapper that limits width, remove it */
.modal, .panel, .edit-panel{
  max-width:none;
}


/* ===== Content v37: stop grid stretching + wider edit on mobile ===== */

/* Prevent left "New publication" card from stretching to match the right column height */
.grid{ align-items:start; }
.grid > aside.card{ align-self:start; height: fit-content; }

/* Make Publish + Back same size and keep the card compact */
.newpost-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.newpost-actions .btn,
.newpost-actions button,
.newpost-actions a{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 12px;
  font-size:15px;
  white-space:nowrap;
}

/* Ensure the New Publication card ends right after the buttons (no extra bottom space) */
.grid > aside.card form{ margin-bottom:0 !important; }
.grid > aside.card{ padding-bottom:12px !important; }

/* Content action buttons row (Email/Edit/Delete) never wraps */
.content-actions{ display:flex; gap:8px; flex-wrap:nowrap; }
.content-actions > *{ flex:1; min-width:0; }
.content-actions .btn, .content-actions button, .content-actions a{ white-space:nowrap; min-height:44px; }

/* Edit form was narrow: stack Title/Status on mobile and increase padding */
@media (max-width: 768px){
  .edit-panel .edit-panel-inner{ padding:18px !important; }
  .content-edit-form .cef-grid{ grid-template-columns:1fr !important; gap:10px !important; align-items:stretch !important; }
  .content-edit-form .cef-grid .cef-field{ width:100%; }
  .content-edit-form input.input, .content-edit-form textarea.input, .content-edit-form select.input{ font-size:16px; }
}


/* ===== Content v39: Inline edit (no panel container) ===== */
.content-edit-form{
  width: 100%;
  margin-top: 12px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.content-edit-form .cef-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

@media (max-width: 768px){
  .content-edit-form .cef-grid{
    grid-template-columns: 1fr;
  }
}

.content-edit-form .edit-actions,
.content-edit-form .cef-actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.content-edit-form .edit-actions .btn,
.content-edit-form .cef-actions .btn,
.content-edit-form .edit-actions button,
.content-edit-form .cef-actions button,
.content-edit-form .edit-actions a,
.content-edit-form .cef-actions a{
  flex: 1;
  min-height: 44px;
  white-space: nowrap;
}


/* Auth buttons sizing (Login / Forgot Password) */
.login-actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.login-actions .btn,
.login-actions button{
  flex: 1;
  min-height: 44px;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
}

/* Forgot password submit button (web + mobile) */
.reset-btn{
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 16px;
  border-radius: 10px;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
}


/* ===== History filters (mobile fix) ===== */
.history-filters > div {
  min-width: 0; /* prevent date inputs from overflowing and overlapping */
}
.history-filters label {
  display:block;
  margin-bottom: 6px;
}
.history-actions .btn {
  min-height: 44px;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .history-filters {
    align-items: stretch !important;
  }
  .history-filters > div {
    flex: 1 1 100%;
  }
  .history-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }
  .history-actions .btn {
    width: 100%;
  }
}


/* ===== LOGIN MOBILE: BUTTONS SAME ROW (FIX) ===== */
@media (max-width: 768px){
  .login-actions{
    display:flex !important;
    flex-direction: row !important;
    gap:10px !important;
  }
  .login-actions .btn,
  .login-actions button{
    flex:1 1 0;
    min-height:44px;
    padding: 0 12px !important;
    font-size:14px !important;
    white-space:nowrap;
  }
}

}


/* ===== LOGIN & PICK UP MOBILE: CENTER ACTION BUTTONS (FIX2) ===== */
@media (max-width: 768px){
  .login-actions a.btn,
  .login-actions button.btn,
  .login-actions .btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
}


/* FIX DEFINITIVO: CENTER TEXT IN CREATE ACCOUNT (MOBILE) */
@media (max-width: 768px){
  .login-actions a.btn{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 !important;
  }
}


/* ===== MOBILE: BOTTOM NAV STABLE (SPACER FIX) ===== */
@media (max-width: 768px){
  /* Reserve scroll space so the last content never "pushes" the fixed app bar */
  .bottom-nav-spacer{ height: 92px; }

  /* Keep fixed bar stable on iOS/Android */
  .bottom-nav{
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

