.account-btn{
  display:flex;
  align-items:center;
  gap:6px;
  background:#111;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:7px 12px;
  cursor:pointer;
  font-size:12.5px;
  font-weight:600;
  font-family:inherit;
  white-space:nowrap;
  flex-shrink:0;
}

.account-menu-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid #eaecf0;
  border-radius:8px;
  background:#fff;
  color:#111;
  cursor:pointer;
  flex-shrink:0;
}

.account-menu-btn svg{
  width:16px;
  height:16px;
}

.account-btn svg{width:14px;height:14px;}

.account-modal-ov{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:900;
  padding:18px;
}

.account-modal-ov.open{display:flex;}

.account-modal{
  width:100%;
  max-width:460px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  overflow:hidden;
}

.account-modal-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid #eaecf0;
}

.account-modal-hd h3{
  font-size:15px;
  color:#111;
  margin:0;
}

.account-modal-x{
  border:none;
  background:none;
  color:#9aa2af;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.account-modal-bd{padding:20px;}

.account-mobile-nav{
  display:none;
  grid-template-columns:1fr;
  gap:8px;
  margin-bottom:16px;
}

.account-mobile-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  padding:11px 12px;
  border:1px solid #eaecf0;
  border-radius:10px;
  background:#f8fafc;
  color:#111;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}

.account-nav-drawer .account-mobile-nav{
  display:grid;
}

.account-tabs{
  display:flex;
  gap:8px;
  margin-bottom:16px;
}

.account-tab{
  flex:1;
  border:1px solid #eaecf0;
  background:#f8fafc;
  border-radius:10px;
  padding:9px 12px;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
}

.account-tab.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.account-pane{display:none;}
.account-pane.active{display:block;}

.account-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.account-form input{
  width:100%;
  border:1.5px solid #e5e7eb;
  border-radius:10px;
  padding:11px 12px;
  font-size:13px;
  font-family:inherit;
}

.account-form button,
.account-primary-btn{
  border:none;
  border-radius:10px;
  padding:11px 14px;
  background:#73b565;
  color:#fff;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  font-family:inherit;
}

.account-secondary-btn{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 14px;
  background:#fff;
  color:#555;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  font-family:inherit;
}

.account-msg{
  display:none;
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:10px;
  font-size:12px;
}

.account-msg.show{display:block;}
.account-msg.error{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;}
.account-msg.success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;}

.account-user-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
  border:1px solid #eaecf0;
  border-radius:12px;
  margin-bottom:14px;
  background:#f8fafc;
}

.account-orders{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:260px;
  overflow:auto;
}

.account-order{
  border:1px solid #eaecf0;
  border-radius:12px;
  padding:12px;
  background:#fff;
}

.account-order-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  font-size:12px;
}

.account-order-items{
  color:#666;
  font-size:12px;
}

@media (max-width: 640px){
  body.account-drawer-open{
    overflow:hidden;
  }

  .account-btn{
    display:none;
  }

  .account-menu-btn{
    display:flex;
  }

  .account-modal-ov{
    align-items:stretch;
    justify-content:flex-end;
    padding:0;
  }

  .account-modal{
    max-width:320px;
    width:min(88vw,320px);
    height:100%;
    max-height:none;
    border-radius:18px 0 0 18px;
    overflow:auto;
    transform:translateX(100%);
    transition:transform .24s ease;
  }

  .account-modal-ov.open .account-modal{
    transform:translateX(0);
  }

  .account-modal-hd{
    padding:16px 16px 14px;
  }

  .account-modal-bd{
    padding:16px;
  }

  .account-mobile-nav{
    display:grid;
  }

  .account-tabs{
    gap:6px;
  }

  .account-tab{
    padding:10px;
    font-size:11.5px;
  }

  .account-form input,
  .account-form button,
  .account-primary-btn,
  .account-secondary-btn{
    font-size:12px;
  }

  .account-orders{
    max-height:40vh;
  }
}
