/*!
 * DigiBorj — UI refresh 2026-11-07
 * Loaded last. Visual polish only: no markup/layout rewrites.
 * Type scale, icon sizing, surfaces, responsive rhythm.
 */

:root{
  --ui-bg:#f5f8fb;
  --ui-surface:#fff;
  --ui-ink:#102234;
  --ui-muted:#66788a;
  --ui-line:#e4ebf2;
  --ui-navy:#0b1f3a;
  --ui-green:#0e7c53;
  --ui-shadow-sm:0 1px 2px rgba(16,34,52,.04),0 10px 26px -18px rgba(16,34,52,.22);
  --ui-shadow-md:0 2px 6px rgba(16,34,52,.05),0 22px 46px -28px rgba(16,34,52,.3);
  --ui-ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{-webkit-tap-highlight-color:transparent}
html{scroll-padding-top:96px;background:#eef2f6}
::selection{background:rgba(14,124,83,.18);color:var(--ui-navy)}

body{
  color:var(--ui-ink);
  background:#eef2f6;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
@media(min-width:900px){
  body{background:
    radial-gradient(900px 520px at 92% -8%, rgba(14,124,83,.09), transparent 62%),
    radial-gradient(820px 480px at 6% 0%, rgba(23,59,109,.09), transparent 60%),
    #eef2f6;}
}

.app-shell{
  background:
    radial-gradient(820px 360px at 100% 0, rgba(14,124,83,.055), transparent 62%),
    radial-gradient(720px 320px at 0 0, rgba(23,59,109,.045), transparent 60%),
    var(--ui-bg)!important;
  font-size:15px;
  line-height:1.65;
}
@media(min-width:700px){
  body{font-size:calc(15px * var(--mts-font-scale,1))}
}

/* ---------- Header / chrome ---------- */
.topbar{
  border:1px solid rgba(16,34,52,.06)!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  box-shadow:0 1px 2px rgba(16,34,52,.04),0 14px 30px -22px rgba(16,34,52,.28)!important;
}
html[data-device="mobile"] .topbar,
html[data-device="tablet"] .topbar{
  min-height:82px!important;
  border-radius:24px!important;
  padding:10px 14px!important;
}
html[data-device="tablet"] .topbar{min-height:84px!important;padding:12px 18px!important;border-radius:26px!important}

.resident-identity strong{font-size:17px!important;font-weight:900!important;letter-spacing:-.015em}
.resident-identity small{font-size:12px!important;color:#71839a!important}
@media(min-width:700px){.resident-identity strong{font-size:19px!important}}

.icon-button{
  width:54px!important;height:54px!important;border-radius:18px!important;
  background:#fff!important;border:1px solid var(--ui-line)!important;color:#132b45!important;
  box-shadow:0 1px 2px rgba(16,34,52,.04);
  transition:transform .16s var(--ui-ease),box-shadow .16s var(--ui-ease),border-color .16s var(--ui-ease);
}
.icon-button svg{width:25px!important;height:25px!important}
.bell-button{border-color:var(--ui-line)!important}
.menu-button{
  width:52px!important;height:52px!important;border-radius:18px!important;
  background:linear-gradient(160deg,#16395f,#0b1f3a)!important;color:#fff!important;
  box-shadow:0 10px 22px -12px rgba(11,31,58,.6)!important;
}
.menu-button svg{width:26px!important;height:26px!important;stroke-width:2.1!important}
@media(hover:hover){.icon-button:hover{transform:translateY(-1px);box-shadow:var(--ui-shadow-sm);border-color:#d5e1ec!important}}

/* Desktop top navigation */
html[data-device="desktop"] .desktop-sidebar{
  background:rgba(255,255,255,.94)!important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid #e7edf4;
  box-shadow:0 8px 30px -24px rgba(15,40,70,.4);
}
html[data-device="desktop"] .desktop-sidebar-brand strong{font-size:18px!important}
html[data-device="desktop"] .desktop-sidebar-brand small{font-size:11px!important;color:#73849a!important}
html[data-device="desktop"] .desktop-nav button{
  height:42px!important;padding:0 13px!important;border-radius:12px!important;
  color:#4c6076!important;transition:background-color .16s var(--ui-ease),color .16s var(--ui-ease);
}
html[data-device="desktop"] .desktop-nav button span{font-size:12.5px!important;font-weight:700!important}
html[data-device="desktop"] .desktop-nav button svg{width:18px!important;height:18px!important}
html[data-device="desktop"] .desktop-nav button:hover{background:#f3f7fa!important;color:#173b6d!important}
html[data-device="desktop"] .desktop-nav button.active{
  background:var(--dbj-green-soft,#e7f6ef)!important;
  color:var(--dbj-green,#0e7c53)!important;
}
html[data-device="desktop"] .desktop-nav button.active span{font-weight:900!important}

/* ---------- Content rhythm ---------- */
html[data-device="mobile"] .app-main{padding:16px 16px 118px!important}
html[data-device="tablet"] .app-main{padding:22px 26px 116px!important}
html[data-device="desktop"] .app-main{
  max-width:1240px;margin-inline:auto;
  padding:28px 30px 64px!important;
}

.page-head h1{
  font-size:clamp(22px,4.4vw,30px)!important;
  font-weight:900!important;line-height:1.4!important;letter-spacing:-.02em;
}
.page-head p{font-size:13.5px!important;line-height:1.85!important;color:var(--ui-muted)!important}

.section-title{align-items:center!important;gap:10px;margin:26px 2px 14px!important}
.section-title h2{
  display:flex!important;align-items:center;gap:9px;
  font-size:19px!important;font-weight:900!important;line-height:1.5!important;
  color:var(--ui-ink)!important;letter-spacing:-.01em;
}
.section-title h2::before{
  content:"";flex:none;width:5px;height:20px;border-radius:99px;
  background:linear-gradient(180deg,var(--dbj-green,#0e7c53),#56c79a);
}
.section-title small{font-size:12px!important;color:var(--ui-muted)!important}
.section-title button{font-size:13px!important;font-weight:800!important;min-height:40px;color:var(--dbj-green,#0e7c53)!important}
@media(min-width:700px){
  .section-title h2{font-size:22px!important}
  .section-title h2::before{height:22px;width:6px}
  .section-title small{font-size:12.5px!important}
}

/* ---------- Home hero ---------- */
.overview-home-slider{
  border-radius:26px!important;
  background:linear-gradient(135deg,#081a31 0%,#0d2c4d 52%,#123e69 100%)!important;
  box-shadow:var(--ui-shadow-md)!important;
  border:1px solid rgba(255,255,255,.07);
  isolation:isolate;
}
.overview-home-slider::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(440px 260px at 14% 24%, rgba(86,199,154,.26), transparent 66%),
    radial-gradient(540px 320px at 94% 112%, rgba(59,130,246,.22), transparent 62%),
    radial-gradient(circle at 15% 52%, transparent 0 96px, rgba(255,255,255,.07) 97px 98px, transparent 99px),
    radial-gradient(circle at 15% 52%, transparent 0 158px, rgba(255,255,255,.05) 159px 160px, transparent 161px);
}
@media(min-width:700px){
  .overview-home-slider::before{
    content:"";position:absolute;left:3.5%;bottom:0;width:36%;height:96%;z-index:1;pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M30 240V110l45-25 45 25v130'/%3E%3Cpath d='M52 240V132h46v108'/%3E%3Cpath d='M145 240V70l55-30 55 30v170'/%3E%3Cpath d='M168 240V96h64v144'/%3E%3Cpath d='M280 240V125l40-22 40 22v115'/%3E%3Cpath d='M300 240V144h40v96'/%3E%3Cpath d='M20 240h380'/%3E%3Cpath d='M52 155h46M52 180h46M52 205h46M168 120h64M168 148h64M168 176h64M168 204h64M300 165h40M300 190h40M300 215h40'/%3E%3C/g%3E%3C/svg%3E") left bottom/contain no-repeat;
    opacity:.8;
  }
}
.home-slide strong{
  font-size:clamp(26px,6.8vw,30px)!important;
  font-weight:900!important;line-height:1.4!important;letter-spacing:-.02em;
  text-shadow:0 4px 24px rgba(0,0,0,.3);
}
.home-slide p{font-size:13.5px!important;line-height:2!important;color:#dbe7f2!important;margin:9px 0 17px!important}
.home-slide a{
  min-height:46px!important;padding:0 22px!important;border-radius:14px!important;
  font-size:13.5px!important;font-weight:800!important;
  box-shadow:0 14px 26px -16px rgba(0,0,0,.55);
  transition:transform .16s var(--ui-ease),box-shadow .16s var(--ui-ease);
}
.slider-dots{gap:6px!important;bottom:16px!important;left:20px!important}
.slider-dots button{width:8px!important;height:8px!important;opacity:.6}
.slider-dots button.active{width:26px!important;opacity:1}
@media(hover:hover){.home-slide a:hover{transform:translateY(-1px);box-shadow:0 18px 30px -16px rgba(0,0,0,.6)}}
@media(min-width:700px){
  .home-slide strong{font-size:clamp(32px,3.5vw,44px)!important}
  .home-slide p{font-size:15px!important;max-width:48ch}
  .home-slide a{font-size:14.5px!important;min-height:50px!important;padding:0 26px!important}
  .home-slide>div{max-width:62%}
}

/* ---------- Quick access tiles ---------- */
.overview-tile,.overview-service-tile{
  min-height:104px!important;
  padding:14px 8px!important;
  gap:11px!important;
  border-radius:20px!important;
  border:1px solid var(--ui-line)!important;
  background:#fff!important;
  box-shadow:var(--ui-shadow-sm)!important;
}
.overview-tile span,.overview-service-tile span{
  width:50px!important;height:50px!important;border-radius:16px!important;
  background-image:linear-gradient(160deg,rgba(255,255,255,.75),rgba(255,255,255,0) 72%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 8px 16px -13px currentColor;
  transition:transform .18s var(--ui-ease),box-shadow .18s var(--ui-ease);
}
.overview-tile:hover span,.overview-service-tile:hover span{
  transform:translateY(-1px) scale(1.04);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 12px 22px -14px currentColor;
}
.overview-tile span svg,.overview-service-tile span svg{width:24px!important;height:24px!important}
.overview-tile strong,.overview-service-tile strong{
  font-size:12.5px!important;font-weight:800!important;line-height:1.65!important;color:#213247!important;
}
@media(min-width:700px){
  .overview-tile,.overview-service-tile{min-height:116px!important;border-radius:22px!important}
  .overview-tile span,.overview-service-tile span{width:52px!important;height:52px!important;border-radius:17px!important}
  .overview-tile span svg,.overview-service-tile span svg{width:25px!important;height:25px!important}
  .overview-tile strong,.overview-service-tile strong{font-size:13.5px!important}
}
html[data-device="tablet"] .overview-quick-grid-expanded{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-device="desktop"] .overview-tile,
html[data-device="desktop"] .overview-service-tile{min-height:124px!important}
html[data-device="desktop"] .overview-tile strong,
html[data-device="desktop"] .overview-service-tile strong{font-size:14px!important}
html[data-device="desktop"] .overview-tile span,
html[data-device="desktop"] .overview-service-tile span{width:54px!important;height:54px!important;border-radius:18px!important}
html[data-device="desktop"] .overview-tile span svg,
html[data-device="desktop"] .overview-service-tile span svg{width:26px!important;height:26px!important}
@media(hover:hover) and (pointer:fine){
  .overview-tile:hover,.overview-service-tile:hover{transform:translateY(-3px);box-shadow:var(--ui-shadow-md)!important;border-color:#d7e4df!important}
}

/* ---------- Announcement / info strip ---------- */
.overview-announcement{
  border-radius:18px!important;
  border:1px solid var(--ui-line)!important;
  border-right:3px solid #f0a34a!important;
  background:linear-gradient(100deg,#fffdf8,#fff)!important;
  box-shadow:var(--ui-shadow-sm)!important;
  padding:15px 18px!important;
  font-size:13.5px!important;
}
.overview-announcement span{
  background:linear-gradient(160deg,#fff2e1,#ffe0b5)!important;
  color:#d97706!important;
  box-shadow:0 9px 18px -13px rgba(217,119,6,.65);
}
.overview-announcement strong{font-size:13.5px!important}
.overview-announcement small{font-size:11.5px!important}

/* ---------- Product cards ---------- */
.product-card{
  border-radius:20px!important;
  border:1px solid var(--ui-line)!important;
  box-shadow:var(--ui-shadow-sm)!important;
  padding:10px!important;
  overflow:hidden;
}
.product-card .product-image{transition:transform .35s var(--ui-ease)}
@media(hover:hover) and (pointer:fine){
  .product-card:hover .product-image{transform:scale(1.045)}
}
.product-image{
  height:160px!important;
  border-radius:15px!important;
  background-color:#eef3f8;
  background-image:linear-gradient(145deg,#eef3f8,#e2eaf2);
}
.product-card h3{
  font-size:13px!important;font-weight:800!important;line-height:1.7!important;
  height:44px!important;margin:10px 3px 5px!important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.product-card small{font-size:10.5px!important;color:var(--ui-muted)!important}
.product-price b{font-size:15px!important;font-weight:900!important;letter-spacing:-.01em}
.old-price{font-size:10.5px!important}
.add-product{width:40px!important;height:40px!important;border-radius:13px!important}
.add-product svg{width:21px!important;height:21px!important}
@media(min-width:700px){
  .product-image{height:172px!important}
  .product-card h3{font-size:14.5px!important;height:50px!important}
  .product-card small{font-size:11.5px!important}
  .product-price b{font-size:16.5px!important}
}
@media(hover:hover) and (pointer:fine){
  .product-card:hover,.service-card:hover,.home-amenity-card:hover{transform:translateY(-3px);box-shadow:var(--ui-shadow-md)!important}
}

/* Category strip + search */
.category-chip{
  border-radius:18px!important;border-color:var(--ui-line)!important;
  min-width:96px!important;padding:10px 9px!important;
  transition:transform .16s var(--ui-ease),border-color .16s var(--ui-ease),background-color .16s var(--ui-ease);
}
.category-chip strong{font-size:11.5px!important;font-weight:700!important;line-height:1.6!important}
.category-chip.active{
  background:var(--sec-soft,#e7f6ef)!important;
  border-color:var(--sec,var(--dbj-green))!important;
  color:var(--sec-strong,var(--dbj-green))!important;
  box-shadow:0 8px 18px -12px var(--sec-tint,rgba(14,124,83,.35))!important;
}
.category-chip.active strong{font-weight:900!important}
.search-box{
  height:52px!important;border-radius:14px!important;
  border:1px solid var(--ui-line)!important;background:#fff!important;
  box-shadow:var(--ui-shadow-sm)!important;margin-bottom:18px!important;
}
.search-box input{font-size:14px!important;height:50px!important}
.search-box svg{width:20px!important;height:20px!important;color:#8495a8!important}

/* Cafe rail on home */
.home-cafe-product-copy>strong{font-size:10.5px!important;line-height:1.6!important;min-height:34px!important;font-weight:800!important}
.home-cafe-product-copy>small{font-size:9px!important;color:var(--ui-muted)!important}
.home-cafe-product-price b{font-size:10.5px!important;white-space:nowrap}
.home-cafe-product-price del{font-size:8.5px!important}

/* ---------- Service & amenity cards ---------- */
.service-card{
  min-height:170px!important;padding:12px 8px!important;gap:10px!important;
  border-radius:20px!important;border-color:var(--ui-line)!important;
  box-shadow:var(--ui-shadow-sm)!important;
  overflow:hidden;
}
.service-image{width:90px!important;height:90px!important;border-radius:18px!important;transition:transform .35s var(--ui-ease)}
@media(hover:hover) and (pointer:fine){
  .service-card:hover .service-image{transform:scale(1.04)}
}
.service-image svg{width:42px!important;height:42px!important}
.service-card strong{font-size:13.5px!important;line-height:1.7!important;font-weight:800!important}
@media(min-width:700px){
  .service-card{min-height:190px!important}
  .service-image{width:104px!important;height:104px!important}
  .service-card strong{font-size:14.5px!important}
}
.home-amenity-card{border-radius:20px!important;border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow-sm)!important}
.home-amenities-showcase .home-amenity-copy strong{font-size:13px!important;line-height:1.7!important;font-weight:800!important}
.home-amenities-showcase .home-amenity-copy small{font-size:11px!important;line-height:1.75!important}
.home-amenity-image{background-color:#eef3f8}

/* ---------- Buttons ---------- */
html body .primary-button,
html body .secondary-button,
html body .danger-button{
  min-height:48px!important;border-radius:14px!important;
  font-size:14px!important;font-weight:800!important;padding:0 18px!important;
}
html body .primary-button{
  background-color:var(--sec,var(--dbj-green,#0e7c53))!important;
  background-image:linear-gradient(180deg,rgba(255,255,255,.14),rgba(0,0,0,.08))!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 14px 26px -16px rgba(14,124,83,.55)!important;
  transition:filter .16s var(--ui-ease),transform .16s var(--ui-ease),box-shadow .16s var(--ui-ease);
}
html body .secondary-button{
  background:#fff!important;border:1px solid var(--ui-line)!important;
  color:var(--ui-ink)!important;box-shadow:var(--ui-shadow-sm)!important;
}
@media(hover:hover){
  html body .primary-button:hover{filter:brightness(1.06);transform:translateY(-1px)}
  html body .secondary-button:hover{border-color:#d3dfeb!important}
}

/* ---------- Cards, badges, feedback ---------- */
.list-card{
  border-radius:18px!important;border-color:var(--ui-line)!important;
  box-shadow:var(--ui-shadow-sm)!important;
}
.list-card h3{font-size:15px!important;line-height:1.6!important;font-weight:800!important}
.list-card p{font-size:13px!important;line-height:1.85!important}
.form-card{border-radius:20px!important;border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow-sm)!important;padding:20px!important}
.form-card h3{font-size:17px!important;line-height:1.55!important}
.status-badge{font-size:11px!important;padding:6px 10px!important;font-weight:800!important;letter-spacing:0!important}
.empty-state{
  border-radius:20px!important;border-color:#dbe5ef!important;
  background:linear-gradient(180deg,#fbfdff,#f6f9fc);
}
.empty-state strong{font-size:15px!important}
.empty-state span{width:68px!important;height:68px!important;border-radius:20px!important;background:#edf3f8!important}
.empty-state svg{width:30px!important;height:30px!important}

/* ---------- Bottom navigation (mobile / tablet) ---------- */
html[data-device="mobile"] .bottom-nav.bottom-nav-overview{
  height:92px!important;
  padding-bottom:calc(8px + env(safe-area-inset-bottom))!important;
}
.bottom-nav .nav-side svg{width:24px!important;height:24px!important}
.bottom-nav .nav-side span{font-size:11.5px!important;font-weight:700!important}
.bottom-nav .nav-side.active span{font-weight:900!important}
.bottom-nav .nav-side{transition:color .2s var(--ui-ease)}
.bottom-nav .nav-side.active svg{filter:drop-shadow(0 5px 9px rgba(14,124,83,.28))}
html[data-device="tablet"] .bottom-nav{
  width:min(calc(100% - 40px),620px)!important;
  height:88px!important;bottom:14px!important;
  border-radius:22px!important;padding:0 16px!important;
}
html[data-device="tablet"] .bottom-nav::before{
  inset:0!important;border-radius:22px!important;
  box-shadow:0 18px 42px -22px rgba(16,34,52,.4)!important;
  -webkit-mask:none!important;mask:none!important;
}

/* ---------- Sheets / modals ---------- */
.sheet-panel{
  border-radius:26px 26px 0 0!important;
  box-shadow:0 -24px 60px -26px rgba(16,34,52,.42)!important;
}
.modal-card{
  border-radius:24px!important;
  box-shadow:0 30px 80px -32px rgba(16,34,52,.48)!important;
}

/* ---------- PWA install offer ---------- */
.pwa-offer{
  bottom:calc(98px + env(safe-area-inset-bottom))!important;
  max-width:440px!important;
  border-radius:18px!important;
  padding:12px 14px!important;
  gap:10px 12px!important;
  border-color:var(--ui-line)!important;
  box-shadow:0 22px 52px -22px rgba(14,35,58,.38)!important;
}
.pwa-offer-text strong{font-size:13px!important}
.pwa-offer-text small{font-size:10.5px!important;line-height:1.8!important;color:#6b7c8e!important}
.pwa-offer-actions button{min-height:40px!important;font-size:11px!important;border-radius:10px!important;padding:0 14px!important;font-weight:800!important}
.pwa-offer-actions .pwa-offer-primary{
  background:linear-gradient(160deg,#16395f,#0b1f3a)!important;
  box-shadow:0 10px 20px -12px rgba(11,31,58,.55)!important;
}

/* ---------- Scrollbars ---------- */
*{scrollbar-width:thin;scrollbar-color:#c7d4e2 transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#c7d4e2;border:3px solid transparent;border-radius:99px;background-clip:content-box}
::-webkit-scrollbar-track{background:transparent}

/* ---------- Motion / accessibility ---------- */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--sec,var(--dbj-green,#0e7c53))!important;
  outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
