/* -------------------------
   BRAND COLOURS
------------------------- */

:root{
  --brand-teal:#5F7F8A;
  --brand-cream:#E9E1D6;
  --brand-gold:#D9A441;
}


/* -------------------------
   HEADER ROW
------------------------- */

.top-bar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}

.top-left  { justify-self:start; }
.top-right { justify-self:end; }

.logo-wrap img{
  display:block;
  width:56px;
  height:56px;
  margin:0;
  object-fit:cover;
  border-radius:50%;
  border:none;
  box-shadow:none;
}

.studio-name{
  margin-top:8px;
  margin-bottom:10px;
  font-size:16px;
  color:#7b7f8a;
  text-align:center;
}


/* -------------------------
   MENU BUTTON (top left)
------------------------- */

.menu-btn{
  position:relative;

  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:0;
  border:none;
  border-radius:999px;
  background:#f6f2ea;
  color:#5f636d;
  cursor:pointer;
  transition:0.15s;
  -webkit-tap-highlight-color:transparent;
}

.menu-btn:hover{
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.menu-btn:active{
  background:#efe8db;
}

.menu-btn svg{
  width:18px;
  height:18px;
  color:var(--brand-teal);
}

.menu-btn.is-user{
  border:1px solid rgba(95,127,138,.55);
}

.menu-btn .initials{
  color:var(--brand-teal);
  font-size:14px;
  font-weight:700;
  letter-spacing:.3px;
  line-height:1;
  text-transform:uppercase;
}

.menu-btn .menu-badge{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--brand-teal);
  border:2px solid #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.menu-btn .menu-badge svg{
  width:10px;
  height:10px;
  color:#fff;
}

.menu-btn::after{
  content:"";
  position:absolute;
  inset:-8px;
}


/* -------------------------
   BACK BUTTON (top left)
------------------------- */

.back-link{
  position:relative;

  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:999px;
  background:#f6f2ea;
  color:var(--brand-teal);
  text-decoration:none;
  transition:.15s;
  -webkit-tap-highlight-color:transparent;
}

.back-link:hover{
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.back-link:active{
  background:#efe8db;
}

.back-link svg{
  width:24px;
  height:24px;
  stroke-width:2.25;
  margin-left:-1px;
}

.back-link::after{
  content:"";
  position:absolute;
  inset:-8px;
}


/* -------------------------
   SIGN IN PILL (top right)
------------------------- */

.wallet-pill{
  position:relative;

  height:40px;
  display:inline-flex;
  align-items:center;
  gap:4px;

  padding:0 10px;
  border-radius:999px;
  background:#f6f2ea;
  border:none;
  text-decoration:none;
  color:#5f636d;
  font-size:12px;
  font-weight:700;
  transition:0.15s;
}

.wallet-pill:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.wallet-pill:active{
  transform:scale(.97);
  background:#efe8db;
}

.wallet-pill svg{
  width:14px;
  height:14px;
  color:var(--brand-teal);
}

.wallet-pill svg.signin-icon{
  width:16px;
  height:16px;
}

.wallet-pill svg.chev{
  width:11px;
  height:11px;
  color:#a0a4ab;
  margin-left:-2px;
}

.wallet-pill::after{
  content:"";
  position:absolute;
  inset:-8px;
}


/* -------------------------
   SLIDE-OUT MENU
------------------------- */

body.menu-open{
  overflow:hidden;
}

.menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(25,31,36,.38);
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease, visibility .28s ease;
  z-index:1000;
}

.menu-overlay.open{
  opacity:1;
  visibility:visible;
}

.side-menu{
  position:fixed;
  top:0;
  left:0;
  width:min(72vw, 300px);
  height:100dvh;
  background:#fff;
  padding:22px 18px;
  transform:translateX(-102%);
  transition:transform .30s cubic-bezier(.2,.8,.2,1);
  box-shadow:10px 0 35px rgba(0,0,0,.12);
  z-index:1001;
}

.side-menu.open{
  transform:translateX(0);
}

.side-menu-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.side-menu-title{
  font-size:22px;
  font-weight:800;
  color:#2c2c2c;
}

.menu-close{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:none;
  border-radius:50%;
  background:transparent;
  color:#5f636d;
  cursor:pointer;
}

.menu-close:hover{
  background:#f6f2ea;
}

.menu-close svg{
  width:22px;
  height:22px;
}

.side-menu-links{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.menu-link{
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 10px;
  border-radius:11px;
  text-decoration:none;
  color:#5b6470;
  font-size:15px;
  font-weight:600;
}

.menu-link:hover{
  background:#f6f2ea;
}

.menu-link svg{
  width:21px;
  height:21px;
  flex-shrink:0;
  color:#687482;
}

.menu-divider{
  height:1px;
  background:#ececf3;
  margin:9px 8px;
}

/* Back arrow: same circle as .menu-btn, bigger icon */
a.back-btn{
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}

a.back-btn svg{
  width:24px;
  height:24px;
  stroke-width:2.25;
  margin-left:-1px;
}