
: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}}
.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}
.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{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.10); color:var(--muted)}
.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: 1 / 1; /* 1:1 Instagram */
  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: 520px;
  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;
  pointer-events:none;
}
.zoom-stage img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: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; }


/* --- 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(0,0,0,.10); background: rgba(0,0,0,.03); color:#111; }

.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(0,0,0,.10); border-radius:14px; background:#fff; padding:10px; }
.card-mini h3{ margin:0; font-size:14px; line-height:1.2; }
.card-mini .meta{ margin-top:4px; font-size:12px; opacity:.7; }
.card-mini .text{ margin-top:8px; font-size:13px; opacity:.9;
  display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }

.promo-compact{ width: 260px; flex: 0 0 auto; }
.media-mini{ border-radius:12px; overflow:hidden; margin-top:8px; }
.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;}
  .table.table-cards td.actions{justify-content:flex-end;}
  .table.table-cards td.actions::before{content:''; display:none;}
  .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(0,0,0,.08); text-align:left; vertical-align:top; }
.m-cards{ display:none; }
.m-card{ border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:12px; margin:10px 0; background:#fff; }
.m-row{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed rgba(0,0,0,.08); }
.m-row:last-child{ border-bottom:none; }
@media (max-width: 720px){
  .table-wrap{ display:none; }
  .m-cards{ display:block; }
}
