/* ==========================================================================
   YSG Logistics — Customer portal UI (facelift)
   Presentation only. Loaded by includes/customer_shell_top.php and login.php.
   Every rule is scoped under body.ysg-ui so legacy pages are unaffected.
   ========================================================================== */

:root{
  --ui-blue:#1452e6;
  --ui-blue-600:#0d42c4;
  --ui-blue-50:#eaf0ff;
  --ui-blue-100:#dbe5ff;
  --ui-navy:#0b1c4a;
  --ui-navy-2:#122a66;
  --ui-red:#d40a1e;
  --ui-red-50:#fdecee;
  --ui-green:#0f9d58;
  --ui-green-50:#e6f6ee;
  --ui-amber:#d97706;
  --ui-amber-50:#fff4e0;
  --ui-sky-50:#e6f4ff;
  --ui-peach-50:#fff1ea;
  --ui-grey-50:#f1f3f8;
  --ui-bg:#f4f6fb;
  --ui-card:#ffffff;
  --ui-border:#e4e8f1;
  --ui-text:#0e1a3a;
  --ui-muted:#5d6886;
  --ui-faint:#8b94ad;
  --ui-radius:16px;
  --ui-radius-sm:12px;
  --ui-shadow:0 1px 2px rgba(14,26,58,.04),0 8px 24px rgba(14,26,58,.06);
  --ui-shadow-lg:0 20px 50px rgba(11,28,74,.22);
  --ui-side-w:248px;
  --ui-font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

body.ysg-ui{margin:0;background:var(--ui-bg);color:var(--ui-text);font-family:var(--ui-font);
  font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;padding:0}
body.ysg-ui *,body.ysg-ui *::before,body.ysg-ui *::after{box-sizing:border-box}
body.ysg-ui a{color:var(--ui-blue);text-decoration:none}
body.ysg-ui a:hover{text-decoration:none}
body.ysg-ui img{max-width:100%;display:block}
body.ysg-ui h1,body.ysg-ui h2,body.ysg-ui h3,body.ysg-ui h4{margin:0;color:var(--ui-text);letter-spacing:-.02em}
body.ysg-ui p{margin:0}
body.ysg-ui .ico{width:20px;height:20px;flex:0 0 auto;display:inline-block;vertical-align:middle}
body.ysg-ui .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.ysg-ui :focus-visible{outline:3px solid rgba(20,82,230,.45);outline-offset:2px}

/* ---------- Buttons ---------- */
body.ysg-ui .u-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid transparent;border-radius:12px;padding:11px 18px;font:inherit;font-weight:700;
  font-size:14.5px;line-height:1.2;cursor:pointer;white-space:nowrap;
  transition:background .15s ease,box-shadow .15s ease,transform .05s ease,color .15s ease,border-color .15s ease}
body.ysg-ui .u-btn:active{transform:translateY(1px)}
body.ysg-ui .u-btn[disabled]{opacity:.55;cursor:not-allowed;box-shadow:none}
body.ysg-ui .u-btn-primary{background:var(--ui-blue);color:#fff;box-shadow:0 6px 16px rgba(20,82,230,.28)}
body.ysg-ui .u-btn-primary:hover:not([disabled]){background:var(--ui-blue-600);color:#fff}
body.ysg-ui .u-btn-light{background:#fff;color:var(--ui-blue);border-color:var(--ui-border)}
body.ysg-ui .u-btn-light:hover{background:var(--ui-blue-50)}
body.ysg-ui .u-btn-soft{background:var(--ui-blue-50);color:var(--ui-blue)}
body.ysg-ui .u-btn-soft:hover{background:var(--ui-blue-100)}
body.ysg-ui .u-btn-outline{background:#fff;color:var(--ui-blue);border-color:#c9d6f7}
body.ysg-ui .u-btn-outline:hover{background:var(--ui-blue-50)}
body.ysg-ui .u-btn-muted{background:var(--ui-grey-50);color:var(--ui-faint);border-color:var(--ui-border);cursor:default}
/* Legacy class names still toggled by existing page scripts (e.g. Paywithtoken) */
body.ysg-ui .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:12px;
  padding:11px 18px;font:inherit;font-weight:700;font-size:14.5px;line-height:1.2;cursor:pointer;white-space:nowrap}
body.ysg-ui .btn[disabled]{opacity:.55;cursor:not-allowed}
body.ysg-ui .btn-primary{background:var(--ui-blue);color:#fff;box-shadow:0 6px 16px rgba(20,82,230,.25)}
body.ysg-ui .btn-primary:hover:not([disabled]){background:var(--ui-blue-600);color:#fff}
body.ysg-ui .btn-outline{background:#fff;color:var(--ui-blue);border-color:#c9d6f7}
body.ysg-ui .btn-outline:hover{background:var(--ui-blue-50)}
body.ysg-ui .btn-ghost{background:var(--ui-grey-50);color:var(--ui-muted);border-color:var(--ui-border)}
body.ysg-ui .u-btn-sm{padding:7px 12px;font-size:13px;border-radius:10px}
body.ysg-ui .u-btn-lg{padding:15px 22px;font-size:16px;border-radius:14px}
body.ysg-ui .u-btn-block{width:100%}
body.ysg-ui .u-btn .ico{width:18px;height:18px}

/* ---------- Forms ---------- */
body.ysg-ui .u-label{display:block;font-size:13.5px;font-weight:700;color:var(--ui-text);margin:0 0 7px}
body.ysg-ui .u-label .req{color:var(--ui-red);margin-left:2px}
body.ysg-ui .u-input,
body.ysg-ui .u-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.ysg-ui .u-form select,
body.ysg-ui .u-form textarea{width:100%;min-height:46px;border:1px solid var(--ui-border);border-radius:10px;
  background:#fff;color:var(--ui-text);font:inherit;font-size:14.5px;padding:11px 14px;
  transition:border-color .15s ease,box-shadow .15s ease;appearance:none;-webkit-appearance:none}
body.ysg-ui .u-form select{padding-right:40px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
body.ysg-ui .u-form select:disabled{background-color:var(--ui-grey-50);color:var(--ui-faint);cursor:not-allowed}
body.ysg-ui .u-form textarea{min-height:64px;resize:vertical;line-height:1.45}
body.ysg-ui .u-input:focus,
body.ysg-ui .u-form input:focus,body.ysg-ui .u-form select:focus,body.ysg-ui .u-form textarea:focus{
  outline:none;border-color:var(--ui-blue);box-shadow:0 0 0 4px rgba(20,82,230,.12)}
body.ysg-ui .u-form ::placeholder,body.ysg-ui .u-input::placeholder{color:#9aa3bb}
body.ysg-ui .u-field{min-width:0}
body.ysg-ui .u-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
body.ysg-ui .u-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px}
body.ysg-ui .u-stack>*+*{margin-top:14px}

/* ---------- Alerts (flash_render output) ---------- */
body.ysg-ui .alert{display:flex;align-items:flex-start;gap:10px;border-radius:12px;padding:12px 14px;
  margin:0 0 14px;font-size:14px;font-weight:600;border:1px solid}
body.ysg-ui .alert-ok{background:var(--ui-green-50);color:#0b6b3d;border-color:#bfe8d2}
body.ysg-ui .alert-err{background:var(--ui-red-50);color:#a10a19;border-color:#f6c5cb}

/* ---------- Cards ---------- */
body.ysg-ui .u-card{background:var(--ui-card);border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
body.ysg-ui .u-card-pad{padding:22px}
body.ysg-ui .u-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
body.ysg-ui .u-card-title{font-size:18px;font-weight:800}
body.ysg-ui .u-link-arrow{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
body.ysg-ui .u-link-arrow .ico{width:16px;height:16px}
body.ysg-ui .u-icon-tile{width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:0 0 46px}
body.ysg-ui .u-icon-tile .ico{width:22px;height:22px}
body.ysg-ui .t-blue{background:var(--ui-blue-50);color:var(--ui-blue)}
body.ysg-ui .t-red{background:var(--ui-red-50);color:var(--ui-red)}
body.ysg-ui .t-green{background:var(--ui-green-50);color:var(--ui-green)}
body.ysg-ui .t-amber{background:var(--ui-amber-50);color:var(--ui-amber)}
body.ysg-ui .t-solid{background:var(--ui-blue);color:#fff}

/* ---------- Status pills ---------- */
body.ysg-ui .u-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;
  font-size:12.5px;font-weight:700;white-space:nowrap;line-height:1.4}
body.ysg-ui .u-pill .ico{width:14px;height:14px}
body.ysg-ui .p-green{background:var(--ui-green-50);color:#0b7a44}
body.ysg-ui .p-blue{background:var(--ui-blue-50);color:var(--ui-blue)}
body.ysg-ui .p-amber{background:var(--ui-amber-50);color:#b45309}
body.ysg-ui .p-red{background:var(--ui-red-50);color:#c10a1c}
body.ysg-ui .p-grey{background:var(--ui-grey-50);color:var(--ui-muted)}

/* ---------- Tables ---------- */
body.ysg-ui .u-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.ysg-ui .u-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
body.ysg-ui .u-table th{text-align:left;font-size:13px;font-weight:700;color:var(--ui-muted);
  padding:12px 14px;background:#f6f8fc;white-space:nowrap;border-bottom:1px solid var(--ui-border)}
body.ysg-ui .u-table th:first-child{border-top-left-radius:10px}
body.ysg-ui .u-table th:last-child{border-top-right-radius:10px}
body.ysg-ui .u-table td{padding:12px 14px;border-bottom:1px solid #eef1f7;vertical-align:middle;white-space:nowrap}
body.ysg-ui .u-table tr:last-child td{border-bottom:0}
body.ysg-ui .u-table tbody tr:hover td{background:#fafbfe}
body.ysg-ui .u-table .strong{font-weight:800}
body.ysg-ui .u-table .dim{color:var(--ui-muted)}
body.ysg-ui .u-table tr.is-highlight td{background:#e9f8f0}
body.ysg-ui .u-route{display:inline-flex;align-items:center;gap:8px}
body.ysg-ui .u-route .ico{width:16px;height:16px;color:var(--ui-muted)}
body.ysg-ui .u-empty{padding:34px 16px;text-align:center;color:var(--ui-muted)}
body.ysg-ui .u-empty .u-icon-tile{margin:0 auto 10px}

/* ==========================================================================
   App shell
   ========================================================================== */
body.ysg-ui .u-app{display:flex;min-height:100vh}
body.ysg-ui .u-side{position:fixed;inset:0 auto 0 0;width:var(--ui-side-w);display:flex;flex-direction:column;
  background:#fff;border-right:1px solid var(--ui-border);z-index:40;overflow-y:auto}
body.ysg-ui .u-side-logo{display:flex;justify-content:center;padding:26px 20px 18px}
body.ysg-ui .u-side-logo img{height:60px;width:auto}
body.ysg-ui .u-nav{display:flex;flex-direction:column;gap:4px;padding:6px 12px}
body.ysg-ui .u-nav a{position:relative;display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:12px;
  color:#26324f;font-weight:600;font-size:15px;transition:background .15s ease,color .15s ease}
body.ysg-ui .u-nav a .ico{width:21px;height:21px;color:#34405e}
body.ysg-ui .u-nav a:hover{background:var(--ui-grey-50)}
body.ysg-ui .u-nav a.active{background:var(--ui-blue-50);color:var(--ui-blue);font-weight:700}
body.ysg-ui .u-nav a.active .ico{color:var(--ui-blue)}
body.ysg-ui .u-nav a.active::before{content:"";position:absolute;left:-12px;top:8px;bottom:8px;width:4px;border-radius:0 4px 4px 0;background:var(--ui-blue)}
body.ysg-ui .u-side-photo{margin:auto 0 0;position:relative;min-height:150px;background-size:cover;background-position:center}
body.ysg-ui .u-side-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,0) 30%)}
body.ysg-ui .u-side-foot{padding:10px 12px 18px;border-top:1px solid var(--ui-border);background:inherit}
body.ysg-ui .u-user{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--ui-text)}
body.ysg-ui .u-user:hover{background:var(--ui-grey-50)}
body.ysg-ui .u-avatar{width:40px;height:40px;border-radius:50%;flex:0 0 40px;display:flex;align-items:center;justify-content:center;
  background:#e2e8ff;color:var(--ui-blue);font-weight:800;font-size:14px;letter-spacing:.02em}
body.ysg-ui .u-user-name{font-weight:700;font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
body.ysg-ui .u-user-role{font-size:12.5px;color:var(--ui-muted)}
body.ysg-ui .u-user .ico{margin-left:auto;width:16px;height:16px;color:var(--ui-muted)}
body.ysg-ui .u-logout{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:12px;color:#26324f;font-weight:600}
body.ysg-ui .u-logout:hover{background:var(--ui-red-50);color:var(--ui-red)}

/* Dark (navy) sidebar variant */
body.ysg-ui.side-dark .u-side{background:linear-gradient(180deg,var(--ui-navy) 0%,#0d2257 100%);border-right:0}
body.ysg-ui.side-dark .u-nav a,body.ysg-ui.side-dark .u-logout{color:#dfe6ff}
body.ysg-ui.side-dark .u-nav a .ico,body.ysg-ui.side-dark .u-logout .ico{color:#c9d4ff}
body.ysg-ui.side-dark .u-nav a:hover{background:rgba(255,255,255,.07)}
body.ysg-ui.side-dark .u-nav a.active{background:var(--ui-blue);color:#fff;box-shadow:0 8px 20px rgba(20,82,230,.35)}
body.ysg-ui.side-dark .u-nav a.active .ico{color:#fff}
body.ysg-ui.side-dark .u-nav a.active::before{display:none}
body.ysg-ui.side-dark .u-side-logo{border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:10px}
body.ysg-ui.side-dark .u-side-photo::before{background:linear-gradient(180deg,#0d2257 0%,rgba(13,34,87,0) 35%,rgba(13,34,87,0) 70%,#0d2257 100%)}
body.ysg-ui.side-dark .u-side-foot{border-top-color:rgba(255,255,255,.08)}
body.ysg-ui.side-dark .u-user{color:#fff}
body.ysg-ui.side-dark .u-user:hover{background:rgba(255,255,255,.07)}
body.ysg-ui.side-dark .u-user-role,body.ysg-ui.side-dark .u-user .ico{color:#a9b6dd}
body.ysg-ui.side-dark .u-logout:hover{background:rgba(212,10,30,.18);color:#fff}

/* Main column */
body.ysg-ui .u-main{flex:1;min-width:0;margin-left:var(--ui-side-w);display:flex;flex-direction:column;min-height:100vh}
body.ysg-ui .u-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;
  background:rgba(244,246,251,.92);backdrop-filter:saturate(1.4) blur(8px);-webkit-backdrop-filter:saturate(1.4) blur(8px);
  position:sticky;top:0;z-index:30;border-bottom:1px solid transparent}
body.ysg-ui .u-topbar.is-navy{background:var(--ui-navy);color:#fff}
body.ysg-ui .u-topbar.is-navy .u-tagline{color:#e6ecff}
body.ysg-ui .u-topbar.is-navy .u-chip-user{color:#fff}
body.ysg-ui .u-topbar.is-navy .u-chip-user .u-user-role{color:#a9b6dd}
body.ysg-ui .u-topbar.is-navy .u-icon-btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}
body.ysg-ui .u-tagline{font-size:14.5px;line-height:1.35;color:var(--ui-muted);font-weight:500}
body.ysg-ui .u-topbar-right{display:flex;align-items:center;gap:14px;margin-left:auto}
body.ysg-ui .u-icon-btn{width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--ui-border);color:var(--ui-text)}
body.ysg-ui .u-icon-btn:hover{background:var(--ui-blue-50);color:var(--ui-blue)}
body.ysg-ui .u-chip-user{display:flex;align-items:center;gap:10px;color:var(--ui-text);padding:4px 6px;border-radius:12px}
body.ysg-ui .u-chip-user .u-avatar{width:42px;height:42px}
body.ysg-ui .u-searchbar{position:relative;flex:1;max-width:520px}
body.ysg-ui .u-searchbar .ico{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--ui-muted)}
body.ysg-ui .u-searchbar input{width:100%;height:46px;border-radius:999px;border:1px solid var(--ui-border);background:#fff;
  padding:0 18px 0 46px;font:inherit;font-size:14.5px;color:var(--ui-text)}
body.ysg-ui .u-searchbar input:focus{outline:none;border-color:var(--ui-blue);box-shadow:0 0 0 4px rgba(20,82,230,.12)}
body.ysg-ui .u-mobile-brand{display:none}

body.ysg-ui .u-content{flex:1;padding:8px 28px 28px;width:100%;max-width:1480px}
body.ysg-ui .u-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:10px 0 20px}
body.ysg-ui .u-page-head-l{display:flex;align-items:center;gap:16px;min-width:0}
body.ysg-ui .u-page-title{font-size:32px;font-weight:800;line-height:1.1;letter-spacing:-.03em}
body.ysg-ui .u-page-sub{color:var(--ui-muted);font-size:15px;margin-top:6px}
body.ysg-ui .u-page-icon{width:60px;height:60px;border-radius:16px;flex:0 0 60px}
body.ysg-ui .u-page-icon .ico{width:28px;height:28px}

/* Footer */
body.ysg-ui .u-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:14px 28px;border-top:1px solid var(--ui-border);background:#fff;font-size:13px;color:var(--ui-muted)}
body.ysg-ui .u-foot-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.ysg-ui .u-foot-links a{color:var(--ui-blue);font-weight:600}
body.ysg-ui .u-foot-links .sep{color:#c3c9d8;margin:0 6px}
body.ysg-ui .u-legal-line{font-size:13px;color:var(--ui-muted);line-height:1.6}
body.ysg-ui .u-legal-line a,body.ysg-ui a.u-legal{color:var(--ui-blue);font-weight:700;text-decoration:underline;text-underline-offset:2px}

/* Mobile bottom nav */
body.ysg-ui .u-bottom-nav{display:none}

/* ==========================================================================
   Legal popups (Terms / Privacy)
   ========================================================================== */
body.ysg-ui .u-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;
  padding:20px;background:rgba(9,17,40,.55);backdrop-filter:blur(3px)}
body.ysg-ui .u-modal.open{display:flex;animation:uFade .18s ease}
body.ysg-ui .u-modal-sheet{width:min(860px,100%);height:min(86vh,820px);background:#fff;border-radius:18px;
  display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--ui-shadow-lg)}
body.ysg-ui .u-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--ui-border)}
body.ysg-ui .u-modal-head h2{font-size:18px;font-weight:800;display:flex;align-items:center;gap:10px}
body.ysg-ui .u-modal-head h2 .ico{color:var(--ui-blue)}
body.ysg-ui .u-modal-close{width:38px;height:38px;border-radius:10px;border:1px solid var(--ui-border);background:#fff;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;color:var(--ui-text)}
body.ysg-ui .u-modal-close:hover{background:var(--ui-grey-50)}
body.ysg-ui .u-modal-body{flex:1;min-height:0;background:#f8f9fc}
body.ysg-ui .u-modal-body iframe{width:100%;height:100%;border:0;display:block;background:#fff}
body.ysg-ui .u-modal-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--ui-border);font-size:13px;color:var(--ui-muted)}
@keyframes uFade{from{opacity:0}to{opacity:1}}

/* ==========================================================================
   Login
   ========================================================================== */
/* The photo lives on fixed pseudo-elements (not body background) so it never
   stretches with page height and stays put on iOS, where background-attachment:fixed is ignored. */
body.ysg-ui.u-auth{position:relative;isolation:isolate;min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;
  padding:max(40px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(40px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  background:#1b2346}
body.ysg-ui.u-auth::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:#1b2346 url("../img/ui/login-bg.jpg") center center/cover no-repeat}
body.ysg-ui.u-auth::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 60% 75% at 50% 50%,rgba(11,20,48,.38) 0%,rgba(11,20,48,0) 70%),
    linear-gradient(180deg,rgba(9,17,40,.10) 0%,rgba(9,17,40,0) 35%,rgba(9,17,40,0) 65%,rgba(9,17,40,.35) 100%)}
body.ysg-ui .u-auth-card{position:relative;width:100%;max-width:520px;margin:auto;background:#fff;border-radius:26px;
  padding:38px 40px 28px;box-shadow:0 30px 80px rgba(5,10,30,.45),0 0 0 1px rgba(255,255,255,.6) inset}
body.ysg-ui .u-auth-logo{display:flex;justify-content:center;margin-bottom:22px}
body.ysg-ui .u-auth-logo img{height:76px;width:auto}
body.ysg-ui .u-auth-title{text-align:center;font-size:36px;font-weight:800;color:var(--ui-navy);letter-spacing:-.03em;line-height:1.1}
body.ysg-ui .u-auth-sub{text-align:center;color:var(--ui-muted);font-size:16px;margin:10px 0 26px}
body.ysg-ui.u-auth .u-label{font-size:15px;font-weight:700;margin-bottom:8px}
body.ysg-ui .u-input-icon{position:relative}
body.ysg-ui .u-input-icon>.ico{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:#2a3553;pointer-events:none}
body.ysg-ui.u-auth .u-input{min-height:56px;border-radius:14px;background:#eef2fa;border-color:#eef2fa;padding-left:52px;font-size:15.5px}
body.ysg-ui.u-auth .u-input:focus{background:#fff}
body.ysg-ui .u-pw-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;
  color:var(--ui-blue);font:inherit;font-weight:700;font-size:15px;padding:8px 10px;cursor:pointer;border-radius:8px}
body.ysg-ui .u-pw-toggle:hover{background:var(--ui-blue-50)}
body.ysg-ui.u-auth .u-btn-lg{min-height:56px;font-size:17px;border-radius:14px;margin-top:22px}
body.ysg-ui .u-or{display:flex;align-items:center;gap:14px;margin:24px 0 16px;color:var(--ui-faint);font-weight:700;font-size:14px}
body.ysg-ui .u-or::before,body.ysg-ui .u-or::after{content:"";flex:1;height:1px;background:var(--ui-border)}
body.ysg-ui .u-auth-alt{text-align:center;font-size:15.5px;color:var(--ui-text)}
body.ysg-ui .u-auth-alt a{font-weight:700;margin-left:4px}
body.ysg-ui .u-auth-legal{margin-top:20px;padding-top:18px;border-top:1px solid var(--ui-border);text-align:center}
body.ysg-ui .u-auth-copy{margin-top:12px;text-align:center;font-size:13.5px;color:var(--ui-muted)}

/* ==========================================================================
   Home dashboard
   ========================================================================== */
body.ysg-ui .u-hero{position:relative;overflow:hidden;border-radius:20px;margin:6px 0 26px;min-height:340px;
  background:#2b3f78 url("../img/ui/hero-fleet.jpg") no-repeat right bottom/auto 100%;color:#fff;padding:34px 34px 30px;
  display:flex;flex-direction:column;justify-content:flex-end}
body.ysg-ui .u-hero::before{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,#2d417c 0%,#3b5291 30%,rgba(70,90,150,.65) 52%,rgba(70,90,150,0) 72%)}
body.ysg-ui .u-hero>*{position:relative}
body.ysg-ui .u-hero-greet{font-size:20px;font-weight:500;opacity:.95}
body.ysg-ui .u-hero-name{font-size:38px;font-weight:800;color:#fff;letter-spacing:-.03em;line-height:1.15;margin:2px 0 8px}
body.ysg-ui .u-hero-sub{font-size:15.5px;opacity:.92;margin-bottom:22px}
body.ysg-ui .u-wallet-card{display:flex;align-items:center;gap:18px;max-width:560px;padding:20px 22px;border-radius:18px;
  background:linear-gradient(120deg,#1452e6 0%,#1a5cf0 60%,#2a6bff 100%);box-shadow:0 18px 40px rgba(10,40,140,.38)}
body.ysg-ui .u-wallet-card .u-icon-tile{width:60px;height:60px;flex-basis:60px;border-radius:16px;background:rgba(255,255,255,.16);color:#fff}
body.ysg-ui .u-wallet-card .u-icon-tile .ico{width:30px;height:30px}
body.ysg-ui .u-wallet-label{font-size:15px;opacity:.92}
body.ysg-ui .u-wallet-amt{font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.15;color:#fff}
body.ysg-ui .u-wallet-card .u-btn{margin-left:auto}

body.ysg-ui .u-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
body.ysg-ui .u-section-title{font-size:20px;font-weight:800}
body.ysg-ui .u-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:26px}
body.ysg-ui .u-action{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:16px;border:1px solid var(--ui-border);
  color:var(--ui-text);min-height:168px;transition:transform .15s ease,box-shadow .15s ease}
body.ysg-ui .u-action:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow)}
body.ysg-ui .u-action h3{font-size:16.5px;font-weight:800;margin-top:4px}
body.ysg-ui .u-action p{font-size:13.5px;color:var(--ui-muted);line-height:1.45;padding-right:36px}
body.ysg-ui .u-action-go{position:absolute;right:14px;bottom:14px;width:34px;height:34px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;color:var(--ui-text);box-shadow:0 2px 6px rgba(14,26,58,.10)}
body.ysg-ui .u-action-go .ico{width:16px;height:16px}
body.ysg-ui .u-action{position:relative}
body.ysg-ui .a-blue{background:#eef3ff}
body.ysg-ui .a-red{background:#fff0f1}
body.ysg-ui .a-red h3{color:var(--ui-red)}
body.ysg-ui .a-grey{background:#f4f5f8}
body.ysg-ui .a-sky{background:#eaf5ff}
body.ysg-ui .a-peach{background:#fff4ee}
body.ysg-ui .a-grey .u-icon-tile{background:#e6e8ee;color:#a25a12}
body.ysg-ui .a-sky .u-icon-tile{background:#d8ecff;color:#0b6bb8}
body.ysg-ui .a-peach .u-icon-tile{background:#ffe2d6;color:#d4380d}

body.ysg-ui .u-home-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}
body.ysg-ui .u-track-form{display:flex;gap:10px;margin-top:14px}
body.ysg-ui .u-track-form .u-input{flex:1;min-height:48px;background:#f6f8fc}
body.ysg-ui .u-track-form .u-btn{min-width:130px}
body.ysg-ui .u-promo{position:relative;overflow:hidden;margin-top:20px;border-radius:16px;padding:24px;min-height:160px;color:#fff;
  background:#0b1c4a url("../img/ui/hero-fleet.jpg") no-repeat right center/auto 140%}
body.ysg-ui .u-promo::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b1c4a 0%,rgba(11,28,74,.92) 45%,rgba(11,28,74,.2) 100%)}
body.ysg-ui .u-promo>*{position:relative}
body.ysg-ui .u-promo h3{color:#fff;font-size:21px;font-weight:800;line-height:1.25;max-width:300px}
body.ysg-ui .u-promo-feats{display:flex;gap:18px;flex-wrap:wrap;margin-top:18px;font-size:12.5px;font-weight:600}
body.ysg-ui .u-promo-feats span{display:inline-flex;align-items:center;gap:7px}
body.ysg-ui .u-promo-feats .ico{width:18px;height:18px}

/* ==========================================================================
   Shipment
   ========================================================================== */
body.ysg-ui .u-seg{display:inline-flex;background:#fff;border:1px solid var(--ui-border);border-radius:14px;padding:4px;box-shadow:var(--ui-shadow)}
body.ysg-ui .u-seg a{display:inline-flex;align-items:center;gap:10px;padding:11px 22px;border-radius:10px;font-weight:700;color:var(--ui-text);font-size:15px}
body.ysg-ui .u-seg a .ico{width:20px;height:20px}
body.ysg-ui .u-seg a:nth-child(2) .ico{color:var(--ui-red)}
body.ysg-ui .u-seg a:hover{background:var(--ui-grey-50)}
body.ysg-ui .u-seg a.active{background:var(--ui-blue);color:#fff;box-shadow:0 6px 16px rgba(20,82,230,.3)}
body.ysg-ui .u-seg a.active .ico{color:#fff}
body.ysg-ui .u-ship-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:20px;align-items:start}
body.ysg-ui .u-ship-side{position:sticky;top:90px}
body.ysg-ui .u-sec{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px;padding:22px}
body.ysg-ui .u-sec+.u-sec{margin-top:16px}
body.ysg-ui .u-sec .u-icon-tile{width:52px;height:52px;flex-basis:52px;border-radius:14px}
body.ysg-ui .u-sec-title{font-size:18px;font-weight:800}
body.ysg-ui .u-sec-sub{font-size:13.5px;color:var(--ui-muted);margin:2px 0 16px}
body.ysg-ui .u-sec-body>*+*{margin-top:14px}
body.ysg-ui .u-mode-note{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;background:var(--ui-blue-50);color:#1b3a8c;font-size:14px;margin-bottom:16px}
body.ysg-ui .u-mode-note.is-express{background:var(--ui-red-50);color:#8f0d1b}
body.ysg-ui .u-mode-note .ico{width:18px;height:18px}
body.ysg-ui .u-quote{margin-top:16px;border-radius:16px;padding:20px;color:#fff;
  background:linear-gradient(140deg,#0b2a8a 0%,#0e3fb8 55%,#1452e6 100%);box-shadow:0 16px 36px rgba(11,42,138,.32)}
body.ysg-ui .u-quote-top{display:flex;align-items:center;gap:14px}
body.ysg-ui .u-quote-top .u-icon-tile{width:54px;height:54px;flex-basis:54px;border-radius:14px;background:rgba(255,255,255,.14);color:#fff}
body.ysg-ui .u-quote-label{font-size:14px;opacity:.88}
body.ysg-ui .u-quote .quote-total{font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.15;color:#fff}
body.ysg-ui .u-quote #quoteBreakdown{font-size:12px;color:rgba(255,255,255,.72);margin-top:12px;line-height:1.5;word-break:break-word}
body.ysg-ui .u-quote .quote-lines{border-top:1px dashed rgba(255,255,255,.3);margin-top:14px;padding-top:6px}
body.ysg-ui .u-quote .quote-lines:empty{display:none}
body.ysg-ui .u-quote .quote-line{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:14px;font-weight:600}
body.ysg-ui .u-quote .quote-line>div:last-child{font-weight:800;white-space:nowrap}
body.ysg-ui .u-quote .quote-line span{color:rgba(255,255,255,.6);font-weight:500;font-size:12.5px}
body.ysg-ui .u-quote .quote-line.total{border-top:1px solid rgba(255,255,255,.25);margin-top:6px;padding-top:12px;font-size:16px;font-weight:800}
body.ysg-ui .u-quote .chip{display:inline-flex;margin-top:12px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12.5px;font-weight:700}
body.ysg-ui .u-agree{display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:14px 16px;border-radius:12px;background:#f2f5fd;border:1px solid #e3e9f8;cursor:pointer}
body.ysg-ui .u-agree input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--ui-blue);flex:0 0 auto;cursor:pointer}
body.ysg-ui .u-agree-text{font-weight:600;font-size:14.5px}
body.ysg-ui .u-agree-help{font-size:12.5px;color:var(--ui-muted);margin-top:2px}
body.ysg-ui .u-ship-side .u-legal-line{margin-top:14px}
body.ysg-ui .u-ship-actions{display:flex;flex-direction:column;gap:12px;margin-top:18px}
body.ysg-ui .u-intl{display:flex;align-items:center;gap:16px;padding:18px 20px;margin-bottom:18px;border-radius:16px;
  background:linear-gradient(135deg,#fff3f4,#fff8f1);border:1px solid #f6c9ce}
body.ysg-ui .u-intl .u-icon-tile{background:#fde3e6;color:var(--ui-red)}
body.ysg-ui .u-intl-title{font-weight:800;font-size:16px}
body.ysg-ui .u-intl-sub{font-size:14px;color:var(--ui-muted)}
body.ysg-ui .form-locked{position:relative;opacity:.55;filter:grayscale(.35)}
body.ysg-ui .form-locked::after{content:"";position:absolute;inset:0;cursor:not-allowed}
body.ysg-ui .form-locked *{pointer-events:none !important;user-select:none}
body.ysg-ui .u-amount-input{font-weight:800}

/* ==========================================================================
   Paybills
   ========================================================================== */
body.ysg-ui .u-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
body.ysg-ui .u-stat{display:flex;align-items:center;gap:16px;padding:18px 18px;color:var(--ui-text);cursor:pointer;
  border:1px solid var(--ui-border);background:#fff;border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);text-align:left;font:inherit}
body.ysg-ui .u-stat:hover{border-color:#c9d6f7}
body.ysg-ui .u-stat.is-active{border-color:var(--ui-blue);box-shadow:0 0 0 3px rgba(20,82,230,.12)}
body.ysg-ui .u-stat .u-icon-tile{width:56px;height:56px;flex-basis:56px;border-radius:14px}
body.ysg-ui .u-stat .u-icon-tile .ico{width:26px;height:26px}
body.ysg-ui .u-stat-label{font-size:14px;color:var(--ui-muted)}
body.ysg-ui .u-stat-val{font-size:22px;font-weight:800;line-height:1.2}
body.ysg-ui .u-stat-go{margin-left:auto;width:34px;height:34px;border-radius:50%;border:1px solid var(--ui-border);display:flex;align-items:center;justify-content:center;color:var(--ui-text);flex:0 0 34px}
body.ysg-ui .u-stat-go .ico{width:16px;height:16px}
body.ysg-ui .u-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;margin-bottom:18px}
body.ysg-ui .u-filters select,body.ysg-ui .u-filters .u-input{min-height:44px;width:auto}
body.ysg-ui .u-filters .grow{flex:1;min-width:200px;max-width:360px}
body.ysg-ui .u-filters .spacer{flex:1}
body.ysg-ui .u-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 4px 2px;font-size:14px;color:var(--ui-muted)}
body.ysg-ui .u-pages{display:flex;gap:8px}
body.ysg-ui .u-pages button{min-width:40px;height:40px;border-radius:10px;border:1px solid var(--ui-border);background:#fff;font:inherit;font-weight:700;color:var(--ui-text);cursor:pointer}
body.ysg-ui .u-pages button.active{background:var(--ui-blue);border-color:var(--ui-blue);color:#fff}
body.ysg-ui .u-pages button:disabled{opacity:.45;cursor:not-allowed}
body.ysg-ui .u-row-actions{display:flex;align-items:center;gap:8px}
body.ysg-ui .u-row-actions form{margin:0;display:inline}

/* ==========================================================================
   Wallet
   ========================================================================== */
body.ysg-ui .u-wallet-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;align-items:stretch;margin-bottom:20px}
body.ysg-ui .u-balance{position:relative;overflow:hidden;display:flex;align-items:center;gap:26px;padding:30px;border-radius:20px;color:#fff;
  background:radial-gradient(circle at 85% 80%,rgba(255,255,255,.12) 0,rgba(255,255,255,0) 40%),linear-gradient(125deg,#0f46d6 0%,#1452e6 55%,#2b6bff 100%);
  box-shadow:0 18px 40px rgba(20,82,230,.3)}
body.ysg-ui .u-balance .u-icon-tile{width:92px;height:92px;flex-basis:92px;border-radius:20px;background:rgba(255,255,255,.14);color:#fff}
body.ysg-ui .u-balance .u-icon-tile .ico{width:42px;height:42px}
body.ysg-ui .u-balance-label{font-size:17px;opacity:.95}
body.ysg-ui .u-balance-amt{font-size:42px;font-weight:800;letter-spacing:-.03em;line-height:1.15;margin:2px 0 8px;color:#fff}
body.ysg-ui .u-balance-note{font-size:14.5px;opacity:.88;max-width:440px}
body.ysg-ui .u-balance-eye{position:absolute;top:18px;right:18px;width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.18);color:#fff;display:flex;align-items:center;justify-content:center}
body.ysg-ui .u-balance-eye:hover{background:rgba(255,255,255,.28)}
body.ysg-ui .u-fund-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px}
body.ysg-ui .u-fund-head .u-icon-tile{width:42px;height:42px;flex-basis:42px;border-radius:10px}
body.ysg-ui .u-fund-title{font-size:18px;font-weight:800}
body.ysg-ui .u-fund-sub{font-size:13.5px;color:var(--ui-muted)}
body.ysg-ui .u-naira{position:relative}
body.ysg-ui .u-naira::before{content:"\20A6";position:absolute;left:0;top:0;bottom:0;width:46px;display:flex;align-items:center;justify-content:center;
  font-weight:700;color:var(--ui-muted);border-right:1px solid var(--ui-border)}
body.ysg-ui .u-naira input{padding-left:60px !important;min-height:50px !important}
body.ysg-ui .u-hint{font-size:13px;color:var(--ui-muted);text-align:center;margin-top:12px}
body.ysg-ui .u-paytabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
body.ysg-ui .u-paybox{border:1px solid var(--ui-border);border-radius:14px;padding:16px;background:#fafbfe}
body.ysg-ui .u-paybox h4{font-size:15.5px;font-weight:800;margin-bottom:6px}
body.ysg-ui .u-kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin-top:10px;font-size:14.5px}
body.ysg-ui .u-kv dt{color:var(--ui-muted)}
body.ysg-ui .u-kv dd{margin:0;font-weight:700}
body.ysg-ui .u-muted{color:var(--ui-muted);font-size:14px}
body.ysg-ui .u-opt-list{margin:10px 0 0;padding-left:18px;font-size:14px;color:var(--ui-muted)}
body.ysg-ui .u-opt-list li{margin:4px 0}
body.ysg-ui .u-opt-list b{color:var(--ui-text)}
body.ysg-ui .u-amt-pill{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:12px;background:var(--ui-blue-50)}
body.ysg-ui .u-amt-pill strong{font-size:20px;font-weight:800;color:var(--ui-blue)}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1280px){
  body.ysg-ui .u-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.ysg-ui .u-ship-grid{grid-template-columns:minmax(0,1fr) 360px}
}
@media (max-width:1100px){
  body.ysg-ui .u-home-grid,body.ysg-ui .u-wallet-grid{grid-template-columns:minmax(0,1fr)}
  body.ysg-ui .u-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ysg-ui .u-ship-grid{grid-template-columns:minmax(0,1fr)}
  body.ysg-ui .u-ship-side{position:static}
}
@media (max-width:1023px){
  body.ysg-ui .u-side{display:none}
  body.ysg-ui .u-main{margin-left:0}
  body.ysg-ui .u-mobile-brand{display:flex;align-items:center}
  body.ysg-ui .u-mobile-brand img{height:36px;width:auto}
  body.ysg-ui .u-topbar.is-navy .u-mobile-brand img{filter:brightness(0) invert(1)}
  body.ysg-ui .u-tagline,body.ysg-ui .u-topbar .u-searchbar{display:none}
  body.ysg-ui .u-topbar{padding:12px 16px}
  body.ysg-ui .u-content{padding:6px 16px calc(96px + env(safe-area-inset-bottom))}
  body.ysg-ui .u-foot{padding:14px 16px calc(84px + env(safe-area-inset-bottom));justify-content:center;text-align:center}
  body.ysg-ui .u-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid var(--ui-border);
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px rgba(14,26,58,.06)}
  body.ysg-ui .u-bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;border-radius:12px;
    color:var(--ui-muted);font-size:11.5px;font-weight:700}
  body.ysg-ui .u-bottom-nav a .ico{width:22px;height:22px}
  body.ysg-ui .u-bottom-nav a.active{background:var(--ui-blue-50);color:var(--ui-blue)}
}
@media (max-width:760px){
  body.ysg-ui .u-page-title{font-size:26px}
  body.ysg-ui .u-page-icon{width:50px;height:50px;flex-basis:50px}
  /* --- Home on phones: compact hero so all Quick Actions fit the first screen --- */
  body.ysg-ui .u-hero{padding:16px;min-height:0;margin:2px 0 18px;border-radius:18px;
    background-size:cover;background-position:62% 40%}
  body.ysg-ui .u-hero::before{background:linear-gradient(100deg,rgba(29,45,96,.94) 0%,rgba(37,55,112,.82) 55%,rgba(45,65,124,.55) 100%)}
  body.ysg-ui .u-hero-greet{font-size:13.5px;opacity:.85}
  body.ysg-ui .u-hero-name{font-size:21px;margin:0 0 12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.ysg-ui .u-hero-sub{display:none}
  body.ysg-ui .u-wallet-card{gap:12px;padding:12px 12px 12px 14px;border-radius:14px;box-shadow:0 10px 24px rgba(10,40,140,.32)}
  body.ysg-ui .u-wallet-card .u-icon-tile{width:42px;height:42px;flex-basis:42px;border-radius:12px}
  body.ysg-ui .u-wallet-card .u-icon-tile .ico{width:22px;height:22px}
  body.ysg-ui .u-wallet-card>div{min-width:0}
  body.ysg-ui .u-wallet-label{font-size:12.5px}
  body.ysg-ui .u-wallet-amt{font-size:clamp(17px,5.4vw,21px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.ysg-ui .u-hide-sm{display:none}
  body.ysg-ui .u-wallet-card .u-btn{margin-left:auto;padding:9px 12px;font-size:13px;border-radius:10px;flex:0 0 auto}
  body.ysg-ui .u-wallet-card .u-btn .ico{width:16px;height:16px}

  body.ysg-ui .u-section-head{margin-bottom:10px}
  body.ysg-ui .u-section-title{font-size:17px}
  body.ysg-ui .u-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}
  body.ysg-ui .u-action{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:2px;
    align-items:center;min-height:0;padding:12px;border-radius:14px}
  body.ysg-ui .u-action .u-icon-tile{grid-row:1 / span 2;width:40px;height:40px;flex-basis:40px;border-radius:11px}
  body.ysg-ui .u-action .u-icon-tile .ico{width:20px;height:20px}
  body.ysg-ui .u-action h3{font-size:14px;line-height:1.25;margin:0;align-self:end}
  body.ysg-ui .u-action p{font-size:11.5px;line-height:1.35;padding-right:0;align-self:start;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body.ysg-ui .u-action:last-child:nth-child(odd){grid-column:1 / -1}
  body.ysg-ui .u-action-go{display:none}
  body.ysg-ui .u-action:hover{transform:none}
  /* Narrow phones: titles only (cleaner than truncated descriptions) */
  @media (max-width:480px){
    body.ysg-ui .u-action{min-height:64px}
    body.ysg-ui .u-action p{display:none}
    body.ysg-ui .u-action h3{grid-row:1 / span 2;align-self:center;font-size:13.5px}
  }

  /* Slimmer top bar on phones */
  body.ysg-ui .u-topbar{padding:8px 16px}
  body.ysg-ui .u-mobile-brand img{height:32px}
  body.ysg-ui .u-topbar-right{gap:10px}
  body.ysg-ui .u-icon-btn{width:38px;height:38px;border-radius:11px}
  body.ysg-ui .u-icon-btn .ico{width:19px;height:19px}
  body.ysg-ui .u-chip-user{padding:0}
  body.ysg-ui .u-chip-user .u-avatar{width:38px;height:38px;flex-basis:38px;font-size:13px}
  body.ysg-ui .u-grid-2,body.ysg-ui .u-grid-3{grid-template-columns:1fr}
  body.ysg-ui .u-sec{grid-template-columns:1fr;gap:10px;padding:18px}
  body.ysg-ui .u-sec .u-icon-tile{width:44px;height:44px;flex-basis:44px}
  body.ysg-ui .u-seg{display:flex;width:100%}
  body.ysg-ui .u-seg a{flex:1;justify-content:center;padding:10px 6px;font-size:13.5px;gap:6px}
  body.ysg-ui .u-stats{grid-template-columns:1fr 1fr;gap:10px}
  body.ysg-ui .u-stat{padding:14px;gap:10px;min-width:0}
  body.ysg-ui .u-stat>span:nth-child(2){min-width:0}
  body.ysg-ui .u-stat-val{font-size:17px;overflow-wrap:anywhere}
  body.ysg-ui .u-stat:last-child{grid-column:1/-1}
  body.ysg-ui .u-stat .u-icon-tile{width:42px;height:42px;flex-basis:42px}
  body.ysg-ui .u-stat-go{display:none}
  body.ysg-ui .u-balance{flex-direction:column;align-items:flex-start;gap:14px;padding:22px}
  body.ysg-ui .u-balance .u-icon-tile{width:60px;height:60px;flex-basis:60px}
  body.ysg-ui .u-balance-amt{font-size:32px}
  body.ysg-ui .u-track-form{flex-direction:column}
  body.ysg-ui .u-filters .grow{max-width:none}
  body.ysg-ui .u-filters>*{flex:1 1 100%}
  body.ysg-ui .u-filters .spacer{display:none}
  body.ysg-ui .u-card-pad{padding:16px}
}
@media (max-width:640px){
  body.ysg-ui.u-auth{padding:20px max(14px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  body.ysg-ui .u-auth-card{padding:28px 20px 22px;border-radius:22px}
  body.ysg-ui .u-auth-title{font-size:28px}
  body.ysg-ui .u-auth-sub{font-size:14.5px;margin-bottom:20px}
  body.ysg-ui .u-auth-logo{margin-bottom:16px}
  body.ysg-ui .u-auth-logo img{height:60px}
  body.ysg-ui.u-auth .u-input{min-height:52px;font-size:16px} /* 16px stops iOS zoom-on-focus */
  body.ysg-ui.u-auth .u-btn-lg{min-height:52px}
  body.ysg-ui .u-or{margin:20px 0 14px}
  body.ysg-ui .u-auth-alt{font-size:14.5px}
  body.ysg-ui .u-chip-user .u-user-txt{display:none}
}
/* Portrait phones & tablets: switch to the single-truck photo, which suits tall screens */
@media (orientation:portrait) and (max-width:1024px){
  body.ysg-ui.u-auth::before{background-image:url("../img/ui/login-mobile.jpg");background-position:center 40%}
  body.ysg-ui.u-auth::after{background:linear-gradient(180deg,rgba(9,17,40,.30) 0%,rgba(9,17,40,.45) 100%)}
}
/* Very small phones */
@media (max-width:360px){
  body.ysg-ui .u-auth-card{padding:24px 16px 18px;border-radius:18px}
  body.ysg-ui .u-auth-title{font-size:25px}
  body.ysg-ui .u-legal-line{font-size:12.5px}
}
/* Short screens (landscape phones/tablets, 768px-tall laptops): compact card that fits without scrolling */
@media (max-height:820px){
  body.ysg-ui.u-auth{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
  body.ysg-ui .u-auth-card{padding:22px 36px 16px}
  body.ysg-ui .u-auth-logo{margin-bottom:10px}
  body.ysg-ui .u-auth-logo img{height:48px}
  body.ysg-ui .u-auth-title{font-size:27px}
  body.ysg-ui .u-auth-sub{margin:6px 0 14px;font-size:15px}
  body.ysg-ui.u-auth .u-stack>*+*{margin-top:10px}
  body.ysg-ui.u-auth .u-label{margin-bottom:6px}
  body.ysg-ui.u-auth .u-input{min-height:50px}
  body.ysg-ui.u-auth .u-btn-lg{min-height:50px;margin-top:16px}
  body.ysg-ui .u-or{margin:14px 0 10px}
  body.ysg-ui .u-auth-legal{margin-top:12px;padding-top:10px}
  body.ysg-ui .u-auth-copy{margin-top:6px}
}
@media (max-height:820px) and (max-width:640px){
  body.ysg-ui .u-auth-card{padding:22px 18px 16px}
}
@media print{
  body.ysg-ui .u-side,body.ysg-ui .u-bottom-nav,body.ysg-ui .u-topbar{display:none}
  body.ysg-ui .u-main{margin:0}
}

/* ==========================================================================
   Track / Estimate / Account / Help / Terms / Privacy
   ========================================================================== */
body.ysg-ui .u-narrow{max-width:1100px}
body.ysg-ui .u-track-hero{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
body.ysg-ui .u-track-hero .u-input{flex:1;min-width:220px;min-height:52px;background:var(--ui-bg)}
body.ysg-ui .u-track-hero .u-btn{min-height:52px;min-width:140px}
body.ysg-ui .u-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.ysg-ui .u-meta-k{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ui-faint)}
body.ysg-ui .u-meta-v{font-size:16px;font-weight:800;margin-top:3px;word-break:break-word}
body.ysg-ui .u-meta-v.big{font-size:20px;color:var(--ui-blue)}
body.ysg-ui .u-timeline{list-style:none;margin:0;padding:0}
body.ysg-ui .u-timeline li{position:relative;padding:0 0 22px 34px}
body.ysg-ui .u-timeline li::before{content:"";position:absolute;left:8px;top:22px;bottom:0;width:2px;background:var(--ui-border)}
body.ysg-ui .u-timeline li:last-child::before{display:none}
body.ysg-ui .u-timeline li::after{content:"";position:absolute;left:1px;top:4px;width:16px;height:16px;border-radius:50%;background:var(--ui-card);border:3px solid #c9d6f7}
body.ysg-ui .u-timeline li:last-child::after{border-color:var(--ui-blue);background:var(--ui-blue);box-shadow:0 0 0 5px rgba(20,82,230,.15)}
body.ysg-ui .u-tl-title{font-weight:800;text-transform:capitalize}
body.ysg-ui .u-tl-meta{font-size:13px;color:var(--ui-muted);display:flex;gap:14px;flex-wrap:wrap;margin-top:2px}
body.ysg-ui .u-tl-meta span{display:inline-flex;align-items:center;gap:5px}
body.ysg-ui .u-tl-meta .ico{width:14px;height:14px}
body.ysg-ui .u-tl-note{font-size:14px;color:var(--ui-muted);margin-top:6px}

body.ysg-ui .u-est-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
body.ysg-ui .u-est-grid .u-quote{margin-top:0;position:sticky;top:90px}
body.ysg-ui #estSummary{font-size:12px;color:rgba(255,255,255,.72);margin-top:12px;line-height:1.5;word-break:break-word}
body.ysg-ui #estSummary:empty{display:none}
body.ysg-ui #estLines .quote-box{border-top:1px dashed rgba(255,255,255,.3);margin-top:14px;padding-top:6px}
body.ysg-ui #estLines .quote-line{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:13.5px;font-weight:600}
body.ysg-ui #estLines .quote-line>div:last-child{font-weight:800;white-space:nowrap}
body.ysg-ui #estLines .quote-total{display:flex;justify-content:space-between;gap:10px;border-top:1px solid rgba(255,255,255,.25);
  margin-top:6px;padding-top:12px;font-size:16px;font-weight:800;letter-spacing:0}

body.ysg-ui .u-profile{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
body.ysg-ui .u-profile .u-avatar{width:72px;height:72px;flex-basis:72px;font-size:24px}
body.ysg-ui .u-profile-name{font-size:22px;font-weight:800}
body.ysg-ui .u-profile-sub{color:var(--ui-muted);font-size:14.5px;display:flex;gap:16px;flex-wrap:wrap;margin-top:4px}
body.ysg-ui .u-profile-sub span{display:inline-flex;align-items:center;gap:6px}
body.ysg-ui .u-profile-sub .ico{width:16px;height:16px}
body.ysg-ui .u-list{display:flex;flex-direction:column;padding:8px}
body.ysg-ui .u-list>a,body.ysg-ui .u-list>button{display:flex;align-items:center;gap:14px;width:100%;padding:14px;border-radius:12px;
  border:0;background:transparent;font:inherit;color:var(--ui-text);text-align:left;cursor:pointer}
body.ysg-ui .u-list>a:hover,body.ysg-ui .u-list>button:hover{background:var(--ui-grey-50)}
body.ysg-ui .u-list .u-icon-tile{width:42px;height:42px;flex-basis:42px;border-radius:11px}
body.ysg-ui .u-list .u-icon-tile .ico{width:20px;height:20px}
body.ysg-ui .u-list-t{font-weight:700;display:block}
body.ysg-ui .u-list-s{font-size:13px;color:var(--ui-muted);display:block}
body.ysg-ui .u-list-end{margin-left:auto;color:var(--ui-muted);font-size:13.5px;display:flex;align-items:center;gap:6px}
body.ysg-ui .u-list-end .ico{width:18px;height:18px}
body.ysg-ui .u-list .is-danger .u-list-t{color:var(--ui-red)}

body.ysg-ui .u-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body.ysg-ui .u-contact{display:flex;flex-direction:column;gap:14px;margin-top:6px}
body.ysg-ui .u-contact>div{display:flex;gap:12px;align-items:flex-start;font-size:14.5px}
body.ysg-ui .u-contact .ico{color:var(--ui-blue);margin-top:2px}
body.ysg-ui .u-contact a{font-weight:700}
body.ysg-ui .u-tips{margin:8px 0 0;padding-left:20px;color:var(--ui-muted);font-size:14.5px;line-height:1.75}
body.ysg-ui .u-faq{border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-card)}
body.ysg-ui .u-faq+.u-faq{margin-top:10px}
body.ysg-ui .u-faq summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 16px;cursor:pointer;font-weight:700}
body.ysg-ui .u-faq summary::-webkit-details-marker{display:none}
body.ysg-ui .u-faq summary .u-pill{margin-left:auto}
body.ysg-ui .u-faq summary>.ico{width:18px;height:18px;color:var(--ui-muted);transition:transform .2s ease}
body.ysg-ui .u-faq[open] summary>.ico{transform:rotate(180deg)}
body.ysg-ui .u-faq-body{padding:0 16px 16px;color:var(--ui-muted);font-size:14.5px;line-height:1.65}

body.ysg-ui .u-doc{padding:34px 40px;line-height:1.75;max-width:920px}
body.ysg-ui .u-doc h3{font-size:22px;font-weight:800;margin:14px 0 10px}
body.ysg-ui .u-doc h4{font-size:16.5px;font-weight:800;margin:26px 0 6px;padding-top:18px;border-top:1px solid var(--ui-border)}
body.ysg-ui .u-doc .muted{color:var(--ui-muted);font-size:15px}
body.ysg-ui .u-doc p{margin:0 0 10px}
body.ysg-ui .u-doc ul{padding-left:20px;margin:6px 0 10px}
body.ysg-ui .u-doc li{margin:4px 0}
body.ysg-ui .u-doc b{color:var(--ui-text)}
body.ysg-ui .u-doc>.muted:first-child{display:inline-flex;padding:5px 12px;border-radius:999px;background:var(--ui-blue-50);color:var(--ui-blue);font-size:13px}

@media (max-width:1100px){
  body.ysg-ui .u-est-grid,body.ysg-ui .u-two{grid-template-columns:minmax(0,1fr)}
  body.ysg-ui .u-est-grid .u-quote{position:static}
}
@media (max-width:760px){
  body.ysg-ui .u-meta{grid-template-columns:1fr}
  body.ysg-ui .u-doc{padding:22px 18px}
  body.ysg-ui .u-track-hero .u-btn{width:100%}
}

/* ==========================================================================
   Dark theme (Account → Change Theme; stored in localStorage as ysg_theme)
   ========================================================================== */
html[data-theme="dark"]{
  --ui-bg:#0a1020;--ui-card:#121a2e;--ui-border:#223050;--ui-text:#e8edf8;--ui-muted:#9aa7c4;--ui-faint:#7584a6;
  --ui-grey-50:#18223a;--ui-blue-50:#16264d;--ui-blue-100:#1c3166;--ui-red-50:#3a1520;--ui-green-50:#10301f;--ui-amber-50:#33260f;
}
html[data-theme="dark"] body.ysg-ui.side-light .u-side{background:#0d1426;border-right-color:var(--ui-border)}
html[data-theme="dark"] body.ysg-ui.side-light .u-nav a,html[data-theme="dark"] body.ysg-ui.side-light .u-logout{color:#cfd8ee}
html[data-theme="dark"] body.ysg-ui.side-light .u-nav a .ico{color:#aab7d6}
html[data-theme="dark"] body.ysg-ui.side-light .u-nav a.active{color:#fff}
html[data-theme="dark"] body.ysg-ui.side-light .u-nav a.active .ico{color:#8fb0ff}
html[data-theme="dark"] body.ysg-ui.side-light .u-side-photo::before{background:linear-gradient(180deg,#0d1426 0%,rgba(13,20,38,0) 35%)}
html[data-theme="dark"] body.ysg-ui .u-topbar:not(.is-navy){background:rgba(10,16,32,.9)}
html[data-theme="dark"] body.ysg-ui .u-icon-btn,
html[data-theme="dark"] body.ysg-ui .u-searchbar input,
html[data-theme="dark"] body.ysg-ui .u-input,
html[data-theme="dark"] body.ysg-ui .u-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
html[data-theme="dark"] body.ysg-ui .u-form select,
html[data-theme="dark"] body.ysg-ui .u-form textarea,
html[data-theme="dark"] body.ysg-ui .u-seg,
html[data-theme="dark"] body.ysg-ui .u-stat,
html[data-theme="dark"] body.ysg-ui .u-pages button:not(.active),
html[data-theme="dark"] body.ysg-ui .u-btn-light,
html[data-theme="dark"] body.ysg-ui .u-btn-outline,
html[data-theme="dark"] body.ysg-ui .btn-outline,
html[data-theme="dark"] body.ysg-ui .u-foot,
html[data-theme="dark"] body.ysg-ui .u-bottom-nav,
html[data-theme="dark"] body.ysg-ui .u-modal-sheet,
html[data-theme="dark"] body.ysg-ui .u-modal-close,
html[data-theme="dark"] body.ysg-ui .u-action-go{background-color:var(--ui-card);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="dark"] body.ysg-ui .u-form select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d4ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")}
html[data-theme="dark"] body.ysg-ui .u-btn-light,html[data-theme="dark"] body.ysg-ui .u-btn-outline,html[data-theme="dark"] body.ysg-ui .btn-outline{color:#8fb0ff}
html[data-theme="dark"] body.ysg-ui .u-table th{background:#16203a}
html[data-theme="dark"] body.ysg-ui .u-table td{border-bottom-color:var(--ui-border)}
html[data-theme="dark"] body.ysg-ui .u-table tbody tr:hover td{background:#16203a}
html[data-theme="dark"] body.ysg-ui .u-table tr.is-highlight td{background:#10301f}
html[data-theme="dark"] body.ysg-ui .a-blue,html[data-theme="dark"] body.ysg-ui .a-red,html[data-theme="dark"] body.ysg-ui .a-grey,
html[data-theme="dark"] body.ysg-ui .a-sky,html[data-theme="dark"] body.ysg-ui .a-peach{background:var(--ui-card)}
html[data-theme="dark"] body.ysg-ui .a-red h3{color:#ff6b7a}
html[data-theme="dark"] body.ysg-ui .u-agree,html[data-theme="dark"] body.ysg-ui .u-paybox{background:#16203a;border-color:var(--ui-border)}
html[data-theme="dark"] body.ysg-ui .u-mode-note{color:#bcd0ff}
html[data-theme="dark"] body.ysg-ui .u-mode-note.is-express{color:#ffb3bb}
html[data-theme="dark"] body.ysg-ui .u-intl{background:#2a1520;border-color:#5a2230}
html[data-theme="dark"] body.ysg-ui .u-track-form .u-input{background:#0f172b}
html[data-theme="dark"] body.ysg-ui .u-legal-line a,html[data-theme="dark"] body.ysg-ui .u-foot-links a,
html[data-theme="dark"] body.ysg-ui .u-link-arrow,html[data-theme="dark"] body.ysg-ui .u-contact a,html[data-theme="dark"] body.ysg-ui .u-doc a{color:#8fb0ff}
html[data-theme="dark"] body.ysg-ui .alert-ok{color:#8be0b2;border-color:#1d5a3a}
html[data-theme="dark"] body.ysg-ui .alert-err{color:#ff9aa5;border-color:#5a2230}
