/* Painel do cliente — tema claro (área logada) */
#user-shell{
  --bg:#F5F7FB; --surface:#FFFFFF; --sidebar:#FFFFFF;
  --ink:#0E1626; --ink-soft:#4A5568; --muted:#94A0B4; --line:#EBEEF4;
  --primary:#2563EB; --primary-d:#1D4ED8; --primary-soft:#EEF3FF;
  --violet:#7C3AED; --teal:#0EA5A4; --orange:#F97316;
  --shadow-card:0 1px 2px rgba(16,24,40,.04),0 8px 24px -12px rgba(16,24,40,.10);
  --shadow-pop:0 12px 32px -10px rgba(16,24,40,.18);
  --sb-w:262px;
  display:none;min-height:100vh;background:var(--bg);color:var(--ink);
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;line-height:1.5;
}
#user-shell.is-open{display:flex}
#user-shell .layout{display:flex;min-height:100vh;width:100%}
#user-shell .sidebar{
  width:var(--sb-w);flex-shrink:0;background:var(--sidebar);border-right:1px solid var(--line);
  position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;padding:18px 14px;z-index:60;
  transition:transform .25s;overflow-y:auto;
}
#user-shell .main{flex:1;margin-left:var(--sb-w);min-width:0;width:calc(100% - var(--sb-w));display:flex;flex-direction:column}
#user-shell .content{flex:1;width:100%;padding:26px 40px 60px}
#user-shell .sb-brand{display:flex;align-items:center;gap:10px;padding:6px 8px 18px;cursor:pointer}
#user-shell .sb-brand .mk{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--primary),var(--violet));display:grid;place-items:center;color:#fff;font-weight:800;font-size:18px}
#user-shell .sb-brand b{font-weight:800;font-size:16px;letter-spacing:-.01em;line-height:1.1}
#user-shell .sb-brand small{display:block;font-size:10px;color:var(--muted);font-weight:500}
#user-shell .sb-group{margin-top:14px}
#user-shell .sb-label{font-size:10.5px;font-weight:700;letter-spacing:.12em;color:var(--muted);text-transform:uppercase;padding:0 10px 8px}
#user-shell .sb-item{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:10px;font-size:14px;font-weight:600;color:var(--ink-soft);margin-bottom:2px;transition:.15s;cursor:pointer}
#user-shell .sb-item svg{width:19px;height:19px;stroke-width:2;flex-shrink:0}
#user-shell .sb-item:hover{background:var(--bg);color:var(--ink)}
#user-shell .sb-item.active{background:var(--primary-soft);color:var(--primary)}
#user-shell .sb-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
#user-shell .sb-user{display:flex;align-items:center;gap:10px;padding:8px 8px 12px}
#user-shell .sb-user .av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--violet));display:grid;place-items:center;color:#fff;font-weight:700;font-size:14px}
#user-shell .sb-user b{font-size:13.5px;font-weight:700;display:block;line-height:1.1;word-break:break-all}
#user-shell .sb-user small{font-size:11px;color:var(--muted)}
#user-shell .sb-mini{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:10px;font-size:13.5px;font-weight:600;color:var(--ink-soft);width:100%;text-align:left;cursor:pointer}
#user-shell .sb-mini:hover{background:var(--bg);color:var(--ink)}
#user-shell .topbar{display:none;align-items:center;gap:12px;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
#user-shell .topbar .mk{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--violet));display:grid;place-items:center;color:#fff;font-weight:800}
#user-shell .burger{width:40px;height:40px;border-radius:9px;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink)}
#user-shell .scrim{display:none;position:fixed;inset:0;background:rgba(8,12,22,.45);z-index:55}
body.user-nav-open #user-shell .scrim{display:block}
#user-shell .page-head{margin-bottom:22px}
#user-shell .page-head h1{font-size:clamp(28px,4vw,40px);font-weight:800;letter-spacing:-.02em}
#user-shell .page-head p{color:var(--ink-soft);margin-top:6px;font-size:15px}
#user-shell .panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow-card)}
#user-shell .field{margin-bottom:15px}
#user-shell .field label{display:block;font-size:12px;font-weight:700;color:var(--ink-soft);margin-bottom:7px}
#user-shell .field input{width:100%;border:1.5px solid var(--line);border-radius:10px;background:var(--bg);padding:11px 13px;font-size:14px;color:var(--ink);outline:none}
#user-shell .field input:focus{border-color:var(--primary);background:var(--surface)}
#user-shell .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:700;font-size:15px;padding:13px 22px;border-radius:12px;transition:transform .15s,box-shadow .15s,background .15s;cursor:pointer;border:none}
#user-shell .btn-primary{background:var(--primary);color:#fff;box-shadow:0 8px 18px -8px rgba(37,99,235,.6)}
#user-shell .btn-primary:hover{background:var(--primary-d);transform:translateY(-1px)}
#user-shell .btn-ghost{border:1.5px solid var(--line);background:var(--surface);color:var(--ink)}
#user-shell .btn-ghost:hover{border-color:var(--primary);color:var(--primary)}
#user-shell .order-card{border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:12px;background:var(--surface)}
#user-shell .order-card h4{font-size:15px;margin-bottom:6px}
#user-shell .order-card p{font-size:13px;color:var(--ink-soft);margin:3px 0}
#user-shell .loading{text-align:center;padding:40px;color:var(--muted)}
#user-shell .login-wrap{max-width:420px;margin:40px auto}
#user-shell .login-wrap h2{font-size:26px;font-weight:800;margin-bottom:8px}
#user-shell .login-wrap p{color:var(--muted);font-size:14px;margin-bottom:22px}
@media (max-width:860px){
  #user-shell .sidebar{transform:translateX(-100%)}
  body.user-nav-open #user-shell .sidebar{transform:translateX(0)}
  #user-shell .main{margin-left:0;width:100%}
  #user-shell .topbar{display:flex}
  #user-shell .content{padding:20px 18px 50px}
}
