/* ENTEBOOMI — shared redesign for every customer page (cart, account, login, orders, wallet,
   coupons, tasks, about, contact, Used / Jobs / Services / Real estate).
   Same palette, type, header, buttons, cards and bottom nav as the new shop page.
   Presentation only. Loaded LAST on each page. */

body{
  --brand:hsl(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%); --brand-dark:hsl(var(--ac-h,243.7),calc(54.5%*var(--ac-sat,1)),41.4%); --brand-light:var(--eb57-token-eef2ff,#eef2ff); --brand-mid:var(--eb57-token-c7d2fe,#c7d2fe);
  --amber:var(--eb57-token-f59e0b,#f59e0b); --amber-light:var(--eb57-token-fef3c7,#fef3c7); --emerald:var(--eb57-token-10b981,#10b981); --rose:var(--eb57-token-f43f5e,#f43f5e);
  --ink:var(--eb57-token-0a0e1a,#0a0e1a); --muted:var(--eb57-token-64748b,#64748b); --muted-light:var(--eb57-token-94a3b8,#94a3b8); --line:var(--eb57-token-e5e9ef,#e5e9ef); --bg-tint:var(--eb57-token-f4f6f8,#f4f6f8);
  /* old green tokens → new palette, so every page rule written with them recolors itself */
  --forest:var(--eb57-token-0a0e1a,#0a0e1a); --leaf:hsl(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%); --leaf-deep:hsl(var(--ac-h,243.7),calc(54.5%*var(--ac-sat,1)),41.4%); --leaf-light:var(--eb57-token-a5b4fc,#a5b4fc); --leaf-pale:var(--eb57-token-eef2ff,#eef2ff);
  --harvest:var(--eb57-token-f59e0b,#f59e0b); --harvest-deep:var(--eb57-token-d97706,#d97706); --cream:var(--eb57-token-ffffff,#ffffff); --cream-deep:var(--eb57-token-e5e9ef,#e5e9ef); --ink-soft:var(--eb57-token-64748b,#64748b);
  --tk-primary:hsl(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%); --tk-deep:hsl(var(--ac-h,243.7),calc(54.5%*var(--ac-sat,1)),41.4%); --tk-dark:hsl(var(--ac-h,243.8),calc(47.1%*var(--ac-sat,1)),20%); --tk-line:var(--eb57-token-e5e9ef,#e5e9ef); --tk-soft:var(--eb57-token-f4f6f8,#f4f6f8);
  --tk-ink:var(--eb57-token-0a0e1a,#0a0e1a); --tk-bg:var(--eb57-token-ffffff,#ffffff); --tk-on-primary:var(--eb57-token-0a0e1a,#0a0e1a);
  --lp-line:var(--eb57-token-e5e9ef,#e5e9ef); --lp-ink:var(--eb57-token-0a0e1a,#0a0e1a); --lp-soft:var(--eb57-token-64748b,#64748b); --lp-green:hsl(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%); --lp-deep:hsl(var(--ac-h,243.7),calc(54.5%*var(--ac-sat,1)),41.4%); --lp-tint:var(--eb57-token-eef2ff,#eef2ff);
  font-family:'Inter',-apple-system,'Segoe UI',sans-serif!important;
  background:var(--eb57-surface-ffffff,#fff)!important; color:var(--ink);
  -webkit-font-smoothing:antialiased}
body h1,body h2,body h3,body h4,body button,body input,body select,body textarea{font-family:'Inter',-apple-system,'Segoe UI',sans-serif!important}
body h1,body h2,body h3{letter-spacing:-.5px;color:var(--ink)}

/* ---------- header ---------- */
body .topbar{
  background:var(--eb57-surface-ffffff-940000,rgba(255,255,255,.94))!important;
  backdrop-filter:saturate(180%) blur(20px)!important;-webkit-backdrop-filter:saturate(180%) blur(20px)!important;
  border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;
  box-shadow:none!important;color:var(--ink)!important}
body .topbar .brand-mark{border-radius:10px!important;box-shadow:0 8px 24px hsla(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%,0.28)!important}
body .topbar .brand-name{color:var(--ink)!important;font-weight:800!important;letter-spacing:-.4px!important}
body .topbar .brand-tagline{color:var(--muted)!important}
body .topbar .topbar-title{color:var(--ink)!important;font-weight:800!important;border-left:1px solid var(--line)!important}
body .topbar .back-link{
  background:var(--eb57-surface-ffffff,#fff)!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;border-radius:999px!important}
body .topbar .back-link:active{transform:scale(.94)}
body .topbar .hm-icon-btn,body .topbar .cart-btn{
  background:var(--eb57-surface-ffffff,#fff)!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;border-radius:999px!important;box-shadow:none!important}
body .topbar .cart-count{background:var(--rose)!important;color:var(--eb57-text-ffffff,#fff)!important;border:2px solid var(--eb57-border-ffffff,#fff)!important}
body .topbar a:not(.brand):not(.back-link):not(.cart-btn):not(.hm-icon-btn){color:var(--ink)}

/* ---------- primary buttons ---------- */
body .checkout-btn:not(:disabled),body .primary-btn:not(:disabled),body .sheet-place-btn:not(:disabled),
body .state-cta,body .confirm-modal-ok,body .addr-save-btn,body .phone-confirm-confirm,
body .coupon-apply-btn,body .free-reward-ok-btn,body .recruit-btn,body .btn:not(.alt):not(.danger):not(.wa):not(:disabled){
  background:var(--brand)!important;color:var(--eb57-text-ffffff,#fff)!important;border-color:var(--brand)!important;
  box-shadow:0 8px 24px hsla(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%,0.28)!important;font-weight:800!important}
body .checkout-btn:not(:disabled):active,body .primary-btn:not(:disabled):active,body .btn:not(:disabled):active{transform:scale(.97)}
body .btn.alt,body .ghost-btn,body .sheet-cancel-btn{
  background:var(--eb57-surface-ffffff,#fff)!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;box-shadow:none!important}
body .btn.danger,body .cancel-order-btn,body .delete-confirm-btn{background:var(--rose)!important;color:var(--eb57-text-ffffff,#fff)!important}

/* ---------- inputs ---------- */
body input[type=text],body input[type=tel],body input[type=email],body input[type=password],body input[type=search],
body input[type=number],body select,body textarea{
  background:var(--bg-tint)!important;border:1.5px solid var(--line)!important;border-radius:14px!important;color:var(--ink)!important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
body input:focus,body select:focus,body textarea:focus{
  background:var(--eb57-surface-ffffff,#fff)!important;border-color:var(--brand)!important;box-shadow:0 0 0 4px hsla(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%,0.1)!important;outline:none!important}

/* ---------- cards & panels ---------- */
body .cart-item,body .order-card,body .acc-panel,body .auth-card,body .state-card,body .sheet,
body .order-modal,body .confirm-modal-box,body .phone-confirm-box,body .coupon-select-box,body .free-reward-box{
  background:var(--eb57-surface-ffffff,#fff)!important;border:1.5px solid var(--line)!important;border-radius:var(--r-lg,20px)!important;box-shadow:none!important}
body .order-card{border-top:1.5px solid var(--line)!important}
body .cart-item{border-radius:14px!important}
body .sheet,body .order-modal{box-shadow:0 20px 50px var(--eb57-shadow-0a0e1a-120000,rgba(10,14,26,.12))!important}
body .order-status,body .order-payment-pill,body .order-coupon-pill,body .badge,body .tag{
  border-radius:999px!important;font-weight:800!important}
body .acc-row{border-color:var(--line)!important}
body .acc-ico{background:var(--brand-light)!important;color:var(--brand)!important;border-radius:12px!important}
body .qty-stepper{background:linear-gradient(135deg,hsl(var(--ac-h,258.3),calc(89.5%*var(--ac-sat,1)),66.3%),hsl(var(--ac-h,259.2),calc(73.3%*var(--ac-sat,1)),48.4%))!important;border-radius:999px!important;color:var(--eb57-text-ffffff,#fff)!important;border:none!important}
body .qty-stepper button,body .qty-stepper span{color:var(--eb57-text-ffffff,#fff)!important;background:transparent!important}

/* ---------- tabs / chips ---------- */
body .chip{background:var(--eb57-surface-ffffff,#fff)!important;border:1.5px solid var(--line)!important;color:var(--ink)!important;border-radius:999px!important;font-weight:700!important}
body .chip.active,body .mode-tab.active,body .auth-tab.active{
  background:linear-gradient(135deg,hsl(var(--ac-h,258.3),calc(89.5%*var(--ac-sat,1)),66.3%),hsl(var(--ac-h,259.2),calc(73.3%*var(--ac-sat,1)),48.4%))!important;color:var(--eb57-text-ffffff,#fff)!important;border-color:var(--ink)!important}

/* ---------- listing boards (Used / Jobs / Services / Real estate) ---------- */
body .page-heading h1{font-weight:800!important;letter-spacing:-.5px!important;color:var(--ink)!important}
body .search-row input{border-radius:999px!important;background-color:var(--bg-tint)!important;border:1.5px solid var(--line)!important;box-shadow:none!important}
body .loc-bar{background:var(--brand-light)!important;border:1.5px solid var(--brand-mid)!important;color:var(--ink)!important;border-radius:var(--r-lg,20px)!important}
body .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
@media(min-width:700px){body .grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}}
body .grid>.card{
  background:var(--eb57-surface-ffffff,#fff)!important;border:1.5px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important;overflow:hidden!important;
  transition:transform .15s ease!important}
body .grid>.card:active{transform:scale(.98)!important}
body .grid>.card .card-img{aspect-ratio:1/1!important;background:var(--bg-tint)!important}
body .grid>.card .card-body{padding:10px 10px 12px!important;gap:3px!important}
body .grid>.card .card-title{font:700 12.5px/1.3 'Inter',sans-serif!important;color:var(--ink)!important;-webkit-line-clamp:1!important}
body .grid>.card .card-price{font:800 15px 'Inter',sans-serif!important;letter-spacing:-.4px!important;color:var(--ink)!important;background:none!important;-webkit-text-fill-color:currentColor!important}
body .grid>.card .card-meta{color:var(--muted)!important;font-size:11px!important}
body .grid>.card .badge,body .grid>.card .tag{background:linear-gradient(135deg,hsl(var(--ac-h,258.3),calc(89.5%*var(--ac-sat,1)),66.3%),hsl(var(--ac-h,259.2),calc(73.3%*var(--ac-sat,1)),48.4%))!important;color:var(--eb57-text-ffffff,#fff)!important;font-size:9.5px!important}

/* ---------- bottom nav ---------- */
@media(max-width:640px){
  body .site-bottomnav{
    background:var(--eb57-surface-ffffff-960000,rgba(255,255,255,.96))!important;
    backdrop-filter:saturate(180%) blur(20px)!important;-webkit-backdrop-filter:saturate(180%) blur(20px)!important;
    border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:0 -4px 20px var(--eb57-shadow-0a0e1a-60000,rgba(10,14,26,.06))!important}
  body .site-bottomnav .bottomnav-link{color:var(--muted-light)!important;font:700 10px 'Inter',sans-serif!important;background:none!important;position:relative}
  body .site-bottomnav .bottomnav-link.active,
  body .site-bottomnav .bottomnav-link[aria-current="page"]{color:var(--brand)!important;background:none!important}
  body .site-bottomnav .bottomnav-link.active::before,
  body .site-bottomnav .bottomnav-link[aria-current="page"]::before{
    content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:20px;height:3px;background:var(--brand);border-radius:0 0 3px 3px}
}
body .site-sidebar{background:var(--eb57-surface-ffffff,#fff)!important;border-right:1px solid var(--line)!important;color:var(--ink)!important}
body .site-continue-cart{background:linear-gradient(135deg,hsl(var(--ac-h,258.3),calc(89.5%*var(--ac-sat,1)),66.3%),hsl(var(--ac-h,259.2),calc(73.3%*var(--ac-sat,1)),48.4%))!important;color:var(--eb57-text-ffffff,#fff)!important}

/* ---------- toast ---------- */
body .toast{background:linear-gradient(135deg,hsl(var(--ac-h,258.3),calc(89.5%*var(--ac-sat,1)),66.3%),hsl(var(--ac-h,259.2),calc(73.3%*var(--ac-sat,1)),48.4%))!important;color:var(--eb57-text-ffffff,#fff)!important;border-radius:14px!important;font-weight:700!important;font-size:13px!important;line-height:1.45!important;box-shadow:0 20px 50px var(--eb57-shadow-0a0e1a-120000,rgba(10,14,26,.12))!important;
  /* fixed + left:50% shrinks the box to half the screen, so long messages wrapped into a tall blob. Size to the text instead, capped to the screen. */
  width:max-content!important;max-width:min(420px,calc(100vw - 32px))!important;box-sizing:border-box!important;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere!important;padding:12px 18px!important}

@media(prefers-reduced-motion:reduce){body *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* leftover green accents */
body .mode-tabs,body .auth-tabs{background:var(--bg-tint)!important}
body .page-heading h1::before{background:var(--brand)!important}


/* =====================================================================
   v2 (2026-11-19) — leftovers + popups, so nothing shows the old look
   ===================================================================== */
html{background:var(--eb57-surface-ffffff,#fff)}
/* old gold-gradient CTAs -> new solid indigo */
body .about-cta a,body .notif-enable-btn,body .send-btn,body .guest-login-btn,body .hero-cta,
body .footer-download-btn,body a.btn:not(.alt),body .ui-btn-primary,body .c-help-primary{
  background:var(--brand)!important;color:var(--eb57-text-ffffff,#fff)!important;border-color:var(--brand)!important;
  box-shadow:0 8px 24px hsla(var(--ac-h,243.4),calc(75.4%*var(--ac-sat,1)),58.6%,0.28)!important;font-weight:800!important}
/* popups / dialogs / sheets / toasts, whichever script builds them */
body .ui-dialog,body .ui-overlay .ui-dialog,body .c-help-box,body .c-help-card,body .modal-box,body .modal-card,
body .popup-card,body .app-update-card,body .pv-box,body .eba-box,body .bank-box{
  background:var(--eb57-surface-ffffff,#fff)!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;
  border-radius:20px!important;box-shadow:0 20px 50px var(--eb57-shadow-0a0e1a-140000,rgba(10,14,26,.14))!important;font-family:'Inter',-apple-system,'Segoe UI',sans-serif!important}
body .ui-overlay,body .modal-backdrop,body .sheet-backdrop,body .confirm-modal,body .phone-confirm{background:var(--eb57-surface-0a0e1a-520000,rgba(10,14,26,.52))!important}
body .ui-btn-secondary,body .c-help-secondary{background:var(--eb57-surface-ffffff,#fff)!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;box-shadow:none!important}
body .ui-toast{background:var(--eb57-surface-ffffff,#fff)!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;border-radius:14px!important;font-family:'Inter',sans-serif!important}
body .ui-dialog-ico.success,body .ui-dialog-ico.info{background:var(--brand-light)!important;color:var(--brand)!important}
/* every popup inherits the page font, never the old serif/Work Sans */
body [class*="ui-"],body [class*="c-help"],body [class*="modal"],body [class*="popup"],body [class*="sheet"],body [class*="dialog"]{font-family:'Inter',-apple-system,'Segoe UI',sans-serif}
/* browser autofill / focus must not paint the old green or the blue box */
input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px var(--bg-tint) inset!important;-webkit-text-fill-color:var(--ink)!important}
